Class StandardProtocolHandler

    • Field Detail

      • logger

        static java.util.logging.Logger logger
      • wasUnbindRequest

        boolean wasUnbindRequest
      • wasBindReceiverRequest

        boolean wasBindReceiverRequest
      • wasInvalidBindState

        boolean wasInvalidBindState
      • failedAuthentication

        boolean failedAuthentication
      • response

        byte[] response
      • packetLen

        byte[] packetLen
      • message

        byte[] message
      • address_range_regexp

        java.util.regex.Pattern address_range_regexp
      • delay

        private long delay
      • delay_delta

        private long delay_delta
    • Constructor Detail

      • StandardProtocolHandler

        public StandardProtocolHandler()
    • Method Detail

      • getName

        public java.lang.String getName()
      • getBytesAsInt

        static final int getBytesAsInt​(byte i_byte)
      • processMessage

        void processMessage​(byte[] message)
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getBindTRNResponse

        void getBindTRNResponse​(byte[] message,
                                int len)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getBindRCVResponse

        void getBindRCVResponse​(byte[] message,
                                int len)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getBindTRNCVRResponse

        void getBindTRNCVRResponse​(byte[] message,
                                   int len)
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getSubmitSMResponse

        void getSubmitSMResponse​(byte[] message,
                                 int len)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • logPdu

        void logPdu​(java.lang.String label,
                    byte[] message,
                    Pdu pdu)
      • getSubmitMultiResponse

        void getSubmitMultiResponse​(byte[] message,
                                    int len)
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getUnbindResponse

        void getUnbindResponse​(byte[] message,
                               int len)
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getQueryResponse

        void getQueryResponse​(byte[] message,
                              int len)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getCancelSMResponse

        void getCancelSMResponse​(byte[] message,
                                 int len)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getReplaceSMResponse

        void getReplaceSMResponse​(byte[] message,
                                  int len)
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getEnquireResponse

        void getEnquireResponse​(byte[] message,
                                int len)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getDataSMResponse

        void getDataSMResponse​(byte[] message,
                               int len)
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getGenericNakResponse

        void getGenericNakResponse​(byte[] message,
                                   int len,
                                   boolean unrecognised)
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • setAddressRangeRegExp

        void setAddressRangeRegExp​(java.lang.String address_range)
      • processDeliver_SM_Resp

        void processDeliver_SM_Resp​(byte[] message,
                                    int len)
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • processData_SM_Resp

        void processData_SM_Resp​(byte[] message,
                                 int len)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • addressIsServicedByReceiver

        public boolean addressIsServicedByReceiver​(java.lang.String address)
      • getSession

        public Session getSession()
        Returns:
      • setSession

        public void setSession​(Session session)
        Parameters:
        session -
      • wasBindReceiverRequest

        public boolean wasBindReceiverRequest()
        Returns:
      • wasInvalidBindState

        public boolean wasInvalidBindState()
        Returns:
      • wasUnbindRequest

        public boolean wasUnbindRequest()
        Returns:
      • setWasBindReceiverRequest

        public void setWasBindReceiverRequest​(boolean b)
        Parameters:
        b -
      • setWasInvalidBindState

        public void setWasInvalidBindState​(boolean b)
        Parameters:
        b -
      • setWasUnbindRequest

        public void setWasUnbindRequest​(boolean b)
        Parameters:
        b -
      • failedAuthentication

        public boolean failedAuthentication()
        Returns:
      • setFailedAuthentication

        public void setFailedAuthentication​(boolean b)
        Parameters:
        b -