public interface MessageContext
interceptors
to pass information on to
endpoints.Modifier and Type | Method and Description |
---|---|
void |
clearResponse()
Removes the response message, if any.
|
boolean |
containsProperty(String name)
Check if this message context contains a property with the given name.
|
Object |
getProperty(String name)
Gets the value of a specific property from the
MessageContext . |
String[] |
getPropertyNames()
Return the names of all properties in this
MessageContext . |
WebServiceMessage |
getRequest()
Returns the request message.
|
WebServiceMessage |
getResponse()
Returns the response message.
|
boolean |
hasResponse()
Indicates whether this context has a response.
|
void |
readResponse(InputStream inputStream)
Reads a response message from the given input stream.
|
void |
removeProperty(String name)
Removes a property from the
MessageContext . |
void |
setProperty(String name,
Object value)
Sets the name and value of a property associated with the
MessageContext . |
void |
setResponse(WebServiceMessage response)
Sets the response message.
|
WebServiceMessage getRequest()
boolean hasResponse()
true
if this context has a response; false
otherwiseWebServiceMessage getResponse()
hasResponse()
void setResponse(WebServiceMessage response)
response
- the response messageIllegalStateException
- if a response has already been createdvoid clearResponse()
void readResponse(InputStream inputStream) throws IOException
inputStream
- the stream to read the response fromIOException
- in case of I/O errorsIllegalStateException
- if a response has already been createdvoid setProperty(String name, Object value)
MessageContext
. If the
MessageContext
contains a value of the same property, the old value is replaced.name
- name of the property associated with the valuevalue
- value of the propertyObject getProperty(String name)
MessageContext
.name
- name of the property whose value is to be retrievedvoid removeProperty(String name)
MessageContext
.name
- name of the property to be removedboolean containsProperty(String name)
name
- the name of the property to look fortrue
if the MessageContext
contains the property; false
otherwiseString[] getPropertyNames()
MessageContext
.Copyright © 2005–2015 The Spring Web Services Framework. All rights reserved.