|
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)
|
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.ResponseBuilder |
getResponseBuilder()
Gets the responseBuilder |
javax.ws.rs.core.MultivaluedMap<String,String> |
getTemplates()
Gets the templates map |
ClientState |
newState(URI newBaseURI,
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 |
setResponseBuilder(javax.ws.rs.core.Response.ResponseBuilder responseBuilder)
Sets the responseBuilder |
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(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 setResponseBuilder(javax.ws.rs.core.Response.ResponseBuilder responseBuilder)
ClientState
setResponseBuilder
in interface ClientState
responseBuilder
- responseBuilderpublic javax.ws.rs.core.Response.ResponseBuilder getResponseBuilder()
ClientState
getResponseBuilder
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 newBaseURI, javax.ws.rs.core.MultivaluedMap<String,String> headers, javax.ws.rs.core.MultivaluedMap<String,String> templatesMap)
ClientState
newState
in interface ClientState
newBaseURI
- 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 |