Top Description Methods
org.springframework.http

public Interface HttpRequest

extends HttpMessage
Known Direct Subinterfaces
org.springframework.http.client.ClientHttpRequest, org.springframework.http.server.ServerHttpRequest, org.springframework.http.server.reactive.ServerHttpRequest
Known Direct Implementers
org.springframework.http.client.support.HttpRequestWrapper
Imports
java.net.URI

Represents an HTTP request message, consisting of a method and a URI.
Author
Arjen Poutsma
Since
3.1

Method Summary

Modifier and TypeMethod and Description
public HttpMethod

Returns:

the HTTP method as an HttpMethod value
getMethod
()

Return the HTTP method of the request.

public URI

Returns:

the URI of the request (never null)
getURI
()

Return the URI of the request (including a query string if any, but only if it is well-formed for a URI representation).

Inherited from org.springframework.http.HttpMessage:
getHeaders

Method Detail

getMethodback to summary
public HttpMethod getMethod()

Return the HTTP method of the request.

Returns:HttpMethod

the HTTP method as an HttpMethod value

See Also
HttpMethod#valueOf(String)
getURIback to summary
public URI getURI()

Return the URI of the request (including a query string if any, but only if it is well-formed for a URI representation).

Returns:URI

the URI of the request (never null)