Class ClientResponse
java.lang.Object
jakarta.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 org.jboss.resteasy.specimpl.BuiltResponse
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jboss.resteasy.specimpl.AbstractBuiltResponse
org.jboss.resteasy.specimpl.AbstractBuiltResponse.InputStreamWrapper<T>Nested classes/interfaces inherited from class jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response.ResponseBuilder, jakarta.ws.rs.core.Response.Status, jakarta.ws.rs.core.Response.StatusType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ClientConfigurationprotected org.jboss.resteasy.tracing.RESTEasyTracingLoggerFields inherited from class org.jboss.resteasy.specimpl.AbstractBuiltResponse
annotations, bufferedEntity, entity, entityClass, genericType, is, isClosed, metadata, processor, reason, status, streamFullyRead, streamRead -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClientResponse(ClientConfiguration configuration) Deprecated.protectedClientResponse(ClientConfiguration configuration, org.jboss.resteasy.tracing.RESTEasyTracingLogger tracingLogger) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanvoidclose()Class<?> protected InputStreamprotected org.jboss.resteasy.spi.HeaderValueProcessorbooleanvoidIn 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, jakarta.ws.rs.core.MediaType media, Annotation[] annotations) voidsetClientConfiguration(ClientConfiguration configuration) voidsetHeaders(jakarta.ws.rs.core.MultivaluedMap<String, String> headers) protected abstract voidvoidsetProperties(Map<String, Object> properties) Methods inherited from class org.jboss.resteasy.specimpl.BuiltResponse
getInputStream, readEntity, releaseConnection, releaseConnectionMethods 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, toHeaderStringMethods inherited from class jakarta.ws.rs.core.Response
accepted, accepted, created, fromResponse, getHeaders, noContent, notAcceptable, notModified, notModified, notModified, ok, ok, ok, ok, ok, seeOther, serverError, status, status, status, status, temporaryRedirect
-
Field Details
-
properties
-
configuration
-
tracingLogger
protected org.jboss.resteasy.tracing.RESTEasyTracingLogger tracingLogger
-
-
Constructor Details
-
ClientResponse
Deprecated. -
ClientResponse
protected ClientResponse(ClientConfiguration configuration, org.jboss.resteasy.tracing.RESTEasyTracingLogger tracingLogger)
-
-
Method Details
-
setHeaders
-
setProperties
-
getProperties
-
setClientConfiguration
-
getEntity
- Overrides:
getEntityin classorg.jboss.resteasy.specimpl.AbstractBuiltResponse
-
getEntityClass
- Overrides:
getEntityClassin classorg.jboss.resteasy.specimpl.AbstractBuiltResponse
-
hasEntity
public boolean hasEntity()- Overrides:
hasEntityin classorg.jboss.resteasy.specimpl.AbstractBuiltResponse
-
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 classorg.jboss.resteasy.specimpl.AbstractBuiltResponse
-
getHeaderValueProcessor
protected org.jboss.resteasy.spi.HeaderValueProcessor getHeaderValueProcessor()- Overrides:
getHeaderValueProcessorin classorg.jboss.resteasy.specimpl.AbstractBuiltResponse
-
getEntityStream
- Overrides:
getEntityStreamin classorg.jboss.resteasy.specimpl.BuiltResponse
-
setInputStream
- Overrides:
setInputStreamin classorg.jboss.resteasy.specimpl.BuiltResponse
-
readFrom
protected <T> Object readFrom(Class<T> type, Type genericType, jakarta.ws.rs.core.MediaType media, Annotation[] annotations) - Overrides:
readFromin classorg.jboss.resteasy.specimpl.BuiltResponse
-
bufferEntity
public boolean bufferEntity()- Overrides:
bufferEntityin classorg.jboss.resteasy.specimpl.BuiltResponse
-
abortIfClosed
public void abortIfClosed()- Overrides:
abortIfClosedin classorg.jboss.resteasy.specimpl.AbstractBuiltResponse
-