Package org.springframework.web.portlet.context

Examples of org.springframework.web.portlet.context.PortletWebRequest


  @SuppressWarnings("unchecked")
  private ModelAndView invokeHandlerMethod(
      PortletRequest request, PortletResponse response, Object handler, ExtendedModelMap implicitModel)
      throws Exception {

    PortletWebRequest webRequest = new PortletWebRequest(request, response);
    PortletHandlerMethodResolver methodResolver = getMethodResolver(handler);
    Method handlerMethod = methodResolver.resolveHandlerMethod(request);
    PortletHandlerMethodInvoker methodInvoker = new PortletHandlerMethodInvoker(methodResolver);

    Object result = methodInvoker.invokeHandlerMethod(handlerMethod, handler, webRequest, implicitModel);
View Full Code Here


      PortletRequest request, MimeResponse response, Object handler, Exception ex) {

    if (handler != null) {
      Method handlerMethod = findBestExceptionHandlerMethod(handler, ex);
      if (handlerMethod != null) {
        NativeWebRequest webRequest = new PortletWebRequest(request, response);
        try {
          Object[] args = resolveHandlerArguments(handlerMethod, handler, webRequest, ex);
          if (logger.isDebugEnabled()) {
            logger.debug("Invoking request handler method: " + handlerMethod);
          }
View Full Code Here

      RenderResponse response) throws Exception {
   
    final Map<String,Object> model = new HashMap<String,Object>();
   
    final PortletPreferences preferences = request.getPreferences();
        final PortletWebRequest webRequest = new PortletWebRequest(request);
   
    // retrieve configuration information about the image from the portlet
    // preferences
    model.put("uri", getPreference("img-uri", webRequest, preferences));
    model.put("width", getPreference("img-width", webRequest, preferences));
View Full Code Here

     * @param request PortletRequest
     * @return SpEL evaluation context for the supplied portlet request
     */
    protected EvaluationContext getEvaluationContext(PortletRequest request) {
        Map<String, String> userInfo = (Map<String, String>) request.getAttribute(PortletRequest.USER_INFO);
        final SpELEnvironmentRoot root = new SpELEnvironmentRoot(new PortletWebRequest(request), userInfo);
        final StandardEvaluationContext context = new StandardEvaluationContext(root);
        // Allows for @myBeanName replacements
        context.setBeanResolver(this.beanResolver);
        return context;
    }
View Full Code Here

   * @see org.springframework.validation.DataBinder#registerCustomEditor
   * @see org.springframework.beans.propertyeditors.CustomDateEditor
   */
  protected void initBinder(PortletRequest request, PortletRequestDataBinder binder) throws Exception {
    if (this.webBindingInitializer != null) {
      this.webBindingInitializer.initBinder(binder, new PortletWebRequest(request));
    }
  }
View Full Code Here

  private ModelAndView invokeHandlerMethod(
      PortletRequest request, PortletResponse response, Object handler, ExtendedModelMap implicitModel)
      throws Exception {

    PortletWebRequest webRequest = new PortletWebRequest(request, response);
    PortletHandlerMethodResolver methodResolver = getMethodResolver(handler);
    Method handlerMethod = methodResolver.resolveHandlerMethod(request, response);
    PortletHandlerMethodInvoker methodInvoker = new PortletHandlerMethodInvoker(methodResolver);

    Object result = methodInvoker.invokeHandlerMethod(handlerMethod, handler, webRequest, implicitModel);
View Full Code Here

TOP

Related Classes of org.springframework.web.portlet.context.PortletWebRequest

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.