Package org.springframework.web.util

Examples of org.springframework.web.util.UriComponents.toUri()


    delegate.createCluster(request.getClusterId(), request.getClusterDef(), projectionData, extraProperties);

    HttpHeaders responseHeaders = new HttpHeaders();
    UriComponents uriComponents = MvcUriComponentsBuilder
          .fromMethodCall(on(YarnContainerClusterMvcEndpoint.class).clusterInfo(request.getClusterId())).build();
    responseHeaders.setLocation(uriComponents.toUri());

    return new ResponseEntity<Void>(responseHeaders, HttpStatus.CREATED);
  }

  /**
 
View Full Code Here


        }
    String query = uri.getQuery();
    if (legalSpaces) {
      query = query.replace("%20", "+");
    }
    return ServletUriComponentsBuilder.fromUri(uri.toUri()).replaceQuery(query).build().toString();
  }

  public void init(FilterConfig filterConfig) throws ServletException {
  }
View Full Code Here

  @Override
  public ListenableFuture<WebSocketSession> doHandshake(WebSocketHandler webSocketHandler,
      String uriTemplate, Object... uriVars) {

    UriComponents uriComponents = UriComponentsBuilder.fromUriString(uriTemplate).buildAndExpand(uriVars).encode();
    return doHandshake(webSocketHandler, null, uriComponents.toUri());
  }

  @Override
  public ListenableFuture<WebSocketSession> doHandshakeInternal(WebSocketHandler wsHandler,
      HttpHeaders headers, final URI uri, List<String> protocols,
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.