Package org.springframework.web.servlet.mvc.method.annotation

Examples of org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod$ConcurrentResultHandlerMethod


    this.methodResolver = new ExceptionHandlerMethodResolver(handler.getClass());
  }

  @Override
  protected ServletInvocableHandlerMethod getExceptionHandlerMethod(HandlerMethod handlerMethod, Exception exception) {
    ServletInvocableHandlerMethod result = super.getExceptionHandlerMethod(handlerMethod, exception);
    if (result != null) {
      return result;
    }
    Method method = this.methodResolver.resolveMethod(exception);
    return (method != null) ? new ServletInvocableHandlerMethod(this.handler, method) : null;
  }
View Full Code Here


    this.methodResolver = new ExceptionHandlerMethodResolver(handler.getClass());
  }

  @Override
  protected ServletInvocableHandlerMethod getExceptionHandlerMethod(HandlerMethod handlerMethod, Exception exception) {
    ServletInvocableHandlerMethod result = super.getExceptionHandlerMethod(handlerMethod, exception);
    if (result != null) {
      return result;
    }
    Method method = this.methodResolver.resolveMethod(exception);
    return (method != null) ? new ServletInvocableHandlerMethod(this.handler, method) : null;
  }
View Full Code Here

    WebDataBinderFactory binderFactory = createDataBinderFactory(bean, beanType);

    HandlerMethodArgumentResolverComposite argumentResolvers = new HandlerMethodArgumentResolverComposite();
    argumentResolvers.addResolvers(this.argumentResolvers);
    argumentResolvers.addResolver(new NavigationContextMethodArgumentResolver(context));
    ServletInvocableHandlerMethod invocable = createInvocableNavigationMethod(bean, navigationMethod.getMethod());
    invocable.setDataBinderFactory(binderFactory);
    invocable.setHandlerMethodArgumentResolvers(argumentResolvers);
    invocable.setParameterNameDiscoverer(this.parameterNameDiscoverer);
    invocable.setHandlerMethodReturnValueHandlers(this.returnValueHandlers);

    ExternalContext externalContext = facesContext.getExternalContext();
    ServletWebRequest request = new ServletWebRequest((HttpServletRequest) externalContext.getRequest(),
        (HttpServletResponse) externalContext.getResponse());
    ModelAndViewContainer modelAndViewContainer = new ModelAndViewContainer();
    invocable.invokeAndHandle(request, modelAndViewContainer);
    if (modelAndViewContainer.isRequestHandled()) {
      return null;
    }
    // NOTE: in this instance we are subverting the use of the model and view container, the view here actually
    // refers to the result of the method.
View Full Code Here

   * @param handler the handler
   * @param method the navigation mapping method to invoke
   * @return a new {@link ServletInvocableHandlerMethod} instance
   */
  protected ServletInvocableHandlerMethod createInvocableNavigationMethod(Object handler, Method method) {
    return new ServletInvocableHandlerMethod(handler, method);
  }
View Full Code Here

TOP

Related Classes of org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod$ConcurrentResultHandlerMethod

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.