|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ponder2.comms.Receiver
public class Receiver
receive methods to match the transmit methods. This is a helper class common to all protocols. If the protocol is capable of handing the transmit arguments straight across then these methods simply have to be called without any further work
| Constructor Summary | |
|---|---|
Receiver()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
execute(java.lang.String sxml)
Executes a remotely received command. |
static com.twicom.qdparser.TaggedElement |
execute(com.twicom.qdparser.TaggedElement xml)
Executes a remotely received command. |
static P2Object |
execute(java.net.URI address,
OID oid,
P2Object source,
java.lang.String op,
P2Object[] args)
Executes a remotely received command. |
static com.twicom.qdparser.TaggedElement |
execute(java.net.URI address,
com.twicom.qdparser.TaggedElement xoid,
com.twicom.qdparser.TaggedElement xsource,
java.lang.String op,
com.twicom.qdparser.TaggedElement[] xargs)
Executes a remotely received command. |
static P2Object |
getObject(java.net.URI address,
java.lang.String path)
Returns a managed object to a remote SMC. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Receiver()
| Method Detail |
|---|
public static P2Object getObject(java.net.URI address,
java.lang.String path)
throws Ponder2Exception
address - the URI used to talk to this SMCpath - the local pathname for the object to be looked up
Ponder2Exception
public static P2Object execute(java.net.URI address,
OID oid,
P2Object source,
java.lang.String op,
P2Object[] args)
throws Ponder2Exception
address - the URI that this SMC was addressed withoid - the OID of the object (target) to receive the commandsource - the source object of the commandop - the operation itselfargs - an array of operation arguments
Ponder2Exception - if an error is found
public static com.twicom.qdparser.TaggedElement execute(java.net.URI address,
com.twicom.qdparser.TaggedElement xoid,
com.twicom.qdparser.TaggedElement xsource,
java.lang.String op,
com.twicom.qdparser.TaggedElement[] xargs)
throws Ponder2Exception
address - the URI that this SMC was addressed withxoid - the OID of the object (target) to receive the command in XML
formatxsource - the source object of the command in XML formatop - the operation itselfxargs - an array of operation arguments in XML format
Ponder2Exception
public static com.twicom.qdparser.TaggedElement execute(com.twicom.qdparser.TaggedElement xml)
throws Ponder2Exception
xml - a single XML structure containing all the information for the
execute command as sub-elements
Ponder2Exception
public static java.lang.String execute(java.lang.String sxml)
throws Ponder2Exception
sxml - a single XML structure, in string form, containing all the
information for the execute command as sub-elements
Ponder2Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||