com.worklight.wlclient.api

Class WLResponse

  • java.lang.Object
    • com.worklight.wlclient.api.WLResponse
    • Field Detail

      • statusText

        protected java.lang.String statusText
    • Method Detail

      • getStatus

        public int getStatus()
        Retrieves the HTTP status from the response.
      • getResponseBytes

        public byte[] getResponseBytes()
        Retrieves the original response from the server, in the form of an array of bytes.
      • getResponseText

        public java.lang.String getResponseText()
        Retrieves the original response text from the server.
      • getHeaders

        public java.util.Map getHeaders()
        Returns:
        An array of Headers
      • getFirstHeader

        public java.lang.String getFirstHeader(java.lang.String headerName)
        Returns the first header from the response that matches the given header name.
        Parameters:
        headerName - Name of header to search for
        Returns:
        First header with the given name, or null if no such headers exist.
      • getResponseJSON

        public JSONObject getResponseJSON()
        Returns:
        JSON object obtained from response text.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • setResponseJSON

        protected void setResponseJSON(JSONObject responseJSON)
      • getStatusText

        public java.lang.String getStatusText()
      • setStatusText

        public void setStatusText(java.lang.String statusText)


© Copyright IBM Corp. 2006, 2015. All Rights Reserved.