ostore.client
Class OSMetadataRequest
java.lang.Object
|
+--ostore.client.OSRequest
|
+--ostore.client.OSMetadataRequest
- All Implemented Interfaces:
- QueueElementIF, QuickSerializable
- public class OSMetadataRequest
- extends OSRequest
The OSMetadataRequest
object is a request for
reading object metadata.
- Version:
- $Id: OSMetadataRequest.java,v 1.12 2002/07/20 19:38:01 srhea Exp $
- Author:
- Patrick R. Eaton
OSMetadataRequest
public OSMetadataRequest(OSAppId app_id,
SecureHash target,
OSVersionPredicate ver_pred)
- Creates a new
OSMetadataRequest
request.
- Parameters:
app_id
- the OSAppId
to identify the requesting
applicationtarget
- the aguid of the object from which to readver_pred
- the version predicate to specify version constraints
OSMetadataRequest
public OSMetadataRequest(OSAppId app_id,
SecureHash principal,
QSPrivateKey principal_skey,
SecureHash target,
OSVersionPredicate ver_pred)
- Creates a new
OSMetadataRequest
request.
- Parameters:
app_id
- the OSAppId
to identify the requesting
applicationprincipal
- the secure hash of the principal's public keyprincipal_skey
- the principal's private keytarget
- the aguid of the object from which to readver_pred
- the version predicate to specify version constraints
OSMetadataRequest
public OSMetadataRequest(InputBuffer buffer)
throws QSException
serialize
public void serialize(OutputBuffer buffer)
- Description copied from interface:
QuickSerializable
- Add the object to the
buffer
.
- Specified by:
serialize
in interface QuickSerializable
- Overrides:
serialize
in class OSRequest
- Parameters:
buffer
- the output buffer to add the object to
getPrincipal
public SecureHash getPrincipal()
- Return the hash of the principal that created the read request.
- Returns:
- the hash of the principal that created the read request.
getTarget
public SecureHash getTarget()
getVersionPredicate
public OSVersionPredicate getVersionPredicate()
toString
public String toString()
- Overrides:
toString
in class Object