Example usage for org.springframework.http.server RequestPath parse

List of usage examples for org.springframework.http.server RequestPath parse

Introduction

In this page you can find the example usage for org.springframework.http.server RequestPath parse.

Prototype

static RequestPath parse(URI uri, @Nullable String contextPath) 

Source Link

Document

Create a new RequestPath with the given parameters.

Usage

From source file:org.springframework.http.server.reactive.AbstractServerHttpRequest.java

/**
 * Constructor with the URI and headers for the request.
 * @param uri the URI for the request/*  ww  w  .  j a  va2  s  .com*/
 * @param contextPath the context path for the request
 * @param headers the headers for the request
 */
public AbstractServerHttpRequest(URI uri, @Nullable String contextPath, HttpHeaders headers) {
    this.uri = uri;
    this.path = RequestPath.parse(uri, contextPath);
    this.headers = HttpHeaders.readOnlyHttpHeaders(headers);
}