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.Loggerloggerprotected static java.util.Vector<java.lang.String>mAttrsprotected 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 voiddelete(java.lang.String name)Removes attribute from the request.java.lang.Objectget(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.RequestIdgetRequestId()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)voidset(java.lang.String name, java.lang.Object o)Sets new attribute for the request.protected voidstoreExtDataIntoRequest(IRequest r)
-
-
-
Method Detail
-
getRequestId
public RequestId getRequestId()
Description copied from interface:IRequestRecordGets the request id.- Specified by:
getRequestIdin interfaceIRequestRecord- Returns:
- request id
-
getAttrNames
public java.util.Enumeration<java.lang.String> getAttrNames()
Description copied from interface:IRequestRecordGets attribute names of the request.- Specified by:
getAttrNamesin interfaceIRequestRecord- Returns:
- list of attribute names
-
get
public java.lang.Object get(java.lang.String name)
Description copied from interface:IRequestRecordGets the request attribute value by the name.- Specified by:
getin interfaceIAttrSet- Specified by:
getin interfaceIRequestRecord- Parameters:
name- attribute name- Returns:
- attribute value
-
set
public void set(java.lang.String name, java.lang.Object o)Description copied from interface:IRequestRecordSets new attribute for the request.- Specified by:
setin interfaceIAttrSet- Specified by:
setin interfaceIRequestRecord- Parameters:
name- attribute nameo- attribute value
-
delete
public void delete(java.lang.String name) throws EBaseExceptionDescription copied from interface:IRequestRecordRemoves attribute from the request.- Specified by:
deletein interfaceIAttrSet- Specified by:
deletein interfaceIRequestRecord- Parameters:
name- attribute name- Throws:
EBaseException- on attribute handling errors.
-
getElements
public java.util.Enumeration<java.lang.String> getElements()
Description copied from interface:IRequestRecordGets attribute list of the request.- Specified by:
getElementsin interfaceIAttrSet- Specified by:
getElementsin interfaceIRequestRecord- Returns:
- attribute list
-
getSerializableAttrNames
public java.util.Enumeration<java.lang.String> getSerializableAttrNames()
Description copied from interface:IDBObjReturns 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:
getSerializableAttrNamesin 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
-
-