|
|||||||||
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 net.sf.xbus.technical.http.HTTPStreamSender
public class HTTPStreamSender
HTTPStreamSender
gets an InputStream
and
streams it to an URL.
Constructor Summary | |
---|---|
HTTPStreamSender(XBUSSystem destination)
Stores the given destination. |
Method Summary | |
---|---|
java.lang.Object |
execute(java.lang.String function,
java.lang.Object callData)
The given object will be send to the neighbor system. |
java.lang.String |
getType()
A Sender can send data either as a String
or as an Object to the neighboring system. |
Methods inherited from class net.sf.xbus.technical.http.HTTPSender |
---|
execute, initialize, sendMessage, setRequestHeaders |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HTTPStreamSender(XBUSSystem destination)
destination
- name of the interface definition
XException
- neverMethod Detail |
---|
public java.lang.Object execute(java.lang.String function, java.lang.Object callData) throws XException
ObjectSender
Optionally a function can be specified. It can be used for calling different methods of the neighbor-system.
execute
in interface ObjectSender
function
- used by some senderscallData
- the data that shall be send to the neighbor system
XException
- if something goes wrongpublic 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
getType
in class HTTPSender
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |