|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.xbus.technical.socket.SocketSender
public class SocketSender
The SocketSender sends a message to a socket. No response is
given back.
| Constructor Summary | |
|---|---|
SocketSender(XBUSSystem destination)
The constructor stores the destination. |
|
| Method Summary | |
|---|---|
java.lang.String |
execute(java.lang.String function,
java.lang.String callData)
The given string 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SocketSender(XBUSSystem destination)
destination - name of the interface definition| Method Detail |
|---|
public java.lang.String execute(java.lang.String function,
java.lang.String callData)
throws XException
TextSenderOptionally a function can be specified. It can be used for calling different methods of the neighbor-system.
execute in interface TextSenderfunction - ignoredcallData - the data that shall be send to the neighbor system
XException - if something goes wrongTextSender.execute(java.lang.String,
java.lang.String)public 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 | ||||||||