Package org.rribbit.processing
Class SpringHttpRequestProcessorServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.rribbit.processing.HttpRequestProcessorServlet
org.rribbit.processing.SpringHttpRequestProcessorServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
This implementation of
HttpRequestProcessorServlet
tries to retrieve a ListenerObjectRetriever
and a ListenerObjectExecutor
from the
Spring WebApplicationContext
, if one is available. Use this class if you use Spring in combination with RRiBbit HTTP remoting. Then, you only have to wire up a
ListenerObjectRetriever
and a ListenerObjectExecutor
in your ApplicationContext
and declare this class in your web.xml and the server side is done.- Author:
- G.J. Schouten
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected ListenerObjectExecutor
protected ListenerObjectRetriever
Fields inherited from class org.rribbit.processing.HttpRequestProcessorServlet
requestProcessor
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ListenerObjectExecutor
Creates or fetches and returns aListenerObjectExecutor
that will be used to executeListenerObject
s.protected ListenerObjectRetriever
Creates or fetches and returns aListenerObjectRetriever
that will be used to retrieveListenerObject
s.void
init()
When you override this, please make sure to call super.init().Methods inherited from class org.rribbit.processing.HttpRequestProcessorServlet
doPost
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, init, service, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log
-
Field Details
-
listenerObjectRetriever
-
listenerObjectExecutor
-
-
Constructor Details
-
SpringHttpRequestProcessorServlet
public SpringHttpRequestProcessorServlet()
-
-
Method Details
-
createListenerObjectRetriever
Description copied from class:HttpRequestProcessorServlet
Creates or fetches and returns aListenerObjectRetriever
that will be used to retrieveListenerObject
s.- Specified by:
createListenerObjectRetriever
in classHttpRequestProcessorServlet
- Returns:
- The
ListenerObjectRetriever
that will be used to retrieveListenerObject
s
-
createListenerObjectExecutor
Description copied from class:HttpRequestProcessorServlet
Creates or fetches and returns aListenerObjectExecutor
that will be used to executeListenerObject
s.- Specified by:
createListenerObjectExecutor
in classHttpRequestProcessorServlet
- Returns:
- The
ListenerObjectExecutor
that will be used to executeListenerObject
s
-
init
public void init()Description copied from class:HttpRequestProcessorServlet
When you override this, please make sure to call super.init().- Overrides:
init
in classHttpRequestProcessorServlet
-