Package jade.mtp

Interface MTP

    • Method Detail

      • strToAddr

        TransportAddress strToAddr​(String rep)
                            throws MTPException
        Converts a string representing a valid address in this MTP to a TransportAddress object.
        Parameters:
        rep - The string representation of the address.
        Returns:
        A TransportAddress object, created from the given string.
        Throws:
        MTPException - If the given string is not a valid address according to this MTP.
      • addrToStr

        String addrToStr​(TransportAddress ta)
                  throws MTPException
        Converts a TransportAddress object into a string representation.
        Parameters:
        ta - The TransportAddress object.
        Returns:
        A string representing the given address.
        Throws:
        MTPException - If the given TransportAddress is not a valid address for this MTP.
      • getName

        String getName()
        Reads the name of the message transport protocol managed by this MTP. The FIPA standard message transport protocols have a name starting with "fipa.mts.mtp".
        Returns:
        A string, that is the name of this MTP.
      • getSupportedProtocols

        String[] getSupportedProtocols()