Class ClientResponse
java.lang.Object
javax.ws.rs.core.Response
org.jboss.resteasy.specimpl.BuiltResponse
org.jboss.resteasy.client.jaxrs.internal.ClientResponse
- Direct Known Subclasses:
AbortedResponse
- Version:
- $Revision: 1 $
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class javax.ws.rs.core.Response
javax.ws.rs.core.Response.ResponseBuilder, javax.ws.rs.core.Response.Status, javax.ws.rs.core.Response.StatusType
-
Field Summary
FieldsFields inherited from class org.jboss.resteasy.specimpl.BuiltResponse
annotations, entity, entityClass, genericType, isClosed, metadata, processor, status
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
void
close()
protected void
finalize()
protected InputStream
protected HeaderValueProcessor
protected abstract InputStream
boolean
void
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<T> T
readEntity
(Class<T> type, Type genericType, Annotation[] anns) protected <T> Object
readFrom
(Class<T> type, Type genericType, javax.ws.rs.core.MediaType media, Annotation[] annotations) abstract void
release underlying connection but do not closevoid
setClientConfiguration
(ClientConfiguration configuration) void
setHeaders
(javax.ws.rs.core.MultivaluedMap<String, String> headers) protected abstract void
void
setProperties
(Map<String, Object> properties) Methods inherited from class org.jboss.resteasy.specimpl.BuiltResponse
addMethodAnnotations, getAllowedMethods, getAnnotations, getCookies, getDate, getEntityClass, getEntityTag, getGenericType, getHeaderString, getLanguage, getLastModified, getLength, getLink, getLinkBuilder, getLinkHeaders, getLinks, getLocation, getMediaType, getMetadata, getStatus, getStatusInfo, getStringHeaders, hasLink, isClosed, readEntity, readEntity, readEntity, readEntity, setAnnotations, setEntity, setEntityClass, setGenericType, setMetadata, setStatus, toHeaderString
Methods inherited from class javax.ws.rs.core.Response
accepted, accepted, created, fromResponse, getHeaders, noContent, notAcceptable, notModified, notModified, notModified, ok, ok, ok, ok, ok, seeOther, serverError, status, status, status, temporaryRedirect
-
Field Details
-
properties
-
configuration
-
bufferedEntity
protected byte[] bufferedEntity
-
-
Constructor Details
-
ClientResponse
-
-
Method Details
-
setHeaders
-
setProperties
-
getProperties
-
setClientConfiguration
-
getEntity
- Overrides:
getEntity
in classBuiltResponse
-
hasEntity
public boolean hasEntity()- Overrides:
hasEntity
in classBuiltResponse
-
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()- Overrides:
close
in classBuiltResponse
-
finalize
-
getHeaderValueProcessor
- Overrides:
getHeaderValueProcessor
in classBuiltResponse
-
getInputStream
-
getEntityStream
-
setInputStream
-
releaseConnection
release underlying connection but do not close- Throws:
IOException
-
readEntity
- Overrides:
readEntity
in classBuiltResponse
-
readFrom
protected <T> Object readFrom(Class<T> type, Type genericType, javax.ws.rs.core.MediaType media, Annotation[] annotations) -
bufferEntity
public boolean bufferEntity()- Overrides:
bufferEntity
in classBuiltResponse
-
abortIfClosed
public void abortIfClosed()- Overrides:
abortIfClosed
in classBuiltResponse
-