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 Details

    • responseStr

      protected String responseStr
    • responseJsonObj

      protected org.json.simple.JSONObject responseJsonObj
  • Constructor Details

    • BaseOpt

      public BaseOpt()
  • Method Details

    • getMessagesFromResponse

      public Object getMessagesFromResponse(String responseStr, String node)
    • getStatusFromResponse

      public Object getStatusFromResponse(String responseStr, 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 Object getDataPart(org.json.simple.JSONObject obj)
    • getLocale

      public 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 String getResponseMessage(org.json.simple.JSONObject obj)
    • isSuccess

      public boolean isSuccess(int statusCode)