|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.xbus.technical.http.HTTPSender
public class HTTPSender
The HTTPSender sends a message to an URL.
For sending SOAPMessages there are two special features:
SOAPAction,
referencing the function.OK,
the HTTPSender reads the error stream as the response.
| Constructor Summary | |
|---|---|
HTTPSender(XBUSSystem destination)
Stores the destination for later use. |
|
| Method Summary | |
|---|---|
java.lang.String |
execute(java.lang.String function,
java.lang.String callData)
Sends the callData to the system. |
java.lang.String |
getType()
A Sender can send data either as a String
or as an Object to the neighboring system. |
protected org.apache.commons.httpclient.methods.PostMethod |
initialize(java.lang.String function,
java.lang.String url)
|
protected java.lang.String |
sendMessage(org.apache.commons.httpclient.methods.PostMethod method)
|
protected void |
setRequestHeaders(java.lang.String function,
org.apache.commons.httpclient.methods.PostMethod method)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HTTPSender(XBUSSystem destination)
| Method Detail |
|---|
public java.lang.String execute(java.lang.String function,
java.lang.String callData)
throws XException
callData to the system. function
is ignored.
execute in interface TextSenderfunction - used by some senderscallData - the data that shall be send to the neighbor system
null
XException - if something goes wrong
protected org.apache.commons.httpclient.methods.PostMethod initialize(java.lang.String function,
java.lang.String url)
throws XException
XException
protected void setRequestHeaders(java.lang.String function,
org.apache.commons.httpclient.methods.PostMethod method)
throws XException
XException
protected java.lang.String sendMessage(org.apache.commons.httpclient.methods.PostMethod method)
throws XException
XExceptionpublic java.lang.String getType()
SenderSender can send data either as a String
or as an Object to the neighboring system.Strings the Sender must fulfill two
preconditions:
getType returns Constants.TYPE_TEXTTextSenderObjects the Sender must also fulfill two
preconditions:
getType returns Constants.TYPE_OBJECTObjectSender
getType in interface Sender
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||