Package org.omegazero.http.common
Class HTTPResponseData
java.lang.Object
org.omegazero.http.common.HTTPMessageData
org.omegazero.http.common.HTTPResponseData
- All Implemented Interfaces:
Serializable
Special form of a
HTTPMessageData object for HTTPResponses.- Since:
- 1.2.1
- See Also:
-
Field Summary
Fields inherited from class org.omegazero.http.common.HTTPMessageData
data, httpMessage, lastPacket -
Constructor Summary
ConstructorsConstructorDescriptionHTTPResponseData(HTTPResponse httpMessage, boolean lastPacket, byte[] data) Creates a newHTTPResponseDatainstance.HTTPResponseData(HTTPResponse httpMessage, byte[] data) Creates a newHTTPResponseDatainstance. -
Method Summary
Modifier and TypeMethodDescriptionReturns theHTTPResponsestored in thisHTTPResponseDataobject.Methods inherited from class org.omegazero.http.common.HTTPMessageData
getData, isLastPacket, setData
-
Constructor Details
-
HTTPResponseData
Creates a newHTTPResponseDatainstance.- Parameters:
httpMessage- The HTTP responsedata- The full or partial body of the httpMessage
-
HTTPResponseData
Creates a newHTTPResponseDatainstance.- Parameters:
httpMessage- The HTTP responselastPacket- Whether thisHTTPMessageDatarepresents the last body data partdata- The full or partial body of the httpMessage
-
-
Method Details
-
getHttpMessage
Returns theHTTPResponsestored in thisHTTPResponseDataobject.- Overrides:
getHttpMessagein classHTTPMessageData- Returns:
- The
HTTPResponse
-