Package org.springframework.web.portlet.handler

Examples of org.springframework.web.portlet.handler.PortletRequestMethodNotSupportedException


      String[] supportedMethods = new String[mappedMethods.length];
      for (int i = 0; i < mappedMethods.length; i++) {
        supportedMethods[i] = mappedMethods[i].name();
      }
      if (request instanceof ClientDataRequest) {
        throw new PortletRequestMethodNotSupportedException(((ClientDataRequest) request).getMethod(), supportedMethods);
      }
      else {
        throw new PortletRequestMethodNotSupportedException(supportedMethods);
      }
    }
    String[] mappedHeaders = mapping.headers();
    if (!PortletAnnotationMappingUtils.checkHeaders(mappedHeaders, request)) {
      throw new PortletRequestBindingException("Header conditions \"" +
View Full Code Here


            StringUtils.arrayToDelimitedString(this.headers, ", ") +
            "\" not met for actual request");
      }
      if (!this.methods.isEmpty()) {
        if (!(request instanceof ClientDataRequest)) {
          throw new PortletRequestMethodNotSupportedException(StringUtils.toStringArray(this.methods));
        }
        String method = ((ClientDataRequest) request).getMethod();
        if (!this.methods.contains(method)) {
          throw new PortletRequestMethodNotSupportedException(method, StringUtils.toStringArray(this.methods));
        }
      }
    }
View Full Code Here

            StringUtils.arrayToDelimitedString(this.headers, ", ") +
            "\" not met for actual request");
      }
      if (!this.methods.isEmpty()) {
        if (!(request instanceof ClientDataRequest)) {
          throw new PortletRequestMethodNotSupportedException(StringUtils.toStringArray(this.methods));
        }
        String method = ((ClientDataRequest) request).getMethod();
        if (!this.methods.contains(method)) {
          throw new PortletRequestMethodNotSupportedException(method, StringUtils.toStringArray(this.methods));
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.springframework.web.portlet.handler.PortletRequestMethodNotSupportedException

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.