SunSPOT API V5.0


com.sun.spot.interisolate
Class RequestEnvelope

java.lang.Object
  extended by com.sun.squawk.io.mailboxes.Envelope
      extended by 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.

Constructor Summary
RequestEnvelope()
           
 
Method Summary
abstract  ReplyEnvelope execute(Object context)
           
 Object getContents()
          Return the contents of the envelope.
 int getUid()
           
 
Methods inherited from class com.sun.squawk.io.mailboxes.Envelope
checkCallContext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestEnvelope

public RequestEnvelope()
Method Detail

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()

SunSPOT API V5.0


Copyright � 2006-2008 Sun Microsystems, Inc. All Rights Reserved.