fipaos.mts
Interface ExternalMTP
- All Known Implementing Classes:
- ExternalMTPBase
- public interface ExternalMTP
- extends PostParserService
Common interface to a specific transport type - generally an implementation of
a FIPA specified transport (hence use for inter-platform communications).
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)
Fields inherited from interface fipaos.mts.service.Service |
ACL_LANGUAGE_UNKNOWN, CONTENT_LANGUAGE_UNKNOWN, ERROR_STRING, ERROR_UNKNOWN, FIPAOS_DEBUG, FIPAOS_MSG_ID_SLOT, MALFORMED_ENVELOPE, MSG_DELIVERY_FAILURE_REASON, NONE, PROTOCOL_UNKNOWN, TARGET_UNKNOWN |
Method Summary |
List | getAddresses() Method to retreive the protocol dependant addresses of an object that can be used
to receive messages. |
List | getProtocols() Retreives the protocols known by this comms implementation |
getAddresses
public List getAddresses()
- Method to retreive the protocol dependant addresses of an object that can be used
to receive messages.
- Returns: A List containing the required addresses, 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