public class LocalClientState extends Object implements ClientState
Constructor and Description |
---|
LocalClientState() |
LocalClientState(LocalClientState cs) |
LocalClientState(URI baseURI) |
LocalClientState(URI baseURI,
URI currentURI) |
Modifier and Type | Method and Description |
---|---|
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
|
public LocalClientState()
public LocalClientState(URI baseURI)
public LocalClientState(LocalClientState cs)
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 nullApache CXF