Class ExternalComponent

    • Method Detail

      • create

        public static ExternalComponent create​(String componentName,
                                               String sharedSecret,
                                               String hostname,
                                               int port)
        Creates a new external component using a default configuration. Any registered creation listeners are triggered.
        Parameters:
        componentName - The component name.
        sharedSecret - The shared secret (password).
        hostname - The hostname to connect to.
        port - The port to connect to.
        Returns:
        The external component.
      • create

        public static ExternalComponent create​(String componentName,
                                               String sharedSecret,
                                               XmppSessionConfiguration configuration,
                                               String hostname,
                                               int port)
        Creates a new external component. Any registered creation listeners are triggered.
        Parameters:
        componentName - The component name.
        sharedSecret - The shared secret (password).
        configuration - The configuration.
        hostname - The hostname to connect to.
        port - The port to connect to.
        Returns:
        The external component.
      • create

        public static ExternalComponent create​(String componentName,
                                               String sharedSecret,
                                               XmppSessionConfiguration xmppSessionConfiguration,
                                               ClientConnectionConfiguration connectionConfiguration)
        Creates a new external component using a default configuration. Any registered creation listeners are triggered.
        Parameters:
        componentName - The component name.
        sharedSecret - The shared secret (password).
        xmppSessionConfiguration - The XMPP configuration.
        connectionConfiguration - The connection configuration.
        Returns:
        The external component.
      • notifyException

        public final void notifyException​(Throwable e)
        Description copied from class: XmppSession
        Called if any unhandled exception is thrown during reading or writing.

        This method will close the stream.

        Overrides:
        notifyException in class XmppSession
        Parameters:
        e - The exception. If an unrecoverable XMPP stream error occurred, the exception is a StreamError.