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 |
annotations, bufferedEntity, entity, entityClass, genericType, is, isClosed, metadata, processor, reason, status, streamFullyRead, streamRead| Modifier | Constructor and Description |
|---|---|
protected |
ClientResponse(ClientConfiguration configuration) |
| 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, releaseConnectionaddMethodAnnotations, 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, toHeaderStringprotected ClientConfiguration configuration
protected ClientResponse(ClientConfiguration configuration)
public void setClientConfiguration(ClientConfiguration configuration)
public Object getEntity()
getEntity in class AbstractBuiltResponsepublic Class<?> getEntityClass()
getEntityClass in class AbstractBuiltResponsepublic boolean hasEntity()
hasEntity in class AbstractBuiltResponsepublic void noReleaseConnection()
public void close()
close in interface AutoCloseableclose in class AbstractBuiltResponseprotected void finalize()
throws Throwable
protected HeaderValueProcessor getHeaderValueProcessor()
getHeaderValueProcessor in class AbstractBuiltResponseprotected InputStream getEntityStream()
getEntityStream in class BuiltResponseprotected abstract void setInputStream(InputStream is)
setInputStream in class BuiltResponseprotected <T> Object readFrom(Class<T> type, Type genericType, javax.ws.rs.core.MediaType media, Annotation[] annotations)
readFrom in class BuiltResponsepublic boolean bufferEntity()
bufferEntity in class BuiltResponsepublic void abortIfClosed()
abortIfClosed in class AbstractBuiltResponseCopyright © 2019 JBoss by Red Hat. All rights reserved.