|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openswing.swing.util.server.ObjectReceiver
org.openswing.swing.util.server.HessianObjectReceiver
Title: OpenSwing Framework
Description: Base class used to comunicate with the the client-side layer, via HTTP. it provides two utility methods: one to receive a service request through an ObjectInputStream and the other to send a serialized object as response to that service request. IO streams are wrapped through Hessian library.
Copyright: Copyright (C) 2006 Mauro Carniel
This file is part of OpenSwing Framework. This library is free software; you can redistribute it and/or modify it under the terms of the (LGPL) Lesser General Public License as published by the Free Software Foundation; GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. The author may be contacted at: maurocarniel@tin.it
Constructor Summary | |
HessianObjectReceiver()
|
Method Summary | |
Command |
getObjectFromRequest(javax.servlet.http.HttpServletRequest request)
Receive a serialized object, through the provided HTTP request. |
void |
setObjectToResponse(javax.servlet.http.HttpServletResponse response,
java.lang.Object objectToSend)
Send a serialized object as response to a service request, through the provided HTTP response. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HessianObjectReceiver()
Method Detail |
public final Command getObjectFromRequest(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
getObjectFromRequest
in class ObjectReceiver
request
- HTTP request that containes the serialized object
java.lang.Exception
public final void setObjectToResponse(javax.servlet.http.HttpServletResponse response, java.lang.Object objectToSend) throws java.lang.Exception
setObjectToResponse
in class ObjectReceiver
response
- HTTP response used to send the response objectobjectToSend
- serialized object to send as response to the service request
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |