|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.sape.smfw.soapengine.MessageClient
MessageClient provides the functionality to send messages to a MessageService. It wraps the SOAP Call object which is accessible and customizatble to meet the application needs. For example, if the client needs to maintain a session with the server, it can call messageClient.getCall().setMaintainSession(true).
| Field Summary | |
private org.apache.axis.client.Call |
call
The call object used to send the SOAP request to the server |
private static org.apache.commons.logging.Log |
log
|
private MessageContext |
messageContext
The MessageContext for this client |
private MessageReader |
messageReader
The MessageReader used to receive messages |
private MessageWriter |
messageWriter
The MessageWriter used to send messages |
| Constructor Summary | |
MessageClient(String address,
MessageContext messageContext,
MessageReader messageReader,
MessageWriter messageWriter)
Constructs a MessageClient object. |
|
| Method Summary | |
private void |
addUserHeader(User user)
Adds a user header to each outgoing message we generate. |
org.apache.axis.client.Call |
getCall()
Returns the Call object used to send the SOAP request |
Message |
sendMessage(Message message)
Sends a message to a Web service and returns the response. |
void |
setCall(org.apache.axis.client.Call call)
Sets the Call object used to send the SOAP request |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final org.apache.commons.logging.Log log
private org.apache.axis.client.Call call
private MessageContext messageContext
private MessageReader messageReader
private MessageWriter messageWriter
| Constructor Detail |
public MessageClient(String address,
MessageContext messageContext,
MessageReader messageReader,
MessageWriter messageWriter)
throws MessagingEngineException
address - Endpoint address of the server specified as a URI.messageContext - The MessageContext for this client.messageReader - The MessageReader used to receive messages.messageWriter - The MessageWriter used to send messages.
MessagingEngineException - if there is an in creating the MessageClient| Method Detail |
public org.apache.axis.client.Call getCall()
public void setCall(org.apache.axis.client.Call call)
call - the Call object used to send the SOAP request
public Message sendMessage(Message message)
throws MessagingEngineException
message - the message to be sent
MessagingEngineException
private void addUserHeader(User user)
throws MessagingEngineException
user - the User object to add to user header
MessagingEngineException - if there is an in adding the header
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||