public abstract class ClientResponse extends BuiltResponse
AbstractBuiltResponse.InputStreamWrapper<T extends BuiltResponse>
Modifier and Type | Field and Description |
---|---|
protected ClientConfiguration |
configuration |
protected Map<String,Object> |
properties |
protected RESTEasyTracingLogger |
tracingLogger |
annotations, bufferedEntity, entity, entityClass, genericType, is, isClosed, metadata, processor, reason, status, streamFullyRead, streamRead
Modifier | Constructor and Description |
---|---|
protected |
ClientResponse(ClientConfiguration configuration)
Deprecated.
|
protected |
ClientResponse(ClientConfiguration configuration,
RESTEasyTracingLogger tracingLogger) |
Modifier and Type | Method and Description |
---|---|
void |
abortIfClosed() |
boolean |
bufferEntity() |
void |
close() |
protected void |
finalize() |
Object |
getEntity() |
Class<?> |
getEntityClass() |
protected InputStream |
getEntityStream() |
protected HeaderValueProcessor |
getHeaderValueProcessor() |
Map<String,Object> |
getProperties() |
boolean |
hasEntity() |
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
|
protected <T> Object |
readFrom(Class<T> type,
Type genericType,
javax.ws.rs.core.MediaType media,
Annotation[] annotations) |
void |
setClientConfiguration(ClientConfiguration configuration) |
void |
setHeaders(javax.ws.rs.core.MultivaluedMap<String,String> headers) |
protected abstract void |
setInputStream(InputStream is) |
void |
setProperties(Map<String,Object> properties) |
getInputStream, readEntity, releaseConnection, releaseConnection
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
protected ClientConfiguration configuration
protected RESTEasyTracingLogger tracingLogger
@Deprecated protected ClientResponse(ClientConfiguration configuration)
protected ClientResponse(ClientConfiguration configuration, RESTEasyTracingLogger tracingLogger)
public void setClientConfiguration(ClientConfiguration configuration)
public Object getEntity()
getEntity
in class AbstractBuiltResponse
public Class<?> getEntityClass()
getEntityClass
in class AbstractBuiltResponse
public boolean hasEntity()
hasEntity
in class AbstractBuiltResponse
public void noReleaseConnection()
public void close()
close
in interface AutoCloseable
close
in class AbstractBuiltResponse
protected void finalize() throws Throwable
protected HeaderValueProcessor getHeaderValueProcessor()
getHeaderValueProcessor
in class AbstractBuiltResponse
protected InputStream getEntityStream()
getEntityStream
in class BuiltResponse
protected abstract void setInputStream(InputStream is)
setInputStream
in class BuiltResponse
protected <T> Object readFrom(Class<T> type, Type genericType, javax.ws.rs.core.MediaType media, Annotation[] annotations)
readFrom
in class BuiltResponse
public boolean bufferEntity()
bufferEntity
in class BuiltResponse
public void abortIfClosed()
abortIfClosed
in class AbstractBuiltResponse
Copyright © 2019 JBoss by Red Hat. All rights reserved.