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

public Interface HttpRequestFactory<T extends org.apache.hc.core5.http.HttpRequest>

Known Direct Implementers
org.apache.hc.core5.http.impl.io.DefaultClassicHttpRequestFactory, org.apache.hc.core5.http.impl.nio.DefaultHttpRequestFactory
Imports
java.net.URI

A factory for HttpRequest objects.
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

request message
newHttpRequest
(String
the request method
method
,
String
the request URI
uri
)

Creates request message with the given request method and request URI.

public T

Returns:

request message
newHttpRequest
(String
the request method
method
,
URI
the request URI
uri
)

Creates request message with the given request method and request URI.

Method Detail

newHttpRequestback to summary
public T newHttpRequest(String method, String uri) throws MethodNotSupportedException

Creates request message with the given request method and request URI.

Parameters
method:String

the request method

uri:String

the request URI

Returns:T

request message

Exceptions
MethodNotSupportedException:
if the given method is not supported.
Since
5.0
newHttpRequestback to summary
public T newHttpRequest(String method, URI uri) throws MethodNotSupportedException

Creates request message with the given request method and request URI.

Parameters
method:String

the request method

uri:URI

the request URI

Returns:T

request message

Exceptions
MethodNotSupportedException:
if the given method is not supported.