java.lang.Object
com.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serializedMimeType
public static final java.lang.String serializedMimeType
- The mime type used to send and recieve Java serialized objects.
- See Also:
- Constant Field Values
HttpSerialized
public HttpSerialized()
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.