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 BuiltResponse
annotations, entity, entityClass, genericType, isClosed, metadata, processor, status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanvoidclose()protected voidfinalize()protected InputStreamprotected HeaderValueProcessorprotected abstract InputStreambooleanvoidIn 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> TreadEntity(Class<T> type, Type genericType, Annotation[] anns) protected <T> ObjectreadFrom(Class<T> type, Type genericType, javax.ws.rs.core.MediaType media, Annotation[] annotations) abstract voidrelease underlying connection but do not closevoidsetClientConfiguration(ClientConfiguration configuration) voidsetHeaders(javax.ws.rs.core.MultivaluedMap<String, String> headers) protected abstract voidvoidsetProperties(Map<String, Object> properties) Methods inherited from class 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, toHeaderStringMethods 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:
getEntityin classBuiltResponse
-
hasEntity
public boolean hasEntity()- Overrides:
hasEntityin 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:
closein classBuiltResponse
-
finalize
-
getHeaderValueProcessor
- Overrides:
getHeaderValueProcessorin classBuiltResponse
-
getInputStream
-
getEntityStream
-
setInputStream
-
releaseConnection
release underlying connection but do not close- Throws:
IOException
-
readEntity
- Overrides:
readEntityin classBuiltResponse
-
readFrom
protected <T> Object readFrom(Class<T> type, Type genericType, javax.ws.rs.core.MediaType media, Annotation[] annotations) -
bufferEntity
public boolean bufferEntity()- Overrides:
bufferEntityin classBuiltResponse
-
abortIfClosed
public void abortIfClosed()- Overrides:
abortIfClosedin classBuiltResponse
-