|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 TextSender
function
- used by some senderscallData
- the data that shall be send to the neighbor system
null
XException
- if something goes wrongprotected 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
XException
public java.lang.String getType()
Sender
Sender
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_TEXT
TextSender
Objects
the Sender must also fulfill two
preconditions:
getType
returns Constants.TYPE_OBJECT
ObjectSender
getType
in interface Sender
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |