org.objectweb.proactive.core.component.controller
Class AbstractRequestHandler
java.lang.Object
org.objectweb.proactive.core.component.controller.AbstractRequestHandler
- All Implemented Interfaces:
- RequestHandler, java.io.Serializable
- Direct Known Subclasses:
- AbstractProActiveController
- public abstract class AbstractRequestHandler
- extends java.lang.Object
- implements RequestHandler, java.io.Serializable
This class is able to handle requests, and checks if the current request can be
handled by the current handler in the chain of handlers (here, it is actually
a list of controllers). If this is the case, then the request is executed by
this handler. Otherwise, the request is transferred to the next handler in
the chain.
- Author:
- Matthieu Morel
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractRequestHandler
public AbstractRequestHandler()
nextHandler
public RequestHandler nextHandler()
- Specified by:
nextHandler
in interface RequestHandler
- Returns:
- the next handler in the chain, or null
setNextHandler
public void setNextHandler(RequestHandler handler)
- Description copied from interface:
RequestHandler
- Sets the next handler in the chain of handlers.
- Specified by:
setNextHandler
in interface RequestHandler
- Parameters:
handler
- the next handler in the chain of handlers.
handleRequest
public java.lang.Object handleRequest(ComponentRequest request)
throws MethodCallExecutionFailedException,
java.lang.reflect.InvocationTargetException
- Description copied from interface:
RequestHandler
- If the current controller is suitable, the request is executed. If not executed,
it is passed to the next handler.
- Specified by:
handleRequest
in interface RequestHandler
- Parameters:
request
- the request to process
- Returns:
- the result of the request
- Throws:
java.lang.reflect.InvocationTargetException
- if the execution of a request failed (java reflection level)
MethodCallExecutionFailedException
- if the execution of a request failed (ProActive level)
getFcItfName
public abstract java.lang.String getFcItfName()
Copyright 2001-2005 INRIA All Rights Reserved.