Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.lutris.appserver.server.httpPresentation
Class HttpSerialized  view HttpSerialized download HttpSerialized.java

java.lang.Object
  extended bycom.lutris.appserver.server.httpPresentation.HttpSerialized

public class HttpSerialized
extends java.lang.Object

This class provides two utility methods for presentation objects that want to read and/or write Java serialized objects.

Reading is accomplished by having the client issue a POST request, with the serialized data as the body of the request.

Writing is accomplished by simply sending out the serialized bytes.


Field Summary
static java.lang.String serializedMimeType
          The mime type used to send and recieve Java serialized objects.
 
Constructor Summary
HttpSerialized()
           
 
Method Summary
static java.lang.Object readSerializedObject(HttpPresentationComms comms)
          Read in a Java object from a POST request.
static java.lang.Object readSerializedObject(HttpPresentationRequest request)
          Read in a Java object from a POST request.
static void writeSerializedObject(HttpPresentationComms comms, java.io.Serializable object)
          Return a serialized Java object to the client.
static void writeSerializedObject(HttpPresentationResponse response, java.io.Serializable object)
          Return a serialized Java object to the client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serializedMimeType

public static final java.lang.String serializedMimeType
The mime type used to send and recieve Java serialized objects.

See Also:
Constant Field Values
Constructor Detail

HttpSerialized

public HttpSerialized()
Method Detail

readSerializedObject

public static java.lang.Object readSerializedObject(HttpPresentationRequest request)
                                             throws HttpPresentationException
Read in a Java object from a POST request. The object is returned.


readSerializedObject

public static java.lang.Object readSerializedObject(HttpPresentationComms comms)
                                             throws HttpPresentationException
Read in a Java object from a POST request. The object is returned.


writeSerializedObject

public static void writeSerializedObject(HttpPresentationResponse response,
                                         java.io.Serializable object)
                                  throws HttpPresentationException
Return a serialized Java object to the client.


writeSerializedObject

public static void writeSerializedObject(HttpPresentationComms comms,
                                         java.io.Serializable object)
                                  throws HttpPresentationException
Return a serialized Java object to the client.