Package net.jrouter.http.netty
Interface HttpServerActionFactory
- All Superinterfaces:
net.jrouter.ActionFactory<String>
- All Known Implementing Classes:
HttpServerActionFactory.DefaultHttpActionFactory
HttpServerActionFactory invoke Action with Http parameters.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class提供ServletActionFactory接口默认实现。static class扩展ActionInvocation,提供获取Http参数对象,并提供给参数转换器。 -
Method Summary
Modifier and TypeMethodDescription<T> TinvokeAction(String path, io.netty.handler.codec.http.FullHttpRequest request, io.netty.handler.codec.http.FullHttpResponse response, io.netty.channel.ChannelHandlerContext context) Use this instead ofActionFactory.invokeAction(Object, Object...)to pass Http parameters.Methods inherited from interface net.jrouter.ActionFactory
clear, getActionFilter, getActions, getConverterFactory, getDefaultInterceptorStack, getDefaultResultType, getInterceptors, getInterceptorStacks, getMethodInvokerFactory, getObjectFactory, getPathGenerator, getResults, getResultTypes, invokeAction
-
Method Details
-
invokeAction
<T> T invokeAction(String path, io.netty.handler.codec.http.FullHttpRequest request, io.netty.handler.codec.http.FullHttpResponse response, io.netty.channel.ChannelHandlerContext context) throws net.jrouter.JRouterException Use this instead ofActionFactory.invokeAction(Object, Object...)to pass Http parameters.- Type Parameters:
T- Generic type.- Parameters:
path- Action path.request- FullHttpRequest.response- FullHttpResponse.context- ChannelHandlerContext.- Returns:
- Action invoked result.
- Throws:
net.jrouter.JRouterException- if error occurs.- See Also:
-
ActionFactory.invokeAction(Object, Object...)
-