org.objectweb.proactive.core.body.http.util.messages
Class BodyRequest

java.lang.Object
  extended byorg.objectweb.proactive.core.body.http.util.HttpMessage
      extended byorg.objectweb.proactive.core.body.http.util.messages.ReflectRequest
          extended byorg.objectweb.proactive.core.body.http.util.messages.BodyRequest
All Implemented Interfaces:
java.io.Serializable

public class BodyRequest
extends ReflectRequest
implements java.io.Serializable

This class is used to encapsulate a request into an HTTP message

Author:
jbrocoll
See Also:
Serializable, Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.proactive.core.body.http.util.HttpMessage
returnedObject
 
Constructor Summary
BodyRequest(java.lang.String methodName, java.util.ArrayList parameters, UniqueID oaid, java.lang.String url)
          Construct a request to send to the Active object identified by the UniqueID
 
Method Summary
 java.lang.String getMethodName()
           
 java.lang.Object getReturnedObject()
           
 java.lang.Object processMessage()
          This method process the request.
 
Methods inherited from class org.objectweb.proactive.core.body.http.util.messages.ReflectRequest
getHashMapReflect, getProActiveRuntimeMethod
 
Methods inherited from class org.objectweb.proactive.core.body.http.util.HttpMessage
send
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BodyRequest

public BodyRequest(java.lang.String methodName,
                   java.util.ArrayList parameters,
                   UniqueID oaid,
                   java.lang.String url)
Construct a request to send to the Active object identified by the UniqueID

Parameters:
methodName - The method name contained in the request
parameters - The parameters associated with the method
oaid - The unique ID of targeted active object
Method Detail

getMethodName

public java.lang.String getMethodName()

getReturnedObject

public java.lang.Object getReturnedObject()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

processMessage

public java.lang.Object processMessage()
                                throws java.lang.Exception
This method process the request. Generally it is executed when the request is sent and unmarshalled.

Specified by:
processMessage in class HttpMessage
Returns:
a RuntimeReply containing the result of the method call
Throws:
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.Exception


Copyright 2001-2005 INRIA All Rights Reserved.