|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.message.internal.OutboundMessageContext
org.glassfish.jersey.client.ClientRequest
public class ClientRequest
Jersey client request context.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.glassfish.jersey.message.internal.OutboundMessageContext |
|---|
OutboundMessageContext.StreamProvider |
| Constructor Summary | |
|---|---|
ClientRequest(ClientRequest original)
Copy constructor. |
|
ClientRequest(java.net.URI requestUri,
ClientConfig configuration,
PropertiesDelegate propertiesDelegate)
Create new Jersey client request context. |
|
| Method Summary | |
|---|---|
void |
abortWith(Response response)
|
void |
accept(MediaType... types)
Add new accepted types to the message headers. |
void |
accept(java.lang.String... types)
Add new accepted types to the message headers. |
void |
acceptLanguage(java.util.Locale... locales)
Add new accepted languages to the message headers. |
void |
acceptLanguage(java.lang.String... locales)
Add new accepted languages to the message headers. |
void |
cacheControl(CacheControl cacheControl)
Add new cache control entry to the message headers. |
void |
cookie(Cookie cookie)
Add new cookie to the message headers. |
void |
encoding(java.lang.String encoding)
Set message encoding. |
Response |
getAbortResponse()
Get the request filter chain aborting response if set, or null otherwise. |
JerseyClient |
getClient()
|
ClientConfig |
getConfiguration()
|
java.util.Map<java.lang.String,Cookie> |
getCookies()
|
java.lang.String |
getMethod()
|
java.lang.Object |
getProperty(java.lang.String name)
|
java.util.Enumeration<java.lang.String> |
getPropertyNames()
|
java.net.URI |
getUri()
|
MessageBodyWorkers |
getWorkers()
Get the message body workers associated with the request. |
boolean |
isAsynchronous()
Returns true if the request is called asynchronously using AsyncInvoker |
void |
language(java.util.Locale language)
Set message language. |
void |
language(java.lang.String language)
Set message language. |
void |
removeProperty(java.lang.String name)
|
void |
setMethod(java.lang.String method)
|
void |
setProperty(java.lang.String name,
java.lang.Object object)
|
void |
setUri(java.net.URI uri)
|
void |
setWorkers(MessageBodyWorkers workers)
Set the message body workers associated with the request. |
void |
type(MediaType type)
Set message content type. |
void |
type(java.lang.String type)
Set message content type. |
void |
variant(Variant variant)
Set message content variant (type, language and encoding). |
| Methods inherited from class org.glassfish.jersey.message.internal.OutboundMessageContext |
|---|
close, commitStream, getAcceptableLanguages, getAcceptableMediaTypes, getAllowedMethods, getDate, getEntity, getEntityAnnotations, getEntityClass, getEntityStream, getEntityTag, getEntityType, getHeaders, getHeaderString, getLanguage, getLastModified, getLength, getLink, getLinkBuilder, getLinks, getLocation, getMediaType, getRequestCookies, getResponseCookies, getStringHeaders, hasEntity, hasLink, isCommitted, replaceHeaders, setEntity, setEntity, setEntity, setEntity, setEntityAnnotations, setEntityStream, setEntityType, setMediaType, setStreamProvider |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.ws.rs.client.ClientRequestContext |
|---|
getAcceptableLanguages, getAcceptableMediaTypes, getDate, getEntity, getEntityAnnotations, getEntityClass, getEntityStream, getEntityType, getHeaders, getHeaderString, getLanguage, getMediaType, getStringHeaders, hasEntity, setEntity, setEntityStream |
| Constructor Detail |
|---|
public ClientRequest(java.net.URI requestUri,
ClientConfig configuration,
PropertiesDelegate propertiesDelegate)
requestUri - request Uri.configuration - request configuration.propertiesDelegate - properties delegate.public ClientRequest(ClientRequest original)
original - original instance.| Method Detail |
|---|
public java.lang.Object getProperty(java.lang.String name)
getProperty in interface ClientRequestContextpublic java.util.Enumeration<java.lang.String> getPropertyNames()
getPropertyNames in interface ClientRequestContext
public void setProperty(java.lang.String name,
java.lang.Object object)
setProperty in interface ClientRequestContextpublic void removeProperty(java.lang.String name)
removeProperty in interface ClientRequestContextpublic java.net.URI getUri()
getUri in interface ClientRequestContextpublic void setUri(java.net.URI uri)
setUri in interface ClientRequestContextpublic java.lang.String getMethod()
getMethod in interface ClientRequestContextpublic void setMethod(java.lang.String method)
setMethod in interface ClientRequestContextpublic JerseyClient getClient()
getClient in interface ClientRequestContextpublic void abortWith(Response response)
abortWith in interface ClientRequestContextpublic Response getAbortResponse()
null otherwise.
null otherwise.public ClientConfig getConfiguration()
getConfiguration in interface ClientRequestContextpublic java.util.Map<java.lang.String,Cookie> getCookies()
getCookies in interface ClientRequestContextpublic MessageBodyWorkers getWorkers()
public void setWorkers(MessageBodyWorkers workers)
workers - message body workers.public void accept(MediaType... types)
types - accepted types to be added.public void accept(java.lang.String... types)
types - accepted types to be added.public void acceptLanguage(java.util.Locale... locales)
locales - accepted languages to be added.public void acceptLanguage(java.lang.String... locales)
locales - accepted languages to be added.public void cookie(Cookie cookie)
cookie - cookie to be added.public void cacheControl(CacheControl cacheControl)
cacheControl - cache control entry to be added.public void encoding(java.lang.String encoding)
encoding - message encoding to be set.public void language(java.lang.String language)
language - message language to be set.public void language(java.util.Locale language)
language - message language to be set.public void type(MediaType type)
type - message content type to be set.public void type(java.lang.String type)
type - message content type to be set.public void variant(Variant variant)
variant - message content content variant (type, language and encoding)
to be set.public boolean isAsynchronous()
AsyncInvoker
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||