Package org.springframework.web.util

Examples of org.springframework.web.util.UriComponentsBuilder.build()


      for (Object key : params.keySet()) {
        Object o = params.get(key);
        ucb.queryParam(key.toString(), encode(o.toString()));
      }
    }
    requestUri = ucb.build().toUri();

    return execute(HttpMethod.DELETE, null, follow, outputPath);
  }

  public String execute(final HttpMethod method,
View Full Code Here


    if (offset!=0) {
      builder.queryParam("offset", offset);
    }

    return builder.build().toUriString();
  }

  @RequestMapping(value = "/view-news.jsp", method = {RequestMethod.GET, RequestMethod.HEAD}, params = {"tag"})
  public View tagFeedOld(
          @RequestParam String tag
View Full Code Here

    if (filter!=null) {
      builder.queryParam("filter", filter);
    }

    return builder.build().toUriString();
  }

  public TopicLinkBuilder page(int page) {
    if (page!=this.page) {
      return new TopicLinkBuilder(topic, page, showDeleted, lastmod, comment, filter);
View Full Code Here

  public static String getAddUrl(Section section, String tag) {
    UriComponentsBuilder builder = UriComponentsBuilder.fromPath("/add-section.jsp");
    builder.queryParam("section", section.getId());
    builder.queryParam("tag", tag);

    return builder.build().toUriString();
  }

  public static String getAddUrl(Section section) {
    UriComponentsBuilder builder = UriComponentsBuilder.fromPath("/add-section.jsp");
    builder.queryParam("section", section.getId());
View Full Code Here

  public static String getAddUrl(Section section) {
    UriComponentsBuilder builder = UriComponentsBuilder.fromPath("/add-section.jsp");
    builder.queryParam("section", section.getId());

    return builder.build().toUriString();
  }
}
View Full Code Here

        request = new HttpEntity<String>( headers );

    }

    restRequest.execute(
        uri.build().toUriString(),
        httpMethod,
        request
    );
  }
View Full Code Here

    }

    HttpEntity<?> request = new HttpEntity<Object>( instance, headers );

    restRequest.execute(
        uri.build().toUriString(),
        httpMethod,
        request
    );
  }
View Full Code Here

      RestTemplate template = new RestTemplate();
      template.setErrorHandler( new LoggingResponseErrorHandler() );
      HttpEntity<String> request = new HttpEntity<String>( headers );

      String url = uri.build().toUriString();
      LOG.debug( "calling oauth2 token endpoint {}", url );

      ResponseEntity<Map> response = template.exchange( url, HttpMethod.GET, request, Map.class );
      body = response.getBody();
View Full Code Here

    UriComponentsBuilder builder = UriComponentsBuilder.fromHttpUrl(ADDRESS_URL);

    for (Map.Entry<String, String> entry : request.getParameters().entrySet())
      builder.queryParam(entry.getKey(), entry.getValue());

    URI uri = builder.build().toUri();

    return restTemplate.getForObject(uri, Response.class);
  }

  @Override
View Full Code Here

    UriComponentsBuilder builder = UriComponentsBuilder.fromHttpUrl(REVERSE_URL);

    for (Map.Entry<String, String> entry : request.getParameters().entrySet())
      builder.queryParam(entry.getKey(), entry.getValue());

    URI uri = builder.build().toUri();

    return restTemplate.getForObject(uri, Response.class);
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.