Class ClientResponse
- java.lang.Object
-
- javax.ws.rs.core.Response
-
- org.jboss.resteasy.specimpl.AbstractBuiltResponse
-
- org.jboss.resteasy.specimpl.BuiltResponse
-
- org.jboss.resteasy.client.jaxrs.internal.ClientResponse
-
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
FinalizedClientResponse
public abstract class ClientResponse extends BuiltResponse
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.resteasy.specimpl.AbstractBuiltResponse
AbstractBuiltResponse.InputStreamWrapper<T extends BuiltResponse>
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientConfigurationconfigurationprotected Map<String,Object>propertiesprotected RESTEasyTracingLoggertracingLogger-
Fields inherited from class org.jboss.resteasy.specimpl.AbstractBuiltResponse
annotations, bufferedEntity, entity, entityClass, genericType, is, isClosed, metadata, processor, reason, status, streamFullyRead, streamRead
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedClientResponse(ClientConfiguration configuration)Deprecated.protectedClientResponse(ClientConfiguration configuration, RESTEasyTracingLogger tracingLogger)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidabortIfClosed()booleanbufferEntity()voidclose()ObjectgetEntity()Class<?>getEntityClass()protected InputStreamgetEntityStream()protected HeaderValueProcessorgetHeaderValueProcessor()Map<String,Object>getProperties()booleanhasEntity()voidnoReleaseConnection()In case of an InputStream or Reader and a invocation that returns no Response object, we need to make sure the GC does not close the returned InputStream or Readerprotected <T> ObjectreadFrom(Class<T> type, Type genericType, javax.ws.rs.core.MediaType media, Annotation[] annotations)voidsetClientConfiguration(ClientConfiguration configuration)voidsetHeaders(javax.ws.rs.core.MultivaluedMap<String,String> headers)protected abstract voidsetInputStream(InputStream is)voidsetProperties(Map<String,Object> properties)-
Methods inherited from class org.jboss.resteasy.specimpl.BuiltResponse
getInputStream, readEntity, releaseConnection, releaseConnection
-
Methods inherited from class org.jboss.resteasy.specimpl.AbstractBuiltResponse
addMethodAnnotations, getAllowedMethods, getAnnotations, getCookies, getDate, getEntityTag, getGenericType, getHeaderString, getLanguage, getLastModified, getLength, getLink, getLinkBuilder, getLinks, getLocation, getMediaType, getMetadata, getReasonPhrase, getStatus, getStatusInfo, getStringHeaders, hasLink, isClosed, readEntity, readEntity, readEntity, readEntity, resetEntity, setAnnotations, setEntity, setEntityClass, setGenericType, setMetadata, setReasonPhrase, setStatus, setStreamFullyRead, setStreamRead, toHeaderString
-
-
-
-
Field Detail
-
configuration
protected ClientConfiguration configuration
-
tracingLogger
protected RESTEasyTracingLogger tracingLogger
-
-
Constructor Detail
-
ClientResponse
@Deprecated protected ClientResponse(ClientConfiguration configuration)
Deprecated.
-
ClientResponse
protected ClientResponse(ClientConfiguration configuration, RESTEasyTracingLogger tracingLogger)
-
-
Method Detail
-
setClientConfiguration
public void setClientConfiguration(ClientConfiguration configuration)
-
getEntity
public Object getEntity()
- Overrides:
getEntityin classAbstractBuiltResponse
-
getEntityClass
public Class<?> getEntityClass()
- Overrides:
getEntityClassin classAbstractBuiltResponse
-
hasEntity
public boolean hasEntity()
- Overrides:
hasEntityin classAbstractBuiltResponse
-
noReleaseConnection
public void noReleaseConnection()
In case of an InputStream or Reader and a invocation that returns no Response object, we need to make sure the GC does not close the returned InputStream or Reader
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classAbstractBuiltResponse
-
getHeaderValueProcessor
protected HeaderValueProcessor getHeaderValueProcessor()
- Overrides:
getHeaderValueProcessorin classAbstractBuiltResponse
-
getEntityStream
protected InputStream getEntityStream()
- Overrides:
getEntityStreamin classBuiltResponse
-
setInputStream
protected abstract void setInputStream(InputStream is)
- Overrides:
setInputStreamin classBuiltResponse
-
readFrom
protected <T> Object readFrom(Class<T> type, Type genericType, javax.ws.rs.core.MediaType media, Annotation[] annotations)
- Overrides:
readFromin classBuiltResponse
-
bufferEntity
public boolean bufferEntity()
- Overrides:
bufferEntityin classBuiltResponse
-
abortIfClosed
public void abortIfClosed()
- Overrides:
abortIfClosedin classAbstractBuiltResponse
-
-