public class ClientRequestContextImpl
extends java.lang.Object
implements javax.ws.rs.client.ClientRequestContext
Modifier and Type | Field and Description |
---|---|
protected javax.ws.rs.core.Response |
abortedWithResponse |
protected ClientInvocation |
invocation |
Constructor and Description |
---|
ClientRequestContextImpl(ClientInvocation invocation) |
Modifier and Type | Method and Description |
---|---|
void |
abortWith(javax.ws.rs.core.Response response) |
javax.ws.rs.core.Response |
getAbortedWithResponse() |
java.util.List<java.util.Locale> |
getAcceptableLanguages() |
java.util.List<javax.ws.rs.core.MediaType> |
getAcceptableMediaTypes() |
javax.ws.rs.client.Client |
getClient() |
javax.ws.rs.core.Configuration |
getConfiguration() |
java.util.Map<java.lang.String,javax.ws.rs.core.Cookie> |
getCookies() |
java.util.Date |
getDate() |
java.lang.Object |
getEntity() |
java.lang.annotation.Annotation[] |
getEntityAnnotations() |
java.lang.Class<?> |
getEntityClass() |
java.io.OutputStream |
getEntityStream() |
java.lang.reflect.Type |
getEntityType() |
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> |
getHeaders() |
java.lang.String |
getHeaderString(java.lang.String name) |
java.util.Locale |
getLanguage() |
javax.ws.rs.core.MediaType |
getMediaType() |
java.lang.String |
getMethod() |
java.lang.Object |
getProperty(java.lang.String name) |
java.util.Collection<java.lang.String> |
getPropertyNames() |
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> |
getStringHeaders() |
java.net.URI |
getUri() |
boolean |
hasEntity() |
void |
removeProperty(java.lang.String name) |
void |
setEntity(java.lang.Object entity) |
void |
setEntity(java.lang.Object entity,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
void |
setEntityStream(java.io.OutputStream entityStream) |
void |
setMethod(java.lang.String method) |
void |
setProperty(java.lang.String name,
java.lang.Object object) |
void |
setUri(java.net.URI uri) |
protected ClientInvocation invocation
protected javax.ws.rs.core.Response abortedWithResponse
public ClientRequestContextImpl(ClientInvocation invocation)
public javax.ws.rs.core.Response getAbortedWithResponse()
public java.lang.Object getProperty(java.lang.String name)
getProperty
in interface javax.ws.rs.client.ClientRequestContext
public java.util.Collection<java.lang.String> getPropertyNames()
getPropertyNames
in interface javax.ws.rs.client.ClientRequestContext
public void setProperty(java.lang.String name, java.lang.Object object)
setProperty
in interface javax.ws.rs.client.ClientRequestContext
public void removeProperty(java.lang.String name)
removeProperty
in interface javax.ws.rs.client.ClientRequestContext
public java.lang.Class<?> getEntityClass()
getEntityClass
in interface javax.ws.rs.client.ClientRequestContext
public java.lang.reflect.Type getEntityType()
getEntityType
in interface javax.ws.rs.client.ClientRequestContext
public void setEntity(java.lang.Object entity)
setEntity
in interface javax.ws.rs.client.ClientRequestContext
public void setEntity(java.lang.Object entity, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
setEntity
in interface javax.ws.rs.client.ClientRequestContext
public java.net.URI getUri()
getUri
in interface javax.ws.rs.client.ClientRequestContext
public void setUri(java.net.URI uri)
setUri
in interface javax.ws.rs.client.ClientRequestContext
public java.lang.String getMethod()
getMethod
in interface javax.ws.rs.client.ClientRequestContext
public void setMethod(java.lang.String method)
setMethod
in interface javax.ws.rs.client.ClientRequestContext
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> getHeaders()
getHeaders
in interface javax.ws.rs.client.ClientRequestContext
public java.util.Date getDate()
getDate
in interface javax.ws.rs.client.ClientRequestContext
public java.util.Locale getLanguage()
getLanguage
in interface javax.ws.rs.client.ClientRequestContext
public javax.ws.rs.core.MediaType getMediaType()
getMediaType
in interface javax.ws.rs.client.ClientRequestContext
public java.util.List<javax.ws.rs.core.MediaType> getAcceptableMediaTypes()
getAcceptableMediaTypes
in interface javax.ws.rs.client.ClientRequestContext
public java.util.List<java.util.Locale> getAcceptableLanguages()
getAcceptableLanguages
in interface javax.ws.rs.client.ClientRequestContext
public java.util.Map<java.lang.String,javax.ws.rs.core.Cookie> getCookies()
getCookies
in interface javax.ws.rs.client.ClientRequestContext
public boolean hasEntity()
hasEntity
in interface javax.ws.rs.client.ClientRequestContext
public java.io.OutputStream getEntityStream()
getEntityStream
in interface javax.ws.rs.client.ClientRequestContext
public void setEntityStream(java.io.OutputStream entityStream)
setEntityStream
in interface javax.ws.rs.client.ClientRequestContext
public java.lang.Object getEntity()
getEntity
in interface javax.ws.rs.client.ClientRequestContext
public java.lang.annotation.Annotation[] getEntityAnnotations()
getEntityAnnotations
in interface javax.ws.rs.client.ClientRequestContext
public javax.ws.rs.client.Client getClient()
getClient
in interface javax.ws.rs.client.ClientRequestContext
public javax.ws.rs.core.Configuration getConfiguration()
getConfiguration
in interface javax.ws.rs.client.ClientRequestContext
public void abortWith(javax.ws.rs.core.Response response)
abortWith
in interface javax.ws.rs.client.ClientRequestContext
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> getStringHeaders()
getStringHeaders
in interface javax.ws.rs.client.ClientRequestContext
public java.lang.String getHeaderString(java.lang.String name)
getHeaderString
in interface javax.ws.rs.client.ClientRequestContext