Class Response

java.lang.Object
com.inductiveautomation.snap.web.Response

public class Response extends Object
The response.
  • Field Details

  • Constructor Details

    • Response

      public Response()
  • Method Details

    • getRequest

      public Request getRequest()
      Returns the request.
    • setRequest

      public void setRequest(Request aRequest)
      Sets the request.
    • getRequestURL

      public WebURL getRequestURL()
      Returns the request URL.
    • getSite

      public WebSite getSite()
      Returns the site for the request/response.
    • getCode

      public int getCode()
      Returns the response code.
    • setCode

      public void setCode(int aCode)
      Sets the response code.
    • getCodeString

      public String getCodeString()
      Returns the code message.
    • getTime

      public long getTime()
      Returns the response time.
    • getDataType

      public DataType getDataType()
      Returns the response type.
    • getDataTypeImpl

      protected DataType getDataTypeImpl()
      Returns a data type for this response based on the file.
    • setDataType

      protected void setDataType(DataType aType)
      Sets the data type.
    • getFile

      public WebFile getFile()
      Returns the file.
    • setFile

      public void setFile(WebFile aFile)
      Sets the file.
    • getFiles

      public List<WebFile> getFiles()
      Returns the files (for directory request).
    • setFiles

      public void setFiles(List<WebFile> theFile)
      Sets the files (for directory request).
    • getBytes

      public byte[] getBytes()
      Returns the bytes.
    • getBytesImpl

      protected byte[] getBytesImpl()
      Returns the bytes.
    • setBytes

      public void setBytes(byte[] theBytes)
      Sets the response bytes.
    • getText

      public String getText()
      Returns the text of the response.
    • getTextImpl

      protected String getTextImpl()
      Returns the text.
    • setText

      public void setText(String aString)
      Sets the text.
    • getException

      public Throwable getException()
      Returns the exception.
    • setException

      public void setException(Throwable aThrowable)
      Sets the exception.
    • toString

      public String toString()
      Standard toString implementation.
      Overrides:
      toString in class Object