Class RequestInQListener

  • All Implemented Interfaces:
    com.netscape.certsrv.request.IRequestListener

    public class RequestInQListener
    extends java.lang.Object
    implements com.netscape.certsrv.request.IRequestListener
    a listener for every request gets into the request queue.

    Here is a list of available $TOKENs for email notification templates:

    • $RequestorEmail
    • $CertType
    • $RequestType
    • $RequestId
    • $HttpHost
    • $HttpPort
    • $SenderEmail
    • $RecipientEmail
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(com.netscape.certsrv.request.IRequest r)
      carries out the operation when the listener is triggered.
      void init​(ISubsystem sub, IConfigStore config)
      initializes the listener from the configuration
      void set​(java.lang.String name, java.lang.String val)
      sets the configurable parameters
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
      • PROP_SENDER_EMAIL

        protected static final java.lang.String PROP_SENDER_EMAIL
        See Also:
        Constant Field Values
      • PROP_RECVR_EMAIL

        protected static final java.lang.String PROP_RECVR_EMAIL
        See Also:
        Constant Field Values
      • PROP_EMAIL_TEMPLATE

        public static final java.lang.String PROP_EMAIL_TEMPLATE
        See Also:
        Constant Field Values
      • PROP_EMAIL_SUBJECT

        protected static final java.lang.String PROP_EMAIL_SUBJECT
        See Also:
        Constant Field Values
      • PROP_NOTIFY_SUBSTORE

        protected static final java.lang.String PROP_NOTIFY_SUBSTORE
        See Also:
        Constant Field Values
      • PROP_REQ_IN_Q_SUBSTORE

        protected static final java.lang.String PROP_REQ_IN_Q_SUBSTORE
        See Also:
        Constant Field Values
    • Constructor Detail

      • RequestInQListener

        public RequestInQListener()
        Constructor
    • Method Detail

      • init

        public void init​(ISubsystem sub,
                         IConfigStore config)
                  throws com.netscape.certsrv.listeners.EListenersException,
                         EPropertyNotFound,
                         EBaseException
        initializes the listener from the configuration
        Specified by:
        init in interface com.netscape.certsrv.request.IRequestListener
        Parameters:
        sub - subsystem
        config - configuration store
        Throws:
        com.netscape.certsrv.listeners.EListenersException
        EPropertyNotFound
        EBaseException
      • accept

        public void accept​(com.netscape.certsrv.request.IRequest r)
        carries out the operation when the listener is triggered.
        Specified by:
        accept in interface com.netscape.certsrv.request.IRequestListener
        Parameters:
        r - IRequest structure holding the request information
        See Also:
        IRequest
      • set

        public void set​(java.lang.String name,
                        java.lang.String val)
        sets the configurable parameters
        Specified by:
        set in interface com.netscape.certsrv.request.IRequestListener
        Parameters:
        name - a String represents the name of the configuration parameter to be set
        val - a String containing the value to be set for name