Package com.inductiveautomation.snap.web
Class Response
java.lang.Object
com.inductiveautomation.snap.web.Response
The response.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbyte[]getBytes()Returns the bytes.protected byte[]Returns the bytes.intgetCode()Returns the response code.Returns the code message.Returns the response type.protected DataTypeReturns a data type for this response based on the file.Returns the exception.getFile()Returns the file.getFiles()Returns the files (for directory request).Returns the request.Returns the request URL.getSite()Returns the site for the request/response.getText()Returns the text of the response.protected StringReturns the text.longgetTime()Returns the response time.voidsetBytes(byte[] theBytes) Sets the response bytes.voidsetCode(int aCode) Sets the response code.protected voidsetDataType(DataType aType) Sets the data type.voidsetException(Throwable aThrowable) Sets the exception.voidSets the file.voidSets the files (for directory request).voidsetRequest(Request aRequest) Sets the request.voidSets the text.toString()Standard toString implementation.
- 
Field Details- 
OKpublic static final int OK- See Also:
 
- 
UNAUTHROIZEDpublic static final int UNAUTHROIZED- See Also:
 
- 
NOT_FOUNDpublic static final int NOT_FOUND- See Also:
 
- 
METHOD_NOT_ALLOWEDpublic static final int METHOD_NOT_ALLOWED- See Also:
 
- 
EXCEPTION_THROWNpublic static final int EXCEPTION_THROWN- See Also:
 
 
- 
- 
Constructor Details- 
Responsepublic Response()
 
- 
- 
Method Details- 
getRequestReturns the request.
- 
setRequestSets the request.
- 
getRequestURLReturns the request URL.
- 
getSiteReturns the site for the request/response.
- 
getCodepublic int getCode()Returns the response code.
- 
setCodepublic void setCode(int aCode) Sets the response code.
- 
getCodeStringReturns the code message.
- 
getTimepublic long getTime()Returns the response time.
- 
getDataTypeReturns the response type.
- 
getDataTypeImplReturns a data type for this response based on the file.
- 
setDataTypeSets the data type.
- 
getFileReturns the file.
- 
setFileSets the file.
- 
getFilesReturns the files (for directory request).
- 
setFilesSets the files (for directory request).
- 
getBytespublic byte[] getBytes()Returns the bytes.
- 
getBytesImplprotected byte[] getBytesImpl()Returns the bytes.
- 
setBytespublic void setBytes(byte[] theBytes) Sets the response bytes.
- 
getTextReturns the text of the response.
- 
getTextImplReturns the text.
- 
setTextSets the text.
- 
getExceptionReturns the exception.
- 
setExceptionSets the exception.
- 
toStringStandard toString implementation.
 
-