public class HttpRequestWrapper extends AbstractMessageWrapper implements HttpRequest
HttpRequest
wrapper.Constructor and Description |
---|
HttpRequestWrapper(HttpRequest message) |
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, containsHeader, countHeaders, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, getVersion, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setVersion, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addHeader, addHeader, getVersion, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setVersion
containsHeader, countHeaders, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator
public HttpRequestWrapper(HttpRequest message)
public String getMethod()
HttpRequest
getMethod
in interface HttpRequest
public String getPath()
HttpRequest
null
if not set.getPath
in interface HttpRequest
null
.public void setPath(String path)
HttpRequest
setPath
in interface HttpRequest
public String getScheme()
HttpRequest
getScheme
in interface HttpRequest
null
.public void setScheme(String scheme)
HttpRequest
setScheme
in interface HttpRequest
public URIAuthority getAuthority()
HttpRequest
getAuthority
in interface HttpRequest
null
.public void setAuthority(URIAuthority authority)
HttpRequest
setAuthority
in interface HttpRequest
public String getRequestUri()
HttpRequest
getRequestUri
in interface HttpRequest
public URI getUri() throws URISyntaxException
HttpRequest
getUri
in interface HttpRequest
URISyntaxException
public void setUri(URI requestUri)
HttpRequest
setUri
in interface HttpRequest
requestUri
- the request URI.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.