Apache CXF API

org.apache.cxf.jaxrs.client.spec
Class ClientRequestContextImpl

java.lang.Object
  extended by org.apache.cxf.jaxrs.impl.AbstractPropertiesImpl
      extended by org.apache.cxf.jaxrs.impl.AbstractRequestContextImpl
          extended by org.apache.cxf.jaxrs.client.spec.ClientRequestContextImpl
All Implemented Interfaces:
javax.ws.rs.client.ClientRequestContext

public class ClientRequestContextImpl
extends AbstractRequestContextImpl
implements javax.ws.rs.client.ClientRequestContext


Field Summary
 
Fields inherited from class org.apache.cxf.jaxrs.impl.AbstractRequestContextImpl
h
 
Fields inherited from class org.apache.cxf.jaxrs.impl.AbstractPropertiesImpl
m
 
Constructor Summary
ClientRequestContextImpl(Message m, boolean responseContext)
           
 
Method Summary
 javax.ws.rs.client.Client getClient()
           
 javax.ws.rs.core.Configuration getConfiguration()
           
 Object getEntity()
           
 Annotation[] getEntityAnnotations()
           
 Class<?> getEntityClass()
           
 OutputStream getEntityStream()
           
 Type getEntityType()
           
 javax.ws.rs.core.MultivaluedMap<String,Object> getHeaders()
           
 javax.ws.rs.core.MediaType getMediaType()
           
 javax.ws.rs.core.MultivaluedMap<String,String> getStringHeaders()
           
 URI getUri()
           
 boolean hasEntity()
           
 void setEntity(Object entity)
           
 void setEntity(Object entity, Annotation[] anns, javax.ws.rs.core.MediaType mt)
           
 void setEntityStream(OutputStream os)
           
 void setUri(URI requestURI)
           
 
Methods inherited from class org.apache.cxf.jaxrs.impl.AbstractRequestContextImpl
abortWith, checkContext, getAcceptableLanguages, getAcceptableMediaTypes, getCookies, getDate, getHeaderString, getHttpHeaders, getLanguage, getLength, getMethod, setMethod
 
Methods inherited from class org.apache.cxf.jaxrs.impl.AbstractPropertiesImpl
getProperty, getPropertyNames, removeProperty, setProperty
 
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
abortWith, getAcceptableLanguages, getAcceptableMediaTypes, getCookies, getDate, getHeaderString, getLanguage, getMethod, getProperty, getPropertyNames, removeProperty, setMethod, setProperty
 

Constructor Detail

ClientRequestContextImpl

public ClientRequestContextImpl(Message m,
                                boolean responseContext)
Method Detail

getMediaType

public javax.ws.rs.core.MediaType getMediaType()
Specified by:
getMediaType in interface javax.ws.rs.client.ClientRequestContext
Overrides:
getMediaType in class AbstractRequestContextImpl

getClient

public javax.ws.rs.client.Client getClient()
Specified by:
getClient in interface javax.ws.rs.client.ClientRequestContext

getConfiguration

public javax.ws.rs.core.Configuration getConfiguration()
Specified by:
getConfiguration in interface javax.ws.rs.client.ClientRequestContext

getEntity

public Object getEntity()
Specified by:
getEntity in interface javax.ws.rs.client.ClientRequestContext

getEntityAnnotations

public Annotation[] getEntityAnnotations()
Specified by:
getEntityAnnotations in interface javax.ws.rs.client.ClientRequestContext

getEntityClass

public Class<?> getEntityClass()
Specified by:
getEntityClass in interface javax.ws.rs.client.ClientRequestContext

getEntityType

public Type getEntityType()
Specified by:
getEntityType in interface javax.ws.rs.client.ClientRequestContext

getEntityStream

public OutputStream getEntityStream()
Specified by:
getEntityStream in interface javax.ws.rs.client.ClientRequestContext

hasEntity

public boolean hasEntity()
Specified by:
hasEntity in interface javax.ws.rs.client.ClientRequestContext

setEntity

public void setEntity(Object entity,
                      Annotation[] anns,
                      javax.ws.rs.core.MediaType mt)
Specified by:
setEntity in interface javax.ws.rs.client.ClientRequestContext

setEntity

public void setEntity(Object entity)
Specified by:
setEntity in interface javax.ws.rs.client.ClientRequestContext

getUri

public URI getUri()
Specified by:
getUri in interface javax.ws.rs.client.ClientRequestContext

setEntityStream

public void setEntityStream(OutputStream os)
Specified by:
setEntityStream in interface javax.ws.rs.client.ClientRequestContext

setUri

public void setUri(URI requestURI)
Specified by:
setUri in interface javax.ws.rs.client.ClientRequestContext

getHeaders

public javax.ws.rs.core.MultivaluedMap<String,Object> getHeaders()
Specified by:
getHeaders in interface javax.ws.rs.client.ClientRequestContext

getStringHeaders

public javax.ws.rs.core.MultivaluedMap<String,String> getStringHeaders()
Specified by:
getStringHeaders in interface javax.ws.rs.client.ClientRequestContext

Apache CXF API

Apache CXF