public interface HttpRequest extends HttpMessage
Modifier and Type | Method and Description |
---|---|
URIAuthority |
getAuthority()
Returns authority of this request message.
|
String |
getMethod()
Returns method of this request message.
|
String |
getPath()
Returns URI path of this request message or
null if not set. |
String |
getRequestUri()
Returns request URI of this request message.
|
String |
getScheme()
Returns scheme of this request message.
|
URI |
getUri()
Returns full request URI of this request message.
|
void |
setAuthority(URIAuthority authority)
Sets authority of this request message.
|
void |
setPath(String path)
Sets URI path of this request message.
|
void |
setScheme(String scheme)
Sets scheme of this request message.
|
void |
setUri(URI requestUri)
Sets the full request URI of this request message.
|
addHeader, addHeader, getVersion, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setVersion
containsHeader, countHeaders, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator
URIAuthority getAuthority()
null
.String getMethod()
String getPath()
null
if not set.null
.String getRequestUri()
String getScheme()
null
.URI getUri() throws URISyntaxException
URISyntaxException
void setAuthority(URIAuthority authority)
void setPath(String path)
void setScheme(String scheme)
void setUri(URI requestUri)
requestUri
- the request URI.