at.spardat.xma.baserpc
Class ServerToClientData

java.lang.Object
  extended byat.spardat.xma.baserpc.RemoteData
      extended byat.spardat.xma.baserpc.ServerToClientData

public class ServerToClientData
extends RemoteData

Models the data transferred from server to client in a base rpc.


Constructor Summary
ServerToClientData()
           
 
Method Summary
protected  void externalize(XmaOutput o)
          Writes this to the provided ObjectOutput
 at.spardat.enterprise.exc.BaseException getException()
          Returns the exception that has been set at the server or null if none.
protected  void internalize(XmaInput in)
          Reads the stuff written by externalize
 void setException(at.spardat.enterprise.exc.BaseException x)
          Sets a throwable that is going to be transferred to the client.
 
Methods inherited from class at.spardat.xma.baserpc.RemoteData
getParameter, getParameterCount, getUnserializableCollection, setParameter, setUnserializableCollection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerToClientData

public ServerToClientData()
Method Detail

externalize

protected void externalize(XmaOutput o)
                    throws java.io.IOException
Writes this to the provided ObjectOutput

Overrides:
externalize in class RemoteData
Throws:
java.io.IOException

internalize

protected void internalize(XmaInput in)
                    throws java.io.IOException,
                           java.lang.ClassNotFoundException
Reads the stuff written by externalize

Overrides:
internalize in class RemoteData
Throws:
java.io.IOException
java.lang.ClassNotFoundException

setException

public void setException(at.spardat.enterprise.exc.BaseException x)
Sets a throwable that is going to be transferred to the client.

Parameters:
x - the Exception returned to the client. BaseExeption.prepareMigration and BaseException.truncateSubclasses must have been called on x.

getException

public at.spardat.enterprise.exc.BaseException getException()
Returns the exception that has been set at the server or null if none.