content
private final byte[] content
ContentResponse
, Response
Response.AsyncContentListener, Response.BeginListener, Response.CompleteListener, Response.ContentListener, Response.DemandedContentListener, Response.FailureListener, Response.HeaderListener, Response.HeadersListener, Response.Listener, Response.ResponseListener, Response.SuccessListener
HttpContentResponse(Response response,
byte[] content,
String mediaType,
String encoding)
boolean
byte[]
<T extends Response.ResponseListener>
List<T>
getListeners(Class<T> listenerClass)
int
toString()
getRequest
in interface Response
getListeners
in interface Response
T
- the type of classlistenerClass
- the listener classRequest.send(org.eclipse.jetty.client.api.Response.CompleteListener)
getVersion
in interface Response
getReason
in interface Response
Response.getStatus()
getHeaders
in interface Response
Response
getMediaType
in interface ContentResponse
getEncoding
in interface ContentResponse
getContent
in interface ContentResponse
getContentAsString
in interface ContentResponse
Content-Type
header, if any, or UTF-8.