Package org.apache.http.impl
Class DefaultHttpRequestFactory
- java.lang.Object
-
- org.apache.http.impl.DefaultHttpRequestFactory
-
- All Implemented Interfaces:
HttpRequestFactory
@Contract(threading=IMMUTABLE) public class DefaultHttpRequestFactory extends java.lang.Object implements HttpRequestFactory
Default factory for creatingHttpRequest
objects.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultHttpRequestFactory
INSTANCE
-
Constructor Summary
Constructors Constructor Description DefaultHttpRequestFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpRequest
newHttpRequest(java.lang.String method, java.lang.String uri)
HttpRequest
newHttpRequest(RequestLine requestline)
-
-
-
Field Detail
-
INSTANCE
public static final DefaultHttpRequestFactory INSTANCE
-
-
Method Detail
-
newHttpRequest
public HttpRequest newHttpRequest(RequestLine requestline) throws MethodNotSupportedException
- Specified by:
newHttpRequest
in interfaceHttpRequestFactory
- Throws:
MethodNotSupportedException
-
newHttpRequest
public HttpRequest newHttpRequest(java.lang.String method, java.lang.String uri) throws MethodNotSupportedException
- Specified by:
newHttpRequest
in interfaceHttpRequestFactory
- Throws:
MethodNotSupportedException
-
-