Class BaseOpt
- java.lang.Object
-
- com.vmware.vipclient.i18n.messages.api.opt.BaseOpt
-
- Direct Known Subclasses:
ComponentBasedOpt,ComponentsBasedOpt,LocalKeyBasedOpt,RemoteL2BaseOpt,RemoteProductOpt,StringBasedOpt
public class BaseOpt extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.json.JSONObjectresponseJsonObjprotected StringresponseStr
-
Constructor Summary
Constructors Constructor Description BaseOpt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetDataPart(org.json.JSONObject obj)StringgetLocale(org.json.JSONObject obj)ObjectgetMessagesFromResponse(String responseStr, String node)intgetResponseCode(org.json.JSONObject obj)StringgetResponseMessage(org.json.JSONObject obj)org.json.JSONObjectgetResponsePart(org.json.JSONObject obj)ObjectgetStatusFromResponse(String responseStr, String node)get the status from response bodybooleanisSuccess(int statusCode)protected voidparseServerResponse()
-
-
-
Field Detail
-
responseStr
protected String responseStr
-
responseJsonObj
protected org.json.JSONObject responseJsonObj
-
-
Method Detail
-
getStatusFromResponse
public Object getStatusFromResponse(String responseStr, String node)
get the status from response body- Parameters:
responseStr-node-- Returns:
-
getDataPart
public Object getDataPart(org.json.JSONObject obj)
-
getLocale
public String getLocale(org.json.JSONObject obj)
-
getResponsePart
public org.json.JSONObject getResponsePart(org.json.JSONObject obj)
-
getResponseCode
public int getResponseCode(org.json.JSONObject obj)
-
getResponseMessage
public String getResponseMessage(org.json.JSONObject obj)
-
isSuccess
public boolean isSuccess(int statusCode)
-
-