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
String getMethod()
String getPath()
null
if not set.null
.void setPath(String path)
String getScheme()
null
.void setScheme(String scheme)
URIAuthority getAuthority()
null
.void setAuthority(URIAuthority authority)
String getRequestUri()
URI getUri() throws URISyntaxException
URISyntaxException
void setUri(URI requestUri)
requestUri
- the request URI.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.