|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jersey.api.client.ClientRequest
com.sun.jersey.client.impl.ClientRequestImpl
public final class ClientRequestImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sun.jersey.api.client.ClientRequest |
|---|
ClientRequest.Builder |
| Constructor Summary | |
|---|---|
ClientRequestImpl(URI uri,
String method)
|
|
ClientRequestImpl(URI uri,
String method,
Object entity)
|
|
ClientRequestImpl(URI uri,
String method,
Object entity,
javax.ws.rs.core.MultivaluedMap<String,Object> metadata)
|
|
| Method Summary | |
|---|---|
OutputStream |
adapt(ClientRequest request,
OutputStream out)
Adapt the output stream of the client request. |
ClientRequest |
clone()
Clone the request. |
ClientRequestAdapter |
getAdapter()
Get the client request adapter. |
Object |
getEntity()
Get the entity of the request. |
javax.ws.rs.core.MultivaluedMap<String,Object> |
getHeaders()
Get the HTTP headers of the request. |
javax.ws.rs.core.MultivaluedMap<String,Object> |
getMetadata()
Get the HTTP headers of the request. |
String |
getMethod()
Get the HTTP method of the request. |
Map<String,Object> |
getProperties()
Get the mutable property bag. |
URI |
getURI()
Get the URI of the request. |
void |
setAdapter(ClientRequestAdapter adapter)
Set the client request adapter. |
void |
setEntity(Object entity)
Set the entity of the request. |
void |
setMethod(String method)
Set the HTTP method of the request. |
void |
setProperties(Map<String,Object> properties)
Sets properties (replaces everything previously set). |
void |
setURI(URI uri)
Set the URI of the request. |
| Methods inherited from class com.sun.jersey.api.client.ClientRequest |
|---|
create, getHeaderValue, getPropertyAsFeature, getPropertyAsFeature |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientRequestImpl(URI uri,
String method)
public ClientRequestImpl(URI uri,
String method,
Object entity)
public ClientRequestImpl(URI uri,
String method,
Object entity,
javax.ws.rs.core.MultivaluedMap<String,Object> metadata)
| Method Detail |
|---|
public Map<String,Object> getProperties()
ClientRequest
getProperties in class ClientRequestpublic void setProperties(Map<String,Object> properties)
ClientRequest
setProperties in class ClientRequestpublic URI getURI()
ClientRequest
getURI in class ClientRequestpublic void setURI(URI uri)
ClientRequest
setURI in class ClientRequesturi - the URI of the request.public String getMethod()
ClientRequest
getMethod in class ClientRequestpublic void setMethod(String method)
ClientRequest
setMethod in class ClientRequestmethod - the HTTP method.public Object getEntity()
ClientRequest
getEntity in class ClientRequestpublic void setEntity(Object entity)
ClientRequest
Any Java type instance for a request entity, that is supported by the client
configuration of the client, can be passed. If generic information is
required then an instance of GenericEntity may
be used.
setEntity in class ClientRequestentity - the entity of the request.public javax.ws.rs.core.MultivaluedMap<String,Object> getMetadata()
ClientRequest
getMetadata in class ClientRequestpublic javax.ws.rs.core.MultivaluedMap<String,Object> getHeaders()
ClientRequest
getHeaders in class ClientRequestpublic ClientRequestAdapter getAdapter()
ClientRequest
getAdapter in class ClientRequestpublic void setAdapter(ClientRequestAdapter adapter)
ClientRequestIf an existing adapter is set then usually this adapter wrapped in the new adapter to be set such that the current adaption behaviour is retained and augmented with the new adpation behaviour.
setAdapter in class ClientRequestadapter - the client request adapter.public ClientRequest clone()
ClientRequest
clone in class ClientRequest
public OutputStream adapt(ClientRequest request,
OutputStream out)
throws IOException
ClientRequestAdapter
adapt in interface ClientRequestAdapterrequest - the client requestout - the output stream to write the request entity.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||