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
FieldsModifier and TypeFieldDescriptionstatic final StringThe 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 aRequestand returns theResponse. This method should just callRequestProcessor.processRequest(Request), but is necessary, because Java RMI requires you to declare aRemoteExceptionon remote methods.- Parameters:
request- TheRequestto process- Returns:
- The
Response - Throws:
RemoteException
-