Sun SPOT API
Green Release  


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:
AddCommand, ProxyDriverRequestEnvelope, RemoveCommand

public abstract class RequestEnvelope
extends Envelope


Constructor Summary
RequestEnvelope()
           
 
Method Summary
abstract  ReplyEnvelope execute(Object context)
           
 Object getContents()
          Return the contents of the envelope.
 ReplyEnvelope sendOn(Channel channel)
          Send the request off to the other isolate, where it will get executed.
 
Methods inherited from class com.sun.squawk.io.mailboxes.Envelope
checkCallContext, getReplyAddress, getToAddress
 
Methods inherited from class java.lang.Object
equals, finalize, 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:
Throws:
Exception

sendOn

public ReplyEnvelope sendOn(Channel channel)
Send the request off to the other isolate, where it will get executed.

Parameters:
channel -
Returns:
the ReplyEnvelope representing the result of the remote execute.

Sun SPOT API
Green Release  


Copyright © 2006 Sun Microsystems, Inc. All Rights Reserved.