public class AbortedResponse extends ClientResponse
| Modifier and Type | Field and Description |
|---|---|
protected InputStream |
is |
bufferedEntity, configuration, properties, streamFullyReadannotations, entity, entityClass, genericType, isClosed, metadata, processor, reason, status| Constructor and Description |
|---|
AbortedResponse(ClientConfiguration configuration,
javax.ws.rs.core.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, setPropertiesaddMethodAnnotations, 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, toHeaderStringprotected InputStream is
public AbortedResponse(ClientConfiguration configuration, javax.ws.rs.core.Response response)
protected InputStream getInputStream()
getInputStream in class ClientResponseprotected void setInputStream(InputStream is)
setInputStream in class ClientResponsepublic void releaseConnection()
ClientResponsereleaseConnection in class ClientResponsepublic void releaseConnection(boolean consumeInputStream)
ClientResponsereleaseConnection in class ClientResponseconsumeInputStream - 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 ClientResponseCopyright © 2018 JBoss by Red Hat. All rights reserved.