public class ThreadLocalClientState extends Object implements ClientState
Constructor and Description |
---|
ThreadLocalClientState(LocalClientState initialState,
long timeToKeepState) |
ThreadLocalClientState(String baseURI) |
ThreadLocalClientState(String baseURI,
long timeToKeepState) |
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
|
protected ClientState |
getState() |
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> templates)
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 response)
Sets Response
|
void |
setTemplates(javax.ws.rs.core.MultivaluedMap<String,String> map)
Sets the map containing template name and value pairs
|
void |
setTimeToKeepState(long timeToKeepState) |
public ThreadLocalClientState(String baseURI)
public ThreadLocalClientState(String baseURI, long timeToKeepState)
public ThreadLocalClientState(LocalClientState initialState, long timeToKeepState)
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 response)
ClientState
setResponse
in interface ClientState
response
- 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> templates)
ClientState
newState
in interface ClientState
currentURI
- baseURIheaders
- request headers, can be nulltemplates
- initial templates map, can be nullprotected ClientState getState()
public void setTimeToKeepState(long timeToKeepState)
Apache CXF