com.hyper9.vangaea.server
Class MessageWrapper

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.hyper9.vangaea.server.MessageWrapper
All Implemented Interfaces:
java.io.Serializable

public class MessageWrapper
extends java.lang.Exception

A class for wrapping message beans in a throwable.

Author:
akutz
See Also:
Serialized Form

Constructor Summary
MessageWrapper()
          Default constructor for serialization.
MessageWrapper(MessageBean messageBean)
          Initializes a new instance of the MessageWrapper class.
MessageWrapper(java.lang.String message)
          Initializes a new instance of the MessageWrapper class.
 
Method Summary
 MessageBean getMessageBean()
          Gets this wrapper's underlying message bean.
 void setMessageBean(MessageBean toSet)
          Sets this wrapper's underlying message bean.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageWrapper

public MessageWrapper()
Default constructor for serialization.


MessageWrapper

public MessageWrapper(java.lang.String message)
Initializes a new instance of the MessageWrapper class.

Parameters:
message - The message to wrap.

MessageWrapper

public MessageWrapper(MessageBean messageBean)
Initializes a new instance of the MessageWrapper class.

Parameters:
messageBean -
Method Detail

getMessageBean

public MessageBean getMessageBean()
Gets this wrapper's underlying message bean.

Returns:
This wrapper's underlying message bean.

setMessageBean

public void setMessageBean(MessageBean toSet)
Sets this wrapper's underlying message bean.

Parameters:
toSet - This wrapper's underlying message bean.


Copyright © 2009 Hyper9. All Rights Reserved.