Top Description Constructors Methods
org.apache.hc.core5.http.message

public Class HttpRequestWrapper

extends AbstractMessageWrapper<HttpRequest>
implements HttpRequest
Class Inheritance
All Implemented Interfaces
org.apache.hc.core5.http.HttpRequest, org.apache.hc.core5.http.HttpMessage, org.apache.hc.core5.http.MessageHeaders
Imports
java.net.URI, .URISyntaxException, org.apache.hc.core5.http.HttpRequest, org.apache.hc.core5.net.URIAuthority

Wraps an HttpRequest. HttpRequest wrapper.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public URIAuthority
getAuthority()

Implements org.apache.hc.core5.http.HttpRequest.getAuthority.

Returns authority of this request message.
public String
getMethod()

Implements org.apache.hc.core5.http.HttpRequest.getMethod.

Returns method of this request message.
public String
getPath()

Implements org.apache.hc.core5.http.HttpRequest.getPath.

Returns URI path of this request message or null if not set.
public String
getRequestUri()

Implements org.apache.hc.core5.http.HttpRequest.getRequestUri.

Returns request URI of this request message.
public String
getScheme()

Implements org.apache.hc.core5.http.HttpRequest.getScheme.

Returns scheme of this request message.
public URI
getUri()

Implements org.apache.hc.core5.http.HttpRequest.getUri.

Returns full request URI of this request message.
public void
setAuthority(final URIAuthority authority)

Implements org.apache.hc.core5.http.HttpRequest.setAuthority.

Sets authority of this request message.
public void
setPath(final String path)

Implements org.apache.hc.core5.http.HttpRequest.setPath.

Sets URI path of this request message.
public void
setScheme(final String scheme)

Implements org.apache.hc.core5.http.HttpRequest.setScheme.

Sets scheme of this request message.
public void
setUri(final URI
the request URI.
requestUri
)

Implements org.apache.hc.core5.http.HttpRequest.setUri.

Sets the full request URI of this request message.
Inherited from org.apache.hc.core5.http.message.AbstractMessageWrapper:
addHeaderaddHeadercontainsHeadercountHeadersgetFirstHeadergetHeadergetHeadersgetHeadersgetLastHeadergetMessagegetVersionheaderIteratorheaderIteratorremoveHeaderremoveHeaderssetHeadersetHeadersetHeaderssetVersiontoString

Constructor Detail

HttpRequestWrapperback to summary
public HttpRequestWrapper(final HttpRequest message)

Method Detail

getAuthorityback to summary
public URIAuthority getAuthority()

Implements org.apache.hc.core5.http.HttpRequest.getAuthority.

Doc from org.apache.hc.core5.http.HttpRequest.getAuthority.

Returns authority of this request message.

Returns:URIAuthority

the authority or null.

Annotations
@Override
getMethodback to summary
public String getMethod()

Implements org.apache.hc.core5.http.HttpRequest.getMethod.

Doc from org.apache.hc.core5.http.HttpRequest.getMethod.

Returns method of this request message.

Returns:String

the request method.

Annotations
@Override
getPathback to summary
public String getPath()

Implements org.apache.hc.core5.http.HttpRequest.getPath.

Doc from org.apache.hc.core5.http.HttpRequest.getPath.

Returns URI path of this request message or null if not set.

Returns:String

the request URI or null.

Annotations
@Override
getRequestUriback to summary
public String getRequestUri()

Implements org.apache.hc.core5.http.HttpRequest.getRequestUri.

Doc from org.apache.hc.core5.http.HttpRequest.getRequestUri.

Returns request URI of this request message. It may be an absolute or relative URI. Applicable to HTTP/1.1 version or earlier.

Returns:String

the request URI.

Annotations
@Override
getSchemeback to summary
public String getScheme()

Implements org.apache.hc.core5.http.HttpRequest.getScheme.

Doc from org.apache.hc.core5.http.HttpRequest.getScheme.

Returns scheme of this request message.

Returns:String

the scheme or null.

Annotations
@Override
getUriback to summary
public URI getUri() throws URISyntaxException

Implements org.apache.hc.core5.http.HttpRequest.getUri.

Doc from org.apache.hc.core5.http.HttpRequest.getUri.

Returns full request URI of this request message.

Returns:URI

the request URI.

Annotations
@Override
setAuthorityback to summary
public void setAuthority(final URIAuthority authority)

Implements org.apache.hc.core5.http.HttpRequest.setAuthority.

Doc from org.apache.hc.core5.http.HttpRequest.setAuthority.

Sets authority of this request message.

Annotations
@Override
setPathback to summary
public void setPath(final String path)

Implements org.apache.hc.core5.http.HttpRequest.setPath.

Doc from org.apache.hc.core5.http.HttpRequest.setPath.

Sets URI path of this request message.

Annotations
@Override
setSchemeback to summary
public void setScheme(final String scheme)

Implements org.apache.hc.core5.http.HttpRequest.setScheme.

Doc from org.apache.hc.core5.http.HttpRequest.setScheme.

Sets scheme of this request message.

Annotations
@Override
setUriback to summary
public void setUri(final URI requestUri)

Implements org.apache.hc.core5.http.HttpRequest.setUri.

Doc from org.apache.hc.core5.http.HttpRequest.setUri.

Sets the full request URI of this request message.

Parameters
requestUri:URI

the request URI.

Annotations
@Override