org.openswing.swing.message.receive.java
Class Response

java.lang.Object
  extended byorg.openswing.swing.message.receive.java.Response
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BytesResponse, ErrorResponse, TableModelResponse, TableResponse, TextResponse, UserAuthorizationsResponse, VOListResponse, VOResponse

public abstract class Response
extends java.lang.Object
implements java.io.Serializable

Title: OpenSwing Framework

Description: Base message returned by the server side: all other messages derive from this one.

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

See Also:
Serialized Form

Constructor Summary
Response()
           
 
Method Summary
abstract  java.lang.String getErrorMessage()
           
 java.lang.String getSessionId()
           
abstract  boolean isError()
           
 void setSessionId(java.lang.String sessionId)
          Set the session id associated to the current client.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Response

public Response()
Method Detail

isError

public abstract boolean isError()
Returns:
true if an error occours, false otherwise

getErrorMessage

public abstract java.lang.String getErrorMessage()
Returns:
error message

getSessionId

public final java.lang.String getSessionId()
Returns:
session id associated to the current client

setSessionId

public final void setSessionId(java.lang.String sessionId)
Set the session id associated to the current client.

Parameters:
sessionId - session id associated to the current client