Package org.rribbit.dispatching
Interface RequestDispatcher
- All Known Implementing Classes:
HttpRequestDispatcher
,JmsRequestDispatcher
,LocalRequestDispatcher
,RmiRequestDispatcher
public interface RequestDispatcher
A
RequestDispatcher
takes care of dispatching Request
objects to a RequestProcessor
. This could involve transportation over a network or communication protocol.
Implementations are responsible for encoding the Request
object and decoding the Response
object.
A single RequestDispatcher
is always supposed to communicate with only a single RequestProcessor
, for simplicity and ease of possible network configurations.- Author:
- G.J. Schouten
-
Method Summary
-
Method Details
-
dispatchRequest
- Parameters:
request
- TheRequest
to be dispatched to aRequestProcessor
- Returns:
- The
Response
to be returned from theRequestProcessor
-