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 java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.json.simple.JSONObjectresponseJsonObjprotected java.lang.StringresponseStr
-
Constructor Summary
Constructors Constructor Description BaseOpt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetDataPart(org.json.simple.JSONObject obj)java.lang.StringgetLocale(org.json.simple.JSONObject obj)java.lang.ObjectgetMessagesFromResponse(java.lang.String responseStr, java.lang.String node)intgetResponseCode(org.json.simple.JSONObject obj)java.lang.StringgetResponseMessage(org.json.simple.JSONObject obj)org.json.simple.JSONObjectgetResponsePart(org.json.simple.JSONObject obj)java.lang.ObjectgetStatusFromResponse(java.lang.String responseStr, java.lang.String node)get the status from response bodybooleanisSuccess(int statusCode)protected voidparseServerResponse()
-
-
-
Method Detail
-
getMessagesFromResponse
public java.lang.Object getMessagesFromResponse(java.lang.String responseStr, java.lang.String node)
-
getStatusFromResponse
public java.lang.Object getStatusFromResponse(java.lang.String responseStr, java.lang.String node)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
public java.lang.Object getDataPart(org.json.simple.JSONObject obj)
-
getLocale
public java.lang.String getLocale(org.json.simple.JSONObject obj)
-
getResponsePart
public org.json.simple.JSONObject getResponsePart(org.json.simple.JSONObject obj)
-
getResponseCode
public int getResponseCode(org.json.simple.JSONObject obj)
-
getResponseMessage
public java.lang.String getResponseMessage(org.json.simple.JSONObject obj)
-
isSuccess
public boolean isSuccess(int statusCode)
-
-