|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.ext.webservices.utils.ProActiveXMLUtils
ProActive HTTP Utilities class
Field Summary | |
static java.lang.String |
ACTION_EXCEPTION
|
static java.lang.String |
MESSAGE
|
static java.lang.String |
NO_SUCH_OBJECT
|
static java.lang.String |
OK
|
static java.lang.String |
PROACTIVE_ACTION
|
static java.lang.String |
PROACTIVE_MESSAGE
|
static java.lang.String |
PROACTIVE_OAID
|
static java.lang.String |
PROACTIVE_OBJECT
|
static java.lang.String |
RUNTIME_REPLY
|
static java.lang.String |
RUNTIME_REQUEST
|
static java.lang.String |
SERVICE_REQUEST_CONTENT_TYPE
|
static java.lang.String |
SERVICE_REQUEST_URI
|
Constructor Summary | |
ProActiveXMLUtils()
|
Method Summary | |
static java.lang.Object |
deserializeObject(byte[] buffer)
Unmarshall an object from a byte array |
static Body |
getBody(UniqueID id)
Search a Body matching with a given unique ID |
static byte[] |
getMessage(java.lang.Object obj)
|
static java.lang.Object |
sendMessage(java.lang.String url,
int port,
java.lang.Object obj,
java.lang.String action)
Sends a message to the given url This message contains a serialized object. |
static byte[] |
serializeObject(java.lang.Object o)
Serialize an object into a byte array |
static java.lang.Object |
unwrapp(byte[] msg,
java.lang.String action)
Unmarshalles a message and performs an action according to the action field |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String MESSAGE
public static final java.lang.String RUNTIME_REQUEST
public static final java.lang.String RUNTIME_REPLY
public static final java.lang.String PROACTIVE_MESSAGE
public static final java.lang.String PROACTIVE_ACTION
public static final java.lang.String PROACTIVE_OBJECT
public static final java.lang.String PROACTIVE_OAID
public static final java.lang.String OK
public static final java.lang.String NO_SUCH_OBJECT
public static final java.lang.String ACTION_EXCEPTION
public static final java.lang.String SERVICE_REQUEST_URI
public static final java.lang.String SERVICE_REQUEST_CONTENT_TYPE
Constructor Detail |
public ProActiveXMLUtils()
Method Detail |
public static byte[] serializeObject(java.lang.Object o)
o
- The object you want to serializepublic static java.lang.Object deserializeObject(byte[] buffer)
buffer
- The byte array containing the serialized objectpublic static byte[] getMessage(java.lang.Object obj)
public static java.lang.Object sendMessage(java.lang.String url, int port, java.lang.Object obj, java.lang.String action) throws java.lang.Exception, HTTPRemoteException
url
- The targeted urlport
- The destination portobj
- The objet contained in the messageaction
- What to do with this object ?
java.lang.Exception
HTTPRemoteException
public static java.lang.Object unwrapp(byte[] msg, java.lang.String action) throws java.lang.Exception
msg
- The message contained in a byte arrayaction
- The action to perform with this message
java.lang.Exception
public static Body getBody(UniqueID id)
id
- The unique id of the body we are searching for
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |