Package org.ldaptive

Class AbstractRequestMessage

    • Field Detail

      • logger

        protected final Logger logger
        Logger for this class.
      • responseTimeout

        private Duration responseTimeout
        Duration of time to wait for a response. This property is not part of the request specification.
    • Constructor Detail

      • AbstractRequestMessage

        public AbstractRequestMessage()
    • Method Detail

      • getResponseTimeout

        public Duration getResponseTimeout()
        Returns the response timeout.
        Returns:
        timeout
      • setResponseTimeout

        public void setResponseTimeout​(Duration time)
        Sets the maximum amount of time to wait for a response from this request.
        Parameters:
        time - timeout for a response
      • encode

        public byte[] encode​(int id)
        Description copied from interface: Request
        Encode this request as asn.1.
        Specified by:
        encode in interface Request
        Parameters:
        id - message id of this request
        Returns:
        asn.1 encoded request
      • getRequestEncoders

        protected abstract DEREncoder[] getRequestEncoders​(int id)
        Returns the request encoders for this message.
        Parameters:
        id - message ID
        Returns:
        request encoders
      • getControlEncoder

        private DEREncoder getControlEncoder()
        Returns the encoder to any controls that may be set on this message.
        Returns:
        control encoder