Class ObjectHandlerActionFactory

java.lang.Object
net.jrouter.impl.AbstractActionFactory<String>
net.jrouter.impl.PathActionFactory
net.jrouter.impl.PathActionFactory.ColonString
net.jrouter.http.servlet.ServletActionFactory.DefaultServletActionFactory
net.jrouter.http.servlet.ObjectHandlerActionFactory
All Implemented Interfaces:
net.jrouter.ActionFactory<String>, ServletActionFactory

public class ObjectHandlerActionFactory extends ServletActionFactory.DefaultServletActionFactory
提供非String类型的结果类型处理;

及可配置的类型Class - 结果类型ResultTypeProxy映射。

  • Nested Class Summary

    Nested classes/interfaces inherited from class net.jrouter.http.servlet.ServletActionFactory.DefaultServletActionFactory

    ServletActionFactory.DefaultServletActionFactory.Properties

    Nested classes/interfaces inherited from class net.jrouter.impl.PathActionFactory

    net.jrouter.impl.PathActionFactory.ColonString, net.jrouter.impl.PathActionFactory.StringPathGenerator

    Nested classes/interfaces inherited from class net.jrouter.impl.AbstractActionFactory

    net.jrouter.impl.AbstractActionFactory.DefaultActionFilter, net.jrouter.impl.AbstractActionFactory.DefaultObjectFactory

    Nested classes/interfaces inherited from interface net.jrouter.http.servlet.ServletActionFactory

    ServletActionFactory.DefaultServletActionFactory, ServletActionFactory.DefaultServletActionInvocation
  • Constructor Summary

    Constructors
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Object
    invokeResult(net.jrouter.ActionInvocation invocation, Object res)
     

    Methods inherited from class net.jrouter.http.servlet.ServletActionFactory.DefaultServletActionFactory

    createActionInvocation, invokeAction

    Methods inherited from class net.jrouter.impl.PathActionFactory.ColonString

    getDefaultStringResultType, invokeStringResult

    Methods inherited from class net.jrouter.impl.PathActionFactory

    addAction, addActions, addResultType, clear, clearActionCache, getActionCache, getActionCacheNumber, getActions, getDefaultInterceptorStack, getDefaultResultType, getExtension, getPathGenerator, getPathMatcher, getPathSeparator, invokeAction

    Methods inherited from class net.jrouter.impl.AbstractActionFactory

    addInterceptor, addInterceptors, addInterceptorStack, addInterceptorStacks, addResult, addResults, addResultTypes, getActionFilter, getConverterFactory, getInterceptors, getInterceptorStacks, getMethodChecker, getMethodInvokerFactory, getObjectFactory, getResults, getResultTypes, invokeAwareInterfaces

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.jrouter.ActionFactory

    clear, getActionFilter, getActions, getConverterFactory, getDefaultInterceptorStack, getDefaultResultType, getInterceptors, getInterceptorStacks, getMethodInvokerFactory, getObjectFactory, getPathGenerator, getResults, getResultTypes, invokeAction
  • Constructor Details

  • Method Details

    • invokeResult

      protected Object invokeResult(net.jrouter.ActionInvocation invocation, Object res)
      Overrides:
      invokeResult in class net.jrouter.impl.PathActionFactory.ColonString