public class AbortedResponse extends ClientResponse
Response.ResponseBuilder, Response.Status, Response.StatusType
Modifier and Type | Field and Description |
---|---|
protected InputStream |
is |
bufferedEntity, configuration, properties, streamFullyRead
annotations, entity, entityClass, genericType, isClosed, metadata, processor, reason, status
Constructor and Description |
---|
AbortedResponse(ClientConfiguration configuration,
Response response) |
Modifier and Type | Method and Description |
---|---|
protected InputStream |
getInputStream() |
<T> T |
readEntity(Class<T> type,
Type genericType,
Annotation[] anns)
Added for RESTEASY-1540.
|
void |
releaseConnection()
Release underlying connection but do not close.
|
void |
releaseConnection(boolean consumeInputStream)
Release underlying connection but do not close.
|
protected void |
setInputStream(InputStream is) |
abortIfClosed, bufferEntity, close, finalize, getEntity, getEntityClass, getEntityStream, getHeaderValueProcessor, getProperties, hasEntity, noReleaseConnection, readFrom, resetEntity, setClientConfiguration, setHeaders, setProperties
addMethodAnnotations, getAllowedMethods, getAnnotations, getCookies, getDate, getEntityTag, getGenericType, getHeaderString, getLanguage, getLastModified, getLength, getLink, getLinkBuilder, getLinkHeaders, getLinks, getLocation, getMediaType, getMetadata, getReasonPhrase, getStatus, getStatusInfo, getStringHeaders, hasLink, isClosed, readEntity, readEntity, readEntity, readEntity, setAnnotations, setEntity, setEntityClass, setGenericType, setMetadata, setReasonPhrase, setStatus, toHeaderString
accepted, accepted, created, fromResponse, getHeaders, noContent, notAcceptable, notModified, notModified, notModified, ok, ok, ok, ok, ok, seeOther, serverError, status, status, status, status, temporaryRedirect
protected InputStream is
public AbortedResponse(ClientConfiguration configuration, Response response)
protected InputStream getInputStream()
getInputStream
in class ClientResponse
protected void setInputStream(InputStream is)
setInputStream
in class ClientResponse
public void releaseConnection()
ClientResponse
releaseConnection
in class ClientResponse
public void releaseConnection(boolean consumeInputStream)
ClientResponse
releaseConnection
in class ClientResponse
consumeInputStream
- boolean to indicate either the underlying input stream must be fully read before releasing the connection or not.
For most HTTP connection implementations, consuming the underlying input stream before releasing the connection will help to ensure connection reusability with respect of Keep-Alive policy.
public <T> T readEntity(Class<T> type, Type genericType, Annotation[] anns)
readEntity
in class ClientResponse
Copyright © 2018 JBoss by Red Hat. All rights reserved.