de.netseeker.ejoe.handler
Class MultiObjectHandler

java.lang.Object
  extended byde.netseeker.ejoe.handler.MultiObjectHandler
All Implemented Interfaces:
ServerHandler

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

Author:
netseeker aka Michael Manske

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-2006 netseeker. All Rights Reserved.