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
FieldsModifier and TypeFieldDescriptionprotected ListenerObjectExecutorprotected ListenerObjectRetrieverFields inherited from class org.rribbit.processing.HttpRequestProcessorServlet
requestProcessorFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ListenerObjectExecutorCreates or fetches and returns aListenerObjectExecutorthat will be used to executeListenerObjects.protected ListenerObjectRetrieverCreates or fetches and returns aListenerObjectRetrieverthat will be used to retrieveListenerObjects.voidinit()When you override this, please make sure to call super.init().Methods inherited from class org.rribbit.processing.HttpRequestProcessorServlet
doPostMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPatch, doPut, doTrace, getLastModified, init, isSensitiveHeader, service, serviceMethods 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:HttpRequestProcessorServletCreates or fetches and returns aListenerObjectRetrieverthat will be used to retrieveListenerObjects.- Specified by:
createListenerObjectRetrieverin classHttpRequestProcessorServlet- Returns:
- The
ListenerObjectRetrieverthat will be used to retrieveListenerObjects
-
createListenerObjectExecutor
Description copied from class:HttpRequestProcessorServletCreates or fetches and returns aListenerObjectExecutorthat will be used to executeListenerObjects.- Specified by:
createListenerObjectExecutorin classHttpRequestProcessorServlet- Returns:
- The
ListenerObjectExecutorthat will be used to executeListenerObjects
-
init
public void init()Description copied from class:HttpRequestProcessorServletWhen you override this, please make sure to call super.init().- Overrides:
initin classHttpRequestProcessorServlet
-