@Contract(threading=IMMUTABLE) public class DefaultHttpRequestFactory extends Object implements HttpRequestFactory
HttpRequest
objects.Modifier and Type | Field and Description |
---|---|
static DefaultHttpRequestFactory |
INSTANCE |
private static String[] |
RFC2616_COMMON_METHODS |
private static String[] |
RFC2616_ENTITY_ENC_METHODS |
private static String[] |
RFC2616_SPECIAL_METHODS |
private static String[] |
RFC5789_ENTITY_ENC_METHODS |
Constructor and Description |
---|
DefaultHttpRequestFactory() |
Modifier and Type | Method and Description |
---|---|
private static boolean |
isOneOf(String[] methods,
String method) |
HttpRequest |
newHttpRequest(RequestLine requestline) |
HttpRequest |
newHttpRequest(String method,
String uri) |
public static final DefaultHttpRequestFactory INSTANCE
private static final String[] RFC2616_COMMON_METHODS
private static final String[] RFC2616_ENTITY_ENC_METHODS
private static final String[] RFC2616_SPECIAL_METHODS
private static final String[] RFC5789_ENTITY_ENC_METHODS
public DefaultHttpRequestFactory()
public HttpRequest newHttpRequest(RequestLine requestline) throws MethodNotSupportedException
newHttpRequest
in interface HttpRequestFactory
MethodNotSupportedException
public HttpRequest newHttpRequest(String method, String uri) throws MethodNotSupportedException
newHttpRequest
in interface HttpRequestFactory
MethodNotSupportedException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses