|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.jaxrs.client.LocalClientState
public class LocalClientState
Keeps the client state such as the baseURI, currentURI, requestHeaders, current response
Constructor Summary | |
---|---|
LocalClientState()
|
|
LocalClientState(LocalClientState cs)
|
|
LocalClientState(URI baseURI)
|
|
LocalClientState(URI baseURI,
URI currentURI)
|
Method Summary | |
---|---|
URI |
getBaseURI()
Gets the base URI |
javax.ws.rs.core.UriBuilder |
getCurrentBuilder()
Gets the current builder |
javax.ws.rs.core.MultivaluedMap<String,String> |
getRequestHeaders()
Gets the request headers |
javax.ws.rs.core.Response |
getResponse()
Gets Response |
javax.ws.rs.core.MultivaluedMap<String,String> |
getTemplates()
Gets the templates map |
ClientState |
newState(URI currentURI,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
javax.ws.rs.core.MultivaluedMap<String,String> templatesMap)
The factory method for creating a new state. |
void |
reset()
Resets the current state to the baseURI |
void |
setBaseURI(URI baseURI)
Sets the base URI |
void |
setCurrentBuilder(javax.ws.rs.core.UriBuilder currentBuilder)
Sets the current builder |
void |
setRequestHeaders(javax.ws.rs.core.MultivaluedMap<String,String> requestHeaders)
Sets the request headers |
void |
setResponse(javax.ws.rs.core.Response r)
Sets Response |
void |
setTemplates(javax.ws.rs.core.MultivaluedMap<String,String> map)
Sets the map containing template name and value pairs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalClientState()
public LocalClientState(URI baseURI)
public LocalClientState(URI baseURI, URI currentURI)
public LocalClientState(LocalClientState cs)
Method Detail |
---|
public void setCurrentBuilder(javax.ws.rs.core.UriBuilder currentBuilder)
ClientState
setCurrentBuilder
in interface ClientState
currentBuilder
- the builderpublic javax.ws.rs.core.UriBuilder getCurrentBuilder()
ClientState
getCurrentBuilder
in interface ClientState
public void setBaseURI(URI baseURI)
ClientState
setBaseURI
in interface ClientState
baseURI
- baseURIpublic URI getBaseURI()
ClientState
getBaseURI
in interface ClientState
public void setResponse(javax.ws.rs.core.Response r)
ClientState
setResponse
in interface ClientState
r
- responsepublic javax.ws.rs.core.Response getResponse()
ClientState
getResponse
in interface ClientState
public void setRequestHeaders(javax.ws.rs.core.MultivaluedMap<String,String> requestHeaders)
ClientState
setRequestHeaders
in interface ClientState
requestHeaders
- request headerspublic javax.ws.rs.core.MultivaluedMap<String,String> getRequestHeaders()
ClientState
getRequestHeaders
in interface ClientState
public javax.ws.rs.core.MultivaluedMap<String,String> getTemplates()
ClientState
getTemplates
in interface ClientState
public void setTemplates(javax.ws.rs.core.MultivaluedMap<String,String> map)
ClientState
setTemplates
in interface ClientState
public void reset()
ClientState
reset
in interface ClientState
public ClientState newState(URI currentURI, javax.ws.rs.core.MultivaluedMap<String,String> headers, javax.ws.rs.core.MultivaluedMap<String,String> templatesMap)
ClientState
newState
in interface ClientState
currentURI
- baseURIheaders
- request headers, can be nulltemplatesMap
- initial templates map, can be null
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |