fipaos.mts
Interface InternalMTP
- All Known Implementing Classes:
- InternalMTPBase
- public interface InternalMTP
- extends PreParserService
Common interface to a specific transport type - generally a proprietory
transport (hence provides an intra-platform communication protocol)
Semantics of outgoing()
(inehrited from PostParserService
)
are as follows:
- If
Envelope.getViaACC()
is true, the message should be routed
to the ACC, rather than the intended-receiver
- Otherwise, the message is sent to the first address specified within the AID of the
intended-receiver field of the envelope only.
- If no addresses are specified, the Agent's name should be used to locate
the Agent, provided its HAP address is the same as the Agent the transport represents,
or is ommited.
In the event that a failure occurs, Envelope.setErrorCode()
should be used to set the appropriate error condition, and the message
propogated back up the stack (via the incoming()
method of
the previous Service
in the comms stack)
Method Summary |
URL | getAddress() Method to retreive the protocol dependant address of an object that can be used
to receive messages. |
List | getProtocols() Retreives the protocols known by this comms implementation |
getAddress
public URL getAddress()
- Method to retreive the protocol dependant address of an object that can be used
to receive messages.
- Returns: A String containing the required address, or null if this Comms
doesn't publish such an object
getProtocols
public List getProtocols()
- Retreives the protocols known by this comms implementation
- Returns: A List of String's