Interface HttpServerActionFactory

All Superinterfaces:
net.jrouter.ActionFactory<String>
All Known Implementing Classes:
HttpServerActionFactory.DefaultHttpActionFactory

public interface HttpServerActionFactory extends net.jrouter.ActionFactory<String>
HttpServerActionFactory invoke Action with Http parameters.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    提供ServletActionFactory接口默认实现。
    static class 
    扩展ActionInvocation,提供获取Http参数对象,并提供给参数转换器。
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    invokeAction(String path, io.netty.handler.codec.http.FullHttpRequest request, io.netty.handler.codec.http.FullHttpResponse response, io.netty.channel.ChannelHandlerContext context)
    Use this instead of ActionFactory.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 of ActionFactory.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...)