public class CloseableClientResponse extends com.sun.jersey.api.client.ClientResponse implements AutoCloseable
ClientResponse
to make it AutoCloseable
.Constructor and Description |
---|
CloseableClientResponse(javax.ws.rs.core.Response.StatusType statusType,
com.sun.jersey.core.header.InBoundHeaders headers,
InputStream entity,
com.sun.jersey.spi.MessageBodyWorkers workers) |
Modifier and Type | Method and Description |
---|---|
protected static com.sun.jersey.core.header.InBoundHeaders |
getResponseHeaders(com.sun.jersey.api.client.ClientResponse response) |
static CloseableClientResponse |
of(com.sun.jersey.api.client.ClientResponse response)
|
bufferEntity, close, getAllow, getClient, getClientResponseStatus, getCookies, getEntity, getEntity, getEntityInputStream, getEntityTag, getHeaders, getLanguage, getLastModified, getLength, getLinks, getLocation, getMetadata, getProperties, getResponseDate, getResponseStatus, getStatus, getStatusInfo, getType, hasEntity, setEntityInputStream, setResponseStatus, setStatus, setStatus, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close
public CloseableClientResponse(javax.ws.rs.core.Response.StatusType statusType, com.sun.jersey.core.header.InBoundHeaders headers, InputStream entity, com.sun.jersey.spi.MessageBodyWorkers workers)
public static CloseableClientResponse of(com.sun.jersey.api.client.ClientResponse response)
protected static com.sun.jersey.core.header.InBoundHeaders getResponseHeaders(com.sun.jersey.api.client.ClientResponse response)
Copyright © 2018 Nuxeo. All rights reserved.