Java Code Examples for org.springframework.http.server.RequestPath#parse()
The following examples show how to use
org.springframework.http.server.RequestPath#parse() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MockServerRequest.java From spring-analysis-note with MIT License | 6 votes |
private MockServerRequest(HttpMethod method, URI uri, String contextPath, MockHeaders headers, MultiValueMap<String, HttpCookie> cookies, @Nullable Object body, Map<String, Object> attributes, MultiValueMap<String, String> queryParams, Map<String, String> pathVariables, @Nullable WebSession session, @Nullable Principal principal, @Nullable InetSocketAddress remoteAddress, List<HttpMessageReader<?>> messageReaders, @Nullable ServerWebExchange exchange) { this.method = method; this.uri = uri; this.pathContainer = RequestPath.parse(uri, contextPath); this.headers = headers; this.cookies = cookies; this.body = body; this.attributes = attributes; this.queryParams = queryParams; this.pathVariables = pathVariables; this.session = session; this.principal = principal; this.remoteAddress = remoteAddress; this.messageReaders = messageReaders; this.exchange = exchange; }
Example 2
Source File: MockServerRequest.java From spring-analysis-note with MIT License | 6 votes |
private MockServerRequest(HttpMethod method, URI uri, String contextPath, MockHeaders headers, MultiValueMap<String, HttpCookie> cookies, @Nullable Object body, Map<String, Object> attributes, MultiValueMap<String, String> queryParams, Map<String, String> pathVariables, @Nullable WebSession session, @Nullable Principal principal, @Nullable InetSocketAddress remoteAddress, List<HttpMessageReader<?>> messageReaders, @Nullable ServerWebExchange exchange) { this.method = method; this.uri = uri; this.pathContainer = RequestPath.parse(uri, contextPath); this.headers = headers; this.cookies = cookies; this.body = body; this.attributes = attributes; this.queryParams = queryParams; this.pathVariables = pathVariables; this.session = session; this.principal = principal; this.remoteAddress = remoteAddress; this.messageReaders = messageReaders; this.exchange = exchange; }
Example 3
Source File: MockServerRequest.java From java-technology-stack with MIT License | 6 votes |
private MockServerRequest(HttpMethod method, URI uri, String contextPath, MockHeaders headers, MultiValueMap<String, HttpCookie> cookies, @Nullable Object body, Map<String, Object> attributes, MultiValueMap<String, String> queryParams, Map<String, String> pathVariables, @Nullable WebSession session, @Nullable Principal principal, @Nullable InetSocketAddress remoteAddress, List<HttpMessageReader<?>> messageReaders, @Nullable ServerWebExchange exchange) { this.method = method; this.uri = uri; this.pathContainer = RequestPath.parse(uri, contextPath); this.headers = headers; this.cookies = cookies; this.body = body; this.attributes = attributes; this.queryParams = queryParams; this.pathVariables = pathVariables; this.session = session; this.principal = principal; this.remoteAddress = remoteAddress; this.messageReaders = messageReaders; this.exchange = exchange; }
Example 4
Source File: MockServerRequest.java From java-technology-stack with MIT License | 6 votes |
private MockServerRequest(HttpMethod method, URI uri, String contextPath, MockHeaders headers, MultiValueMap<String, HttpCookie> cookies, @Nullable Object body, Map<String, Object> attributes, MultiValueMap<String, String> queryParams, Map<String, String> pathVariables, @Nullable WebSession session, @Nullable Principal principal, @Nullable InetSocketAddress remoteAddress, List<HttpMessageReader<?>> messageReaders, @Nullable ServerWebExchange exchange) { this.method = method; this.uri = uri; this.pathContainer = RequestPath.parse(uri, contextPath); this.headers = headers; this.cookies = cookies; this.body = body; this.attributes = attributes; this.queryParams = queryParams; this.pathVariables = pathVariables; this.session = session; this.principal = principal; this.remoteAddress = remoteAddress; this.messageReaders = messageReaders; this.exchange = exchange; }
Example 5
Source File: DefaultServerRequestBuilder.java From spring-analysis-note with MIT License | 5 votes |
public BuiltServerHttpRequest(String id, String method, URI uri, HttpHeaders headers, MultiValueMap<String, HttpCookie> cookies, Flux<DataBuffer> body) { this.id = id; this.method = method; this.uri = uri; this.path = RequestPath.parse(uri, null); this.headers = HttpHeaders.readOnlyHttpHeaders(headers); this.cookies = unmodifiableCopy(cookies); this.queryParams = parseQueryParams(uri); this.body = body; }
Example 6
Source File: DefaultServerRequestBuilder.java From java-technology-stack with MIT License | 5 votes |
public BuiltServerHttpRequest(String id, String method, URI uri, HttpHeaders headers, MultiValueMap<String, HttpCookie> cookies, Flux<DataBuffer> body) { this.id = id; this.method = method; this.uri = uri; this.path = RequestPath.parse(uri, null); this.headers = HttpHeaders.readOnlyHttpHeaders(headers); this.cookies = unmodifiableCopy(cookies); this.queryParams = parseQueryParams(uri); this.body = body; }
Example 7
Source File: AbstractServerHttpRequest.java From spring-analysis-note with MIT License | 2 votes |
/** * Constructor with the URI and headers for the request. * @param uri the URI for the request * @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); }
Example 8
Source File: AbstractServerHttpRequest.java From java-technology-stack with MIT License | 2 votes |
/** * Constructor with the URI and headers for the request. * @param uri the URI for the request * @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); }