public class Response
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
EXCEPTION_THROWN |
static int |
METHOD_NOT_ALLOWED |
static int |
NOT_FOUND |
static int |
OK |
static int |
UNAUTHROIZED |
Constructor and Description |
---|
Response() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Returns the bytes.
|
protected byte[] |
getBytesImpl()
Returns the bytes.
|
int |
getCode()
Returns the response code.
|
java.lang.String |
getCodeString()
Returns the code message.
|
DataType |
getDataType()
Returns the response type.
|
protected DataType |
getDataTypeImpl()
Returns a data type for this response based on the file.
|
java.lang.Throwable |
getException()
Returns the exception.
|
WebFile |
getFile()
Returns the file.
|
java.util.List<WebFile> |
getFiles()
Returns the files (for directory request).
|
Request |
getRequest()
Returns the request.
|
WebURL |
getRequestURL()
Returns the request URL.
|
WebSite |
getSite()
Returns the site for the request/response.
|
java.lang.String |
getText()
Returns the text of the response.
|
protected java.lang.String |
getTextImpl()
Returns the text.
|
long |
getTime()
Returns the response time.
|
void |
setBytes(byte[] theBytes)
Sets the response bytes.
|
void |
setCode(int aCode)
Sets the response code.
|
protected void |
setDataType(DataType aType)
Sets the data type.
|
void |
setException(java.lang.Throwable aThrowable)
Sets the exception.
|
void |
setFile(WebFile aFile)
Sets the file.
|
void |
setFiles(java.util.List<WebFile> theFile)
Sets the files (for directory request).
|
void |
setRequest(Request aRequest)
Sets the request.
|
void |
setText(java.lang.String aString)
Sets the text.
|
java.lang.String |
toString()
Standard toString implementation.
|
public static final int OK
public static final int UNAUTHROIZED
public static final int NOT_FOUND
public static final int METHOD_NOT_ALLOWED
public static final int EXCEPTION_THROWN
public Request getRequest()
public void setRequest(Request aRequest)
public WebURL getRequestURL()
public WebSite getSite()
public int getCode()
public void setCode(int aCode)
public java.lang.String getCodeString()
public long getTime()
public DataType getDataType()
protected DataType getDataTypeImpl()
protected void setDataType(DataType aType)
public WebFile getFile()
public void setFile(WebFile aFile)
public java.util.List<WebFile> getFiles()
public void setFiles(java.util.List<WebFile> theFile)
public byte[] getBytes()
protected byte[] getBytesImpl()
public void setBytes(byte[] theBytes)
public java.lang.String getText()
protected java.lang.String getTextImpl()
public void setText(java.lang.String aString)
public java.lang.Throwable getException()
public void setException(java.lang.Throwable aThrowable)
public java.lang.String toString()
toString
in class java.lang.Object