com.sun.spot.interisolate
Class RequestEnvelope
java.lang.Object
com.sun.squawk.io.mailboxes.Envelope
com.sun.spot.interisolate.RequestEnvelope
- Direct Known Subclasses:
- AdjustLockCommand, LockCommand, PIOCommand, RegisterCommand, UnlockAllCommand, UnlockCommand, WaitForAllAcksCommand
public abstract class RequestEnvelope
- extends Envelope
- See Also:
for details
The abstract superclass for all RPC request envelopes.
RequestEnvelope
public RequestEnvelope()
getContents
public Object getContents()
- Description copied from class:
Envelope
- Return the contents of the envelope. This should only be called by the receiver of the
envelope. All implementations should call checkCallContext.
- Specified by:
getContents
in class Envelope
- Returns:
- the contents of the envelope
execute
public abstract ReplyEnvelope execute(Object context)
throws Exception
- Parameters:
context
- An arbitrary object that the request needs to execute itself
- Returns:
- a subclass of ReplyEnvelope representing the return value of the execution
- Throws:
Exception
getUid
public int getUid()
Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.