Package org.springframework.web.util

Examples of org.springframework.web.util.UrlPathHelper


     * @throws IOException when something goes terribly wrong
     */
    public void doFilterInternal(HttpServletRequest request, HttpServletResponse response,
                                 FilterChain chain) throws IOException, ServletException {

        UrlPathHelper urlPathHelper = new UrlPathHelper();
        String path = urlPathHelper.getPathWithinApplication(request);
        boolean pathExcluded = PatternMatchUtils.simpleMatch(excludes, path);
        boolean pathIncluded = PatternMatchUtils.simpleMatch(includes, path);

        if (pathIncluded && !pathExcluded) {
            if (logger.isDebugEnabled()) {
View Full Code Here


    private final UrlPathHelper urlPathHelper;

    public PathStripper(HttpServletRequest request, String path) {
      super(request);
      this.path = path;
      this.urlPathHelper = new UrlPathHelper();
    }
View Full Code Here

    @Override
    protected void doFilterInternal(HttpServletRequest request,
        HttpServletResponse response, FilterChain chain) throws ServletException,
        IOException {
      UrlPathHelper helper = new UrlPathHelper();
      String suffix = helper.getPathWithinApplication(request);
      StopWatch stopWatch = new StopWatch();
      stopWatch.start();
      try {
        chain.doFilter(request, response);
      }
View Full Code Here

            return;
        }

        WebServiceConnection connection = transportContext.getConnection();
        if (connection instanceof HttpServletConnection) {
            UrlPathHelper pathHelper = new UrlPathHelper();
            HttpServletConnection servletConnection = (HttpServletConnection) connection;
            message.setHeader(SoapMessageHeaders.HTTP_REQUEST_URI, pathHelper.getRequestUri(servletConnection.getHttpServletRequest()));
            message.setHeader(SoapMessageHeaders.HTTP_CONTEXT_PATH, pathHelper.getContextPath(servletConnection.getHttpServletRequest()));

            String queryParams = pathHelper.getOriginatingQueryString(servletConnection.getHttpServletRequest());
            message.setHeader(SoapMessageHeaders.HTTP_QUERY_PARAMS, queryParams != null ? queryParams : "");

            message.setHeader(SoapMessageHeaders.HTTP_REQUEST_METHOD, servletConnection.getHttpServletRequest().getMethod().toString());
        } else {
            log.warn("Unable to get complete set of http request headers");
View Full Code Here

  private String servletPathWithQueryString;

  public RequestMenuSelector( HttpServletRequest request ) {
    this.request = request;

    urlPathHelper = new UrlPathHelper();
  }
View Full Code Here

TOP

Related Classes of org.springframework.web.util.UrlPathHelper

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.