@Contract(threading=IMMUTABLE) public class DefaultHttpRequestFactory extends Object implements HttpRequestFactory<HttpRequest>
HttpRequest
objects.Modifier and Type | Field and Description |
---|---|
static DefaultHttpRequestFactory |
INSTANCE |
Constructor and Description |
---|
DefaultHttpRequestFactory() |
Modifier and Type | Method and Description |
---|---|
HttpRequest |
newHttpRequest(String method,
String uri)
Creates request message with the given request method and request URI.
|
HttpRequest |
newHttpRequest(String method,
URI uri)
Creates request message with the given request method and request URI.
|
public static final DefaultHttpRequestFactory INSTANCE
public HttpRequest newHttpRequest(String method, URI uri)
HttpRequestFactory
newHttpRequest
in interface HttpRequestFactory<HttpRequest>
method
- the request methoduri
- the request URIpublic HttpRequest newHttpRequest(String method, String uri)
HttpRequestFactory
newHttpRequest
in interface HttpRequestFactory<HttpRequest>
method
- the request methoduri
- the request URICopyright © 2005–2022 The Apache Software Foundation. All rights reserved.