Module stincmale.server
Class SimpleSpringHttpRequestDispatcherByUrl
java.lang.Object
stincmale.server.reqres.RequestDispatcherByProcessorName<RQ,RS>
stincmale.server.reqres.spring.SpringRequestDispatcher<RequestWithMetadata<? extends FullHttpRequest>,FullHttpResponse>
stincmale.server.reqres.spring.http.SimpleSpringHttpRequestDispatcherByUrl
- All Implemented Interfaces:
RequestDispatcher<RequestWithMetadata<? extends FullHttpRequest>,FullHttpResponse>
,RequestProcessor<RequestWithMetadata<? extends FullHttpRequest>,FullHttpResponse>
@ThreadSafe public class SimpleSpringHttpRequestDispatcherByUrl extends SpringRequestDispatcher<RequestWithMetadata<? extends FullHttpRequest>,FullHttpResponse>
This
RequestDispatcher
combines functionality of the SpringRequestDispatcher
and
SimpleHttpRequestDispatcherByUrl
.-
Constructor Summary
Constructors Constructor Description SimpleSpringHttpRequestDispatcherByUrl(ApplicationContext appCtx, Collection<String> packageNames, boolean searchRecursively, com.timgroup.statsd.StatsDClient statsDClient, String contextPath)
-
Method Summary
Modifier and Type Method Description protected String
getProcessorName(RequestWithMetadata<? extends FullHttpRequest> request)
This method must return name of aRequestProcessor
which can be found among available processors.Methods inherited from class stincmale.server.reqres.RequestDispatcherByProcessorName
getProcessors, process
-
Constructor Details
-
SimpleSpringHttpRequestDispatcherByUrl
public SimpleSpringHttpRequestDispatcherByUrl(ApplicationContext appCtx, @Nullable Collection<String> packageNames, boolean searchRecursively, @Nullable com.timgroup.statsd.StatsDClient statsDClient, String contextPath)- Parameters:
appCtx
- SeeSpringRequestDispatcher(ApplicationContext, Collection, boolean, StatsDClient)
.packageNames
- SeeSpringRequestDispatcher(ApplicationContext, Collection, boolean, StatsDClient)
.searchRecursively
- SeeSpringRequestDispatcher(ApplicationContext, Collection, boolean, StatsDClient)
.contextPath
- SeeSimpleHttpRequestDispatcherByUrl(java.util.Map, java.lang.String)
.statsDClient
- SeeSimpleHttpRequestDispatcherByUrl(java.util.Map, java.lang.String)
.
-
-
Method Details
-
getProcessorName
Description copied from class:RequestDispatcherByProcessorName
This method must return name of aRequestProcessor
which can be found among available processors.- Specified by:
getProcessorName
in classRequestDispatcherByProcessorName<RequestWithMetadata<? extends FullHttpRequest>,FullHttpResponse>
-