Package org.rribbit.processing
Interface RmiRequestProcessor
- All Superinterfaces:
Remote
- All Known Implementing Classes:
RmiRequestProcessorImpl
Interface required to create the
RmiRequestProcessorImpl
. Necessary, because Java RMI requires Remote interfaces that extend Remote
. Note that an
RmiRequestProcessor
is not actually an RequestProcessor
, because Java RMI does not allow non-remote methods in a remote interface. This is not a
problem though, since an RmiRequestProcessor
receives its requests via RMI and not via a Java interface.- Author:
- G.J. Schouten
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The RMI Key that implementations of this interface must use to communicate with theRmiRequestDispatcher
. -
Method Summary
-
Field Details
-
REGISTRY_KEY
The RMI Key that implementations of this interface must use to communicate with theRmiRequestDispatcher
.- See Also:
-
-
Method Details
-
processRequestViaRMI
Processes aRequest
and returns theResponse
. This method should just callRequestProcessor.processRequest(Request)
, but is necessary, because Java RMI requires you to declare aRemoteException
on remote methods.- Parameters:
request
- TheRequest
to process- Returns:
- The
Response
- Throws:
RemoteException
-