weborb.dispatch
Interface IDispatcher

All Known Implementing Classes:
EvalControlDispatcher, Invoker, V3Dispatcher

public interface IDispatcher

IDispatcher

IDispatcher represents an object responsible for handling an request. WebORB maintains a chain of dispatchers where every request is delegated to via the dispatch() method. Request is considered processed as soon as a dispatcher from the chain returns true from the dispatch() method.

Author:
Midnight Coders, LLC

Method Summary
 boolean dispatch(Message message)
          Process request.
 java.lang.String getName()
           
 

Method Detail

dispatch

boolean dispatch(Message message)
Process request. If request cannot be processed by this dispatcher, return false, otherwise process and return true. Responses should be set on the Message object

Parameters:
message - object encapsulating the request. If the request can be handled by the dispatcher, use the same Message object to set the responses
Returns:
true if the request is processed, false otherwise
Throws:
ServiceException

getName

java.lang.String getName()
Returns:
Name of the dispatcher for logging and debugging purposes


Discuss WebORB

Copyright 2003-2008 Midnight Coders, Inc. All Rights Reserved.