Package com.teamdev.jxbrowser.net.event
Interface ResponseBytesReceived
- All Superinterfaces:
Event
,NetworkEvent
An event indicating that a part of HTTP response body has been received over the network.
- Since:
- 7.1
-
Method Summary
Modifier and TypeMethodDescriptioncharset()
Returns anOptional
that contains the charset in lower case retrieved from the HTTP response headers of this request or an emptyOptional
if the received headers do not include any information about the charset.default byte[]
data()
Returns the received part of HTTP response body.mimeType()
Returns anOptional
that contains the MIME type value retrieved from theContent-Type
header of this request or an emptyOptional
if there is no MIME type.default Network
network()
Returns theNetwork
instance initiated this event.default UrlRequest
Returns the URL request associated with the response.
-
Method Details
-
network
Description copied from interface:NetworkEvent
Returns theNetwork
instance initiated this event.- Specified by:
network
in interfaceNetworkEvent
-
urlRequest
Returns the URL request associated with the response. -
mimeType
Returns anOptional
that contains the MIME type value retrieved from theContent-Type
header of this request or an emptyOptional
if there is no MIME type. -
charset
Returns anOptional
that contains the charset in lower case retrieved from the HTTP response headers of this request or an emptyOptional
if the received headers do not include any information about the charset. -
data
default byte[] data()Returns the received part of HTTP response body.
-