Interface SCP81ConnectionStatus

  • All Superinterfaces:
    Event

    public interface SCP81ConnectionStatus
    extends Event
    This interface defines event constants that are used for notifications of state changes of connections represented by SCP81Connection: connection established (corresponds to successful open()) connection setup failed (corresponds to unsuccessful open()) connection closed (corresponds to successful close()) communication error (corresponds to unexpected communication breakdown) server switch to other application (corresponds to server selecting another application via Content-Type header field) The object implementing SCP81ConnectionStatus interface is a Temporary Entry Point Object.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static short COMMUNICATION_ERROR
      This constant is used if connection was closed due to a communication error.
      static short CONNECTION_CLOSED
      This constant is used if connection was closed due an invocation of SCP81Connection.close().
      static short CONNECTION_ESTABLISHED
      This constant is used if the connection was successfully opened..
      static short CONNECTION_SETUP_FAILED
      This constant is used if the connection could not been opened.
      static short SERVER_SWITCH
      This constant is used if connection server switched to another application via Content-Type header field
    • Field Detail

      • CONNECTION_ESTABLISHED

        static final short CONNECTION_ESTABLISHED
        This constant is used if the connection was successfully opened..
        See Also:
        Constant Field Values
      • CONNECTION_SETUP_FAILED

        static final short CONNECTION_SETUP_FAILED
        This constant is used if the connection could not been opened.
        See Also:
        Constant Field Values
      • COMMUNICATION_ERROR

        static final short COMMUNICATION_ERROR
        This constant is used if connection was closed due to a communication error.
        See Also:
        Constant Field Values
      • CONNECTION_CLOSED

        static final short CONNECTION_CLOSED
        This constant is used if connection was closed due an invocation of SCP81Connection.close().
        See Also:
        Constant Field Values
      • SERVER_SWITCH

        static final short SERVER_SWITCH
        This constant is used if connection server switched to another application via Content-Type header field
        See Also:
        Constant Field Values
    • Method Detail

      • getDetails

        short getDetails()
        Used to retrieve detailed information about the state change..
        Returns:
        the reason for closing this connection.