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 HTTPResponse
s.- 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 newHTTPResponseData
instance.HTTPResponseData
(HTTPResponse httpMessage, byte[] data) Creates a newHTTPResponseData
instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns theHTTPResponse
stored in thisHTTPResponseData
object.Methods inherited from class org.omegazero.http.common.HTTPMessageData
getData, isLastPacket, setData
-
Constructor Details
-
HTTPResponseData
Creates a newHTTPResponseData
instance.- Parameters:
httpMessage
- The HTTP responsedata
- The full or partial body of the httpMessage
-
HTTPResponseData
Creates a newHTTPResponseData
instance.- Parameters:
httpMessage
- The HTTP responselastPacket
- Whether thisHTTPMessageData
represents the last body data partdata
- The full or partial body of the httpMessage
-
-
Method Details
-
getHttpMessage
Returns theHTTPResponse
stored in thisHTTPResponseData
object.- Overrides:
getHttpMessage
in classHTTPMessageData
- Returns:
- The
HTTPResponse
-