|
Spring Web Services Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MessageContext
Context holder for message requests.
Contains both the message request as well as the response. Response message are usually lazily created (but do not have to be).
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
WebServiceMessage getRequest()
WebServiceMessage getResponse()
hasResponse()boolean hasResponse()
true if this context has a response; false otherwise
void readResponse(InputStream inputStream)
throws IOException
inputStream - the stream to read the response from
IOException - in case of I/O errors
IllegalStateException - if a response has already been created
void 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 retrieved
void removeProperty(String name)
MessageContext.
name - name of the property to be removedboolean containsProperty(String name)
name - the name of the property to look for
true if the MessageContext contains the property; false otherwiseString[] getPropertyNames()
MessageContext.
|
Spring Web Services Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||