Class ComponentConnectionManager

    • Field Detail

      • SECRET_PROP_KEY

        public static final java.lang.String SECRET_PROP_KEY
        Deprecated.
        See Also:
        Constant Field Values
      • PORT_ROUTING_TABLE_PROP_KEY

        public static final java.lang.String PORT_ROUTING_TABLE_PROP_KEY
        Deprecated.
        See Also:
        Constant Field Values
      • PACK_ROUTED_KEY

        public static final java.lang.String PACK_ROUTED_KEY
        Deprecated.
        See Also:
        Constant Field Values
      • RETURN_SERVICE_DISCO_KEY

        public static final java.lang.String RETURN_SERVICE_DISCO_KEY
        Deprecated.
        See Also:
        Constant Field Values
      • RETURN_SERVICE_DISCO_VAL

        public static final boolean RETURN_SERVICE_DISCO_VAL
        Deprecated.
        See Also:
        Constant Field Values
      • IDENTITY_TYPE_KEY

        public static final java.lang.String IDENTITY_TYPE_KEY
        Deprecated.
        See Also:
        Constant Field Values
      • IDENTITY_TYPE_VAL

        public static final java.lang.String IDENTITY_TYPE_VAL
        Deprecated.
        See Also:
        Constant Field Values
      • PACK_ROUTED_VAL

        public boolean PACK_ROUTED_VAL
        Deprecated.
      • PORTS

        public int[] PORTS
        Deprecated.
      • PORT_LOCAL_HOST_PROP_VAL

        public java.lang.String PORT_LOCAL_HOST_PROP_VAL
        Deprecated.
      • PORT_REMOTE_HOST_PROP_VAL

        public java.lang.String PORT_REMOTE_HOST_PROP_VAL
        Deprecated.
      • PORT_ROUTING_TABLE_PROP_VAL

        public java.lang.String[] PORT_ROUTING_TABLE_PROP_VAL
        Deprecated.
      • PORT_SOCKET_PROP_VAL

        public SocketType PORT_SOCKET_PROP_VAL
        Deprecated.
      • PORT_TYPE_PROP_VAL

        public ConnectionType PORT_TYPE_PROP_VAL
        Deprecated.
      • SECRET_PROP_VAL

        public java.lang.String SECRET_PROP_VAL
        Deprecated.
    • Constructor Detail

      • ComponentConnectionManager

        public ComponentConnectionManager()
        Deprecated.
    • Method Detail

      • getDefaults

        public java.util.Map<java.lang.String,​java.lang.Object> getDefaults​(java.util.Map<java.lang.String,​java.lang.Object> params)
        Deprecated.
        Description copied from interface: Configurable
        Returns default configuration settings for the component as a Map with keys as configuration property IDs and values as the configuration property values. All the default parameters returned from this method are later passed to the setProperties(...) method. Some of them may have changed value if they have been overwritten in the server configuration. The configuration property value can be of any of the basic types: int, long, boolean, String.
        Specified by:
        getDefaults in interface Configurable
        Overrides:
        getDefaults in class BasicComponent
        Parameters:
        params - is a Map with some initial properties set for the starting up server. These parameters can be used as a hints to generate component's default configuration.
        Returns:
        a Map with the component default configuration.
      • getDiscoFeatures

        public java.util.List<Element> getDiscoFeatures​(JID from)
        Deprecated.
        Description copied from class: BasicComponent
        Method returns list of features provided by this component for provided JID.
        Specified by:
        getDiscoFeatures in interface XMPPService
        Overrides:
        getDiscoFeatures in class BasicComponent
        Parameters:
        from - a request sender address. Some service disco elements are meant to be available only to system administrarors. The component is responsible to check whether the sender is the component administrator and return results appropriate.
        Returns:
        list of features
      • getDiscoInfo

        public Element getDiscoInfo​(java.lang.String node,
                                    JID jid,
                                    JID from)
        Deprecated.
        Description copied from interface: XMPPService
        Returns service discovery info for the component. If the jid is null then this is info for the top level request. SM may return disco info on the top level. Other components should not.
        Specified by:
        getDiscoInfo in interface XMPPService
        Overrides:
        getDiscoInfo in class BasicComponent
        Parameters:
        node - is service discovery node for which the request is made. Is normally null for the component top level request.
        jid - is the jid to which the request has been made.
        from - is the request sender address. Some service discovery information is only meant for administrators.
        Returns:
        returns an XML Element with service discovery data.
      • getDiscoItems

        public java.util.List<Element> getDiscoItems​(java.lang.String node,
                                                     JID jid,
                                                     JID from)
        Deprecated.
        Description copied from interface: XMPPService
        Returns service discovery items for the component. If the JID is null then this is request for the top level request. SM may return disco items on the top level, other components should just return it's top level service discovery item for null node.
        Specified by:
        getDiscoItems in interface XMPPService
        Overrides:
        getDiscoItems in class BasicComponent
        Parameters:
        node - is a service discovery node for which the request has been made.
        jid - is the jid to which the request has been made.
        from - is the request sender address. Some service discovery information is only meant for administrators.
        Returns:
        a list of service discovery items for this component or the component itself disco item for the top level request.
      • processPacket

        public void processPacket​(Packet packet)
        Deprecated.
        Description copied from class: AbstractMessageReceiver
        This is the main Packet processing method. It is called concurrently from many threads so implementing it in thread save manner is essential. The method is called for each packet addressed to the component.
        Please note, the Packet instance may be processed by different parts of the server, different components or plugins at the same time. Therefore this is very important to tread the Packet instance as unmodifiable object.
        Processing in this method is asynchronous, therefore there is no result value. If there are some 'result' packets generated during processing, they should be passed back using addOutPacket(Packet) method.
        Overrides:
        processPacket in class ConnectionManager<XMPPIOService<java.lang.Object>>
        Parameters:
        packet - is an instance of the Packet class passed for processing.
      • processUndeliveredPacket

        public boolean processUndeliveredPacket​(Packet packet,
                                                java.lang.Long stamp,
                                                java.lang.String errorMessage)
        Deprecated.
        Description copied from class: ConnectionManager
        Processes undelivered packets
        Specified by:
        processUndeliveredPacket in class ConnectionManager<XMPPIOService<java.lang.Object>>
        stamp - - timestamp when packet was received to be written to XMPPIOService
      • getMaxInactiveTime

        protected long getMaxInactiveTime()
        Deprecated.

        We should not really close external component connection at all, so let's say something like: 1000 days...
        Specified by:
        getMaxInactiveTime in class ConnectionManager<XMPPIOService<java.lang.Object>>