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