de.netseeker.ejoe.handler
Class MultiObjectHandler

java.lang.Object
  extended by de.netseeker.ejoe.handler.MultiObjectHandler
All Implemented Interfaces:
ServerHandler, java.io.Serializable

public abstract class MultiObjectHandler
extends java.lang.Object
implements ServerHandler

A simple base class for server handlers which have to deal with multiple input objects and return values

Since:
0.3.0
Author:
netseeker aka Michael Manske
See Also:
Serialized Form

Constructor Summary
MultiObjectHandler()
           
 
Method Summary
abstract  java.util.Map execute(java.util.Map objects)
           
 java.lang.Object handle(java.lang.Object obj)
          Simply casts the given input object into a map
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiObjectHandler

public MultiObjectHandler()
Method Detail

handle

public java.lang.Object handle(java.lang.Object obj)
Simply casts the given input object into a map

Specified by:
handle in interface ServerHandler
Parameters:
obj - The input object transported by EJOE
Returns:
null or an valid return value. If you want return custom datatypes, eg. your own beans and don't want (or are not able) to deploy the classes of these datatypes on the client you can turn on EJOEs remote classloading feature.
See Also:
ServerHandler.handle(java.lang.Object)

execute

public abstract java.util.Map execute(java.util.Map objects)


Copyright © 2005-2007 netseeker. All Rights Reserved.