Package com.netscape.certsrv.request
Class RequestId
java.lang.Object
com.netscape.certsrv.request.RequestId
- All Implemented Interfaces:
JSONSerializer
,Serializable
The RequestId class represents the identifier for a particular
request within a request queue. This identifier may be used to
retrieve the request object itself from the request queue.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
FieldsFields inherited from interface com.netscape.certsrv.util.JSONSerializer
logger
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.netscape.certsrv.util.JSONSerializer
toJSON
-
Field Details
-
value
-
-
Constructor Details
-
RequestId
public RequestId() -
RequestId
Creates a new RequestId from its string representation.- Parameters:
id
- a string containing the decimal or hex value for the identifier.
-
RequestId
Creates a new RequestId from its BigInteger representation.- Parameters:
id
- a BigInteger containing the identifier.
-
RequestId
public RequestId(int id) Creates a new RequestId from its integer representation.- Parameters:
id
- an integer containing the identifier.
-
RequestId
public RequestId(long id)
-
-
Method Details
-
toBigInteger
Converts the RequestId into its BigInteger representation.- Returns:
- a BigInteger containing the identifier.
-
toString
Converts the RequestId into its string representation. The string form can be stored in a database (such as the LDAP directory) -
toHexString
Converts the RequestId into its hex string representation. The string form can be stored in a database (such as the LDAP directory)- Returns:
- a string containing the hex (base 16) value for the identifier.
-
hashCode
public int hashCode() -
equals
-