org.strutsme.client
Class ServerResultWrapper

java.lang.Object
  extended by org.strutsme.client.ServerResultWrapper

public final class ServerResultWrapper
extends java.lang.Object

Wrapper class to get easy access to the result or response of a StrutsME-Server.

Author:
lbusmann

Constructor Summary
ServerResultWrapper(SafeHashtable serverResult)
          Constructor.
 
Method Summary
 SafeHashtable getServerErrors()
          Returns the server errors if there are any.
 java.lang.String getServerException()
          Returns the exception of the server execution if there was one.
 java.lang.String getServerLastAction()
          Returns the last executed action.
 SafeHashtable getServerMessages()
          Returns the server messages if there are any.
 SafeHashtable getServerResult()
          Returns the data for the last server form.
 java.lang.String getServerSessionId()
          Returns the session id if there is any.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerResultWrapper

public ServerResultWrapper(SafeHashtable serverResult)
Constructor.

Parameters:
serverResult - the response of a StrutsME-Server
Method Detail

getServerMessages

public SafeHashtable getServerMessages()
Returns the server messages if there are any.

Returns:
the server messages or null

getServerErrors

public SafeHashtable getServerErrors()
Returns the server errors if there are any.

Returns:
the server errors or null

getServerSessionId

public java.lang.String getServerSessionId()
Returns the session id if there is any.

Returns:
the current SessionId or null

getServerException

public java.lang.String getServerException()
Returns the exception of the server execution if there was one.

Returns:
the exception as a string or null.

getServerResult

public SafeHashtable getServerResult()
Returns the data for the last server form.

Returns:
the last form data or null

getServerLastAction

public java.lang.String getServerLastAction()
Returns the last executed action.

Returns:
the last action or null