Package org.ldaptive

Class AbstractOperationFactory<Q extends Request,​S extends Result>

    • Field Detail

      • logger

        protected final Logger logger
        Logger for this class.
      • resultHandlers

        private ResultHandler[] resultHandlers
        Functions to handle response results.
      • referralHandlers

        private ReferralHandler[] referralHandlers
        Functions to handle referrals.
      • intermediateResponseHandlers

        private IntermediateResponseHandler[] intermediateResponseHandlers
        Functions to handle intermediate responses.
      • exceptionHandler

        private ExceptionHandler exceptionHandler
        Function to handle exceptions.
      • throwCondition

        private ResultPredicate throwCondition
        Function to test results.
      • unsolicitedNotificationHandlers

        private UnsolicitedNotificationHandler[] unsolicitedNotificationHandlers
        Functions to handle unsolicited notifications.
    • Constructor Detail

      • AbstractOperationFactory

        public AbstractOperationFactory()
    • Method Detail

      • getRequestHandlers

        public RequestHandler<Q>[] getRequestHandlers()
        Returns the request handlers.
        Returns:
        request handlers
      • setRequestHandlers

        public void setRequestHandlers​(RequestHandler<Q>... handlers)
        Sets the request handlers.
        Parameters:
        handlers - request handler
      • getResultHandlers

        public ResultHandler[] getResultHandlers()
        Returns the search result handlers.
        Returns:
        search result handlers
      • setResultHandlers

        public void setResultHandlers​(ResultHandler... handlers)
        Sets the search result handlers.
        Parameters:
        handlers - search result handlers
      • getControlHandlers

        public ResponseControlHandler[] getControlHandlers()
        Returns the control handlers.
        Returns:
        control handlers
      • setControlHandlers

        public void setControlHandlers​(ResponseControlHandler... handlers)
        Sets the control handlers.
        Parameters:
        handlers - control handlers
      • getReferralHandlers

        public ReferralHandler[] getReferralHandlers()
        Returns the referral handlers.
        Returns:
        referral handlers
      • setReferralHandlers

        public void setReferralHandlers​(ReferralHandler... handlers)
        Sets the referral handlers.
        Parameters:
        handlers - referral handlers
      • getIntermediateResponseHandlers

        public IntermediateResponseHandler[] getIntermediateResponseHandlers()
        Returns the intermediate response handlers.
        Returns:
        intermediate response handlers
      • setIntermediateResponseHandlers

        public void setIntermediateResponseHandlers​(IntermediateResponseHandler... handlers)
        Sets the intermediate response handlers.
        Parameters:
        handlers - intermediate response handlers
      • getExceptionHandler

        public ExceptionHandler getExceptionHandler()
        Returns the search exception handler.
        Returns:
        search exception handler
      • setExceptionHandler

        public void setExceptionHandler​(ExceptionHandler handler)
        Sets the search exception handler.
        Parameters:
        handler - search exception handler
      • getThrowCondition

        public ResultPredicate getThrowCondition()
        Returns the throw condition.
        Returns:
        throw condition
      • setThrowCondition

        public void setThrowCondition​(ResultPredicate function)
        Sets the throw condition.
        Parameters:
        function - throw condition
      • getUnsolicitedNotificationHandlers

        public UnsolicitedNotificationHandler[] getUnsolicitedNotificationHandlers()
        Returns the unsolicited notification handlers.
        Returns:
        unsolicited notification handlers
      • setUnsolicitedNotificationHandlers

        public void setUnsolicitedNotificationHandlers​(UnsolicitedNotificationHandler... handlers)
        Sets the unsolicited notification handlers.
        Parameters:
        handlers - unsolicited notification handlers
      • initializeOperation

        protected void initializeOperation​(AbstractOperation<Q,​S> op)
        Initializes the supplied operation with the properties configured on this factory.
        Parameters:
        op - operation to initialize