|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClientState
Represents the client state : - baseURI - current uri builder - current requestHeaders - current template parameters map - last response
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 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. |
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 |
Method Detail |
---|
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> map)
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 null
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |