Class RequestRecord

  • All Implemented Interfaces:
    IAttrSet, com.netscape.certsrv.dbs.IDBObj, com.netscape.certsrv.request.IRequestRecord, java.io.Serializable

    public class RequestRecord
    extends java.lang.Object
    implements com.netscape.certsrv.request.IRequestRecord, com.netscape.certsrv.dbs.IDBObj
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger logger  
      protected static java.util.Vector<java.lang.String> mAttrs  
      protected static java.lang.String[] mOC  
      • Fields inherited from interface com.netscape.certsrv.request.IRequestRecord

        ATTR_CREATE_TIME, ATTR_EXT_DATA, ATTR_MODIFY_TIME, ATTR_REALM, ATTR_REQUEST_ID, ATTR_REQUEST_OWNER, ATTR_REQUEST_STATE, ATTR_REQUEST_TYPE, ATTR_SOURCE_ID
    • Constructor Summary

      Constructors 
      Constructor Description
      RequestRecord()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(java.lang.String name)
      Removes attribute from the request.
      java.lang.Object get​(java.lang.String name)
      Gets the request attribute value by the name.
      java.util.Enumeration<java.lang.String> getAttrNames()
      Gets attribute names of the request.
      java.util.Enumeration<java.lang.String> getElements()
      Gets attribute list of the request.
      com.netscape.certsrv.request.RequestId getRequestId()
      Gets the request id.
      java.util.Enumeration<java.lang.String> getSerializableAttrNames()
      Returns a list of serializable attribute names.
      protected static java.util.Hashtable<java.lang.String,​java.lang.Object> loadExtDataFromRequest​(com.netscape.certsrv.request.IRequest r)  
      void set​(java.lang.String name, java.lang.Object o)
      Sets new attribute for the request.
      protected void storeExtDataIntoRequest​(com.netscape.certsrv.request.IRequest r)  
      • 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
      • mOC

        protected static final java.lang.String[] mOC
      • mAttrs

        protected static java.util.Vector<java.lang.String> mAttrs
    • Constructor Detail

      • RequestRecord

        public RequestRecord()
    • Method Detail

      • getRequestId

        public com.netscape.certsrv.request.RequestId getRequestId()
        Description copied from interface: com.netscape.certsrv.request.IRequestRecord
        Gets the request id.
        Specified by:
        getRequestId in interface com.netscape.certsrv.request.IRequestRecord
        Returns:
        request id
      • getAttrNames

        public java.util.Enumeration<java.lang.String> getAttrNames()
        Description copied from interface: com.netscape.certsrv.request.IRequestRecord
        Gets attribute names of the request.
        Specified by:
        getAttrNames in interface com.netscape.certsrv.request.IRequestRecord
        Returns:
        list of attribute names
      • get

        public java.lang.Object get​(java.lang.String name)
        Description copied from interface: com.netscape.certsrv.request.IRequestRecord
        Gets the request attribute value by the name.
        Specified by:
        get in interface IAttrSet
        Specified by:
        get in interface com.netscape.certsrv.request.IRequestRecord
        Parameters:
        name - attribute name
        Returns:
        attribute value
      • set

        public void set​(java.lang.String name,
                        java.lang.Object o)
        Description copied from interface: com.netscape.certsrv.request.IRequestRecord
        Sets new attribute for the request.
        Specified by:
        set in interface IAttrSet
        Specified by:
        set in interface com.netscape.certsrv.request.IRequestRecord
        Parameters:
        name - attribute name
        o - attribute value
      • delete

        public void delete​(java.lang.String name)
                    throws EBaseException
        Description copied from interface: com.netscape.certsrv.request.IRequestRecord
        Removes attribute from the request.
        Specified by:
        delete in interface IAttrSet
        Specified by:
        delete in interface com.netscape.certsrv.request.IRequestRecord
        Parameters:
        name - attribute name
        Throws:
        EBaseException - on attribute handling errors.
      • getElements

        public java.util.Enumeration<java.lang.String> getElements()
        Description copied from interface: com.netscape.certsrv.request.IRequestRecord
        Gets attribute list of the request.
        Specified by:
        getElements in interface IAttrSet
        Specified by:
        getElements in interface com.netscape.certsrv.request.IRequestRecord
        Returns:
        attribute list
      • getSerializableAttrNames

        public java.util.Enumeration<java.lang.String> getSerializableAttrNames()
        Description copied from interface: com.netscape.certsrv.dbs.IDBObj
        Returns a list of serializable attribute names. This method should return the attribute name even if there is no attribute value for the attribute.
        Specified by:
        getSerializableAttrNames in interface com.netscape.certsrv.dbs.IDBObj
        Returns:
        a list of serializable attribute names
      • loadExtDataFromRequest

        protected static java.util.Hashtable<java.lang.String,​java.lang.Object> loadExtDataFromRequest​(com.netscape.certsrv.request.IRequest r)
                                                                                                      throws EBaseException
        Throws:
        EBaseException
      • storeExtDataIntoRequest

        protected void storeExtDataIntoRequest​(com.netscape.certsrv.request.IRequest r)
                                        throws EBaseException
        Throws:
        EBaseException