Package org.eclipse.jetty.client.api
Interface ContentResponse
-
- All Superinterfaces:
Response
- All Known Implementing Classes:
HttpContentResponse
@Deprecated(since="2021-05-27") public interface ContentResponse extends Response
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.A specializedResponse
that can hold a limited content in memory.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.client.api.Response
Response.AsyncContentListener, Response.BeginListener, Response.CompleteListener, Response.ContentListener, Response.DemandedContentListener, Response.FailureListener, Response.HeaderListener, Response.HeadersListener, Response.Listener, Response.ResponseListener, Response.SuccessListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description byte[]
getContent()
Deprecated.java.lang.String
getContentAsString()
Deprecated.java.lang.String
getEncoding()
Deprecated.java.lang.String
getMediaType()
Deprecated.-
Methods inherited from interface org.eclipse.jetty.client.api.Response
abort, getHeaders, getListeners, getReason, getRequest, getStatus, getVersion
-
-
-
-
Method Detail
-
getMediaType
java.lang.String getMediaType()
Deprecated.- Returns:
- the media type of the content, such as "text/html" or "application/octet-stream"
-
getEncoding
java.lang.String getEncoding()
Deprecated.- Returns:
- the encoding of the content, such as "UTF-8"
-
getContent
byte[] getContent()
Deprecated.- Returns:
- the response content
-
getContentAsString
java.lang.String getContentAsString()
Deprecated.- Returns:
- the response content as a string, decoding the bytes using the charset
provided by the
Content-Type
header, if any, or UTF-8.
-
-