Class Response


  • public class Response
    extends java.lang.Object
    The response.
    • Constructor Detail

      • Response

        public Response()
    • Method Detail

      • 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 java.lang.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 java.util.List<WebFile> getFiles()
        Returns the files (for directory request).
      • setFiles

        public void setFiles​(java.util.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 java.lang.String getText()
        Returns the text of the response.
      • getTextImpl

        protected java.lang.String getTextImpl()
        Returns the text.
      • setText

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

        public java.lang.Throwable getException()
        Returns the exception.
      • setException

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

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