Examples of replaceQuery()


Examples of javax.ws.rs.core.UriBuilder.replaceQuery()

       
        String newQuery = newBaseURI.getRawQuery();
        if (newQuery == null) {
            builder.replaceQuery(requestURI.getRawQuery());
        } else {
            builder.replaceQuery(newQuery);
        }
       
        URI newRequestURI = builder.build();
       
        resetBaseAddress(newBaseURI);
View Full Code Here

Examples of javax.ws.rs.core.UriBuilder.replaceQuery()

        String reqURIPath = requestURI.getRawPath();
       
        UriBuilder builder = UriBuilder.fromUri(newBaseURI);
        String basePath = reqURIPath.startsWith(baseURIPath) ? baseURIPath : getBaseURI().getRawPath();
        builder.path(reqURIPath.equals(basePath) ? "" : reqURIPath.substring(basePath.length()));
        URI newRequestURI = builder.replaceQuery(requestURI.getRawQuery()).build();
       
        resetBaseAddress(newBaseURI);
        URI current = proxy ? newBaseURI : newRequestURI;
        resetCurrentBuilder(current);
       
View Full Code Here

Examples of javax.ws.rs.core.UriBuilder.replaceQuery()

        String reqURIPath = requestURI.getRawPath();
       
        UriBuilder builder = UriBuilder.fromUri(newBaseURI);
        String basePath = reqURIPath.startsWith(baseURIPath) ? baseURIPath : getBaseURI().getRawPath();
        builder.path(reqURIPath.equals(basePath) ? "" : reqURIPath.substring(basePath.length()));
        URI newRequestURI = builder.replaceQuery(requestURI.getRawQuery()).build();
       
        resetBaseAddress(newBaseURI);
        URI current = proxy ? newBaseURI : newRequestURI;
        resetCurrentBuilder(current);
       
View Full Code Here

Examples of javax.ws.rs.core.UriBuilder.replaceQuery()

        String reqURIPath = requestURI.getRawPath();
       
        UriBuilder builder = UriBuilder.fromUri(newBaseURI);
        String basePath = reqURIPath.startsWith(baseURIPath) ? baseURIPath : getBaseURI().getRawPath();
        builder.path(reqURIPath.equals(basePath) ? "" : reqURIPath.substring(basePath.length()));
        URI newRequestURI = builder.replaceQuery(requestURI.getRawQuery()).build();
       
        resetBaseAddress(newBaseURI);
        URI current = proxy ? newBaseURI : newRequestURI;
        resetCurrentBuilder(current);
       
View Full Code Here

Examples of javax.ws.rs.core.UriBuilder.replaceQuery()

        String reqURIPath = requestURI.getRawPath();
       
        UriBuilder builder = new UriBuilderImpl().uri(newBaseURI);
        String basePath = reqURIPath.startsWith(baseURIPath) ? baseURIPath : getBaseURI().getRawPath();
        builder.path(reqURIPath.equals(basePath) ? "" : reqURIPath.substring(basePath.length()));
        URI newRequestURI = builder.replaceQuery(requestURI.getRawQuery()).build();
       
        resetBaseAddress(newBaseURI);
        URI current = proxy ? newBaseURI : newRequestURI;
        resetCurrentBuilder(current);
       
View Full Code Here

Examples of org.apache.cxf.jaxrs.client.WebClient.replaceQuery()

  /** {@inheritDoc} */
  @Override
  public TransportResult doGet(URI uri) {
    WebClient webClient = instantiateWebClient(uri);
    webClient = webClient.replaceQuery(uri.getQuery());

    log.debug("GET " + webClient.getCurrentURI());

    Response cxfResponse = webClient.get();

View Full Code Here

Examples of org.apache.cxf.jaxrs.client.WebClient.replaceQuery()

  /** {@inheritDoc} */
  @Override
  public TransportResult doPost(URI uri, String payload) {
    WebClient webClient = instantiateWebClient(uri);
    webClient = webClient.replaceQuery(uri.getQuery());

    log.debug("POST " + webClient.getCurrentURI() + " application/json: " + payload);

    Response cxfResponse = webClient.post(payload);

View Full Code Here

Examples of org.apache.cxf.jaxrs.client.WebClient.replaceQuery()

  /** {@inheritDoc} */
  @Override
  public TransportResult doPut(URI uri, String payload) {
    WebClient webClient = instantiateWebClient(uri);
    webClient = webClient.replaceQuery(uri.getQuery());

    log.debug("PUT " + webClient.getCurrentURI() + " application/json: " + payload);

    Response cxfResponse = webClient.put(payload);

View Full Code Here

Examples of org.apache.cxf.jaxrs.client.WebClient.replaceQuery()

  /** {@inheritDoc} */
  @Override
  public TransportResult doDelete(URI uri) {
    WebClient webClient = instantiateWebClient(uri);
    webClient = webClient.replaceQuery(uri.getQuery());

    log.debug("DELETE " + webClient.getCurrentURI());

    Response cxfResponse = webClient.delete();

View Full Code Here

Examples of org.cruxframework.crux.core.server.rest.core.UriBuilder.replaceQuery()

      UriBuilder builder = new UriBuilder();
      builder.scheme(absolute.getProtocol());
      builder.host(absolute.getHost());
      builder.port(absolute.getPort());
      builder.path(absolute.getPath());
      builder.replaceQuery(null);
      absolutePath = builder.build();
    }
    catch (MalformedURLException e)
    {
      throw new RuntimeException(e);
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.