Package com.netscape.cmscore.request
Class RequestRecord
- java.lang.Object
-
- com.netscape.cmscore.request.RequestRecord
-
- All Implemented Interfaces:
IAttrSet
,IDBObj
,IRequestRecord
,java.io.Serializable
public class RequestRecord extends java.lang.Object implements IRequestRecord, 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.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(IRequest r)
void
set(java.lang.String name, java.lang.Object o)
Sets new attribute for the request.protected void
storeExtDataIntoRequest(IRequest r)
-
-
-
Method Detail
-
getRequestId
public RequestId getRequestId()
Description copied from interface:IRequestRecord
Gets the request id.- Specified by:
getRequestId
in interfaceIRequestRecord
- Returns:
- request id
-
getAttrNames
public java.util.Enumeration<java.lang.String> getAttrNames()
Description copied from interface:IRequestRecord
Gets attribute names of the request.- Specified by:
getAttrNames
in interfaceIRequestRecord
- Returns:
- list of attribute names
-
get
public java.lang.Object get(java.lang.String name)
Description copied from interface:IRequestRecord
Gets the request attribute value by the name.- Specified by:
get
in interfaceIAttrSet
- Specified by:
get
in interfaceIRequestRecord
- Parameters:
name
- attribute name- Returns:
- attribute value
-
set
public void set(java.lang.String name, java.lang.Object o)
Description copied from interface:IRequestRecord
Sets new attribute for the request.- Specified by:
set
in interfaceIAttrSet
- Specified by:
set
in interfaceIRequestRecord
- Parameters:
name
- attribute nameo
- attribute value
-
delete
public void delete(java.lang.String name) throws EBaseException
Description copied from interface:IRequestRecord
Removes attribute from the request.- Specified by:
delete
in interfaceIAttrSet
- Specified by:
delete
in interfaceIRequestRecord
- Parameters:
name
- attribute name- Throws:
EBaseException
- on attribute handling errors.
-
getElements
public java.util.Enumeration<java.lang.String> getElements()
Description copied from interface:IRequestRecord
Gets attribute list of the request.- Specified by:
getElements
in interfaceIAttrSet
- Specified by:
getElements
in interfaceIRequestRecord
- Returns:
- attribute list
-
getSerializableAttrNames
public java.util.Enumeration<java.lang.String> getSerializableAttrNames()
Description copied from interface: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 interfaceIDBObj
- Returns:
- a list of serializable attribute names
-
loadExtDataFromRequest
protected static java.util.Hashtable<java.lang.String,java.lang.Object> loadExtDataFromRequest(IRequest r) throws EBaseException
- Throws:
EBaseException
-
storeExtDataIntoRequest
protected void storeExtDataIntoRequest(IRequest r) throws EBaseException
- Throws:
EBaseException
-
-