Class BaseOpt
java.lang.Object
com.vmware.vipclient.i18n.messages.api.opt.BaseOpt
- Direct Known Subclasses:
ComponentBasedOpt,ComponentsBasedOpt,LocalKeyBasedOpt,RemoteL2BaseOpt,RemoteProductOpt,StringBasedOpt
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDataPart(org.json.simple.JSONObject obj) getLocale(org.json.simple.JSONObject obj) getMessagesFromResponse(String responseStr, String node) intgetResponseCode(org.json.simple.JSONObject obj) getResponseMessage(org.json.simple.JSONObject obj) org.json.simple.JSONObjectgetResponsePart(org.json.simple.JSONObject obj) getStatusFromResponse(String responseStr, String node) get the status from response bodybooleanisSuccess(int statusCode) protected void
-
Field Details
-
responseStr
-
responseJsonObj
protected org.json.simple.JSONObject responseJsonObj
-
-
Constructor Details
-
BaseOpt
public BaseOpt()
-
-
Method Details
-
getMessagesFromResponse
-
getStatusFromResponse
get the status from response body- Parameters:
responseStr-node-- Returns:
-
parseServerResponse
protected void parseServerResponse() throws org.json.simple.parser.ParseException- Throws:
org.json.simple.parser.ParseException
-
getDataPart
-
getLocale
-
getResponsePart
public org.json.simple.JSONObject getResponsePart(org.json.simple.JSONObject obj) -
getResponseCode
public int getResponseCode(org.json.simple.JSONObject obj) -
getResponseMessage
-
isSuccess
public boolean isSuccess(int statusCode)
-