Package org.apache.hc.core5.http
Interface HttpRequestFactory<T extends HttpRequest>
-
- All Known Implementing Classes:
DefaultClassicHttpRequestFactory,DefaultHttpRequestFactory
public interface HttpRequestFactory<T extends HttpRequest>A factory forHttpRequestobjects.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TnewHttpRequest(java.lang.String method, java.lang.String uri)Creates request message with the given request method and request URI.TnewHttpRequest(java.lang.String method, java.net.URI uri)Creates request message with the given request method and request URI.
-
-
-
Method Detail
-
newHttpRequest
T newHttpRequest(java.lang.String method, java.lang.String uri) throws MethodNotSupportedException
Creates request message with the given request method and request URI.- Parameters:
method- the request methoduri- the request URI- Returns:
- request message
- Throws:
MethodNotSupportedException- if the givenmethodis not supported.- Since:
- 5.0
-
newHttpRequest
T newHttpRequest(java.lang.String method, java.net.URI uri) throws MethodNotSupportedException
Creates request message with the given request method and request URI.- Parameters:
method- the request methoduri- the request URI- Returns:
- request message
- Throws:
MethodNotSupportedException- if the givenmethodis not supported.
-
-