public interface ClientState
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 baseURI,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
javax.ws.rs.core.MultivaluedMap<String,String> templates)
The factory method for creating a new state.
|
default ClientState |
newState(URI baseURI,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
javax.ws.rs.core.MultivaluedMap<String,String> templates,
Map<String,Object> properties)
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> templates)
Sets the map containing template name and value pairs
|
void setCurrentBuilder(javax.ws.rs.core.UriBuilder currentBuilder)
currentBuilder
- the builderjavax.ws.rs.core.UriBuilder getCurrentBuilder()
void setBaseURI(URI baseURI)
baseURI
- baseURIURI getBaseURI()
void setResponse(javax.ws.rs.core.Response response)
response
- responsejavax.ws.rs.core.Response getResponse()
void setRequestHeaders(javax.ws.rs.core.MultivaluedMap<String,String> requestHeaders)
requestHeaders
- request headersjavax.ws.rs.core.MultivaluedMap<String,String> getRequestHeaders()
void setTemplates(javax.ws.rs.core.MultivaluedMap<String,String> templates)
templates
- javax.ws.rs.core.MultivaluedMap<String,String> getTemplates()
void reset()
ClientState newState(URI baseURI, javax.ws.rs.core.MultivaluedMap<String,String> headers, javax.ws.rs.core.MultivaluedMap<String,String> templates)
baseURI
- baseURIheaders
- request headers, can be nulltemplates
- initial templates map, can be nulldefault ClientState newState(URI baseURI, javax.ws.rs.core.MultivaluedMap<String,String> headers, javax.ws.rs.core.MultivaluedMap<String,String> templates, Map<String,Object> properties)
baseURI
- baseURIheaders
- request headers, can be nulltemplates
- initial templates map, can be nullproperties
- additional properties, could be nullApache CXF