Package org.apache.juneau.http
Interface HttpRequestLine
- All Known Implementing Classes:
HttpRequestLineBean
public interface HttpRequestLine
The first line of an HTTP request message, containing the method, request URI, and protocol version.
Mirrors the semantics of org.apache.http.RequestLine without the Apache HttpCore dependency.
The default immutable implementation is HttpRequestLineBean.
See Also:
- Since:
- 10.0.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the request method (e.g.Returns the HTTP protocol version (e.g.getUri()Returns the request URI (e.g.
-
Method Details
-
getMethod
Returns the request method (e.g."GET","POST").- Returns:
- The method name. Never
null .
-
getUri
Returns the request URI (e.g."/users/123?verbose=true").- Returns:
- The URI. Never
null .
-
getProtocolVersion
Returns the HTTP protocol version (e.g.HttpProtocolVersion.HTTP_1_1).- Returns:
- The protocol version. Never
null .
-