public abstract class ClientResponse extends BuiltResponse
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
bufferedEntity |
protected ClientConfiguration |
configuration |
protected Map<String,Object> |
properties |
annotations, entity, entityClass, genericType, isClosed, metadata, processor, status| 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() |
protected InputStream |
getEntityStream() |
protected HeaderValueProcessor |
getHeaderValueProcessor() |
protected abstract InputStream |
getInputStream() |
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
|
<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 |
releaseConnection()
release underlying connection but do not close
|
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) |
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, toHeaderStringprotected ClientConfiguration configuration
protected byte[] bufferedEntity
protected ClientResponse(ClientConfiguration configuration)
public void setClientConfiguration(ClientConfiguration configuration)
public Object getEntity()
getEntity in class BuiltResponsepublic boolean hasEntity()
hasEntity in class BuiltResponsepublic void noReleaseConnection()
public void close()
close in class BuiltResponseprotected void finalize()
throws Throwable
protected HeaderValueProcessor getHeaderValueProcessor()
getHeaderValueProcessor in class BuiltResponseprotected abstract InputStream getInputStream()
protected InputStream getEntityStream()
protected abstract void setInputStream(InputStream is)
public abstract void releaseConnection()
throws IOException
IOExceptionpublic <T> T readEntity(Class<T> type, Type genericType, Annotation[] anns)
readEntity in class BuiltResponseprotected <T> Object readFrom(Class<T> type, Type genericType, javax.ws.rs.core.MediaType media, Annotation[] annotations)
public boolean bufferEntity()
bufferEntity in class BuiltResponsepublic void abortIfClosed()
abortIfClosed in class BuiltResponseCopyright © 2017 JBoss by Red Hat. All rights reserved.