public enum SimpleHttpRequests extends Enum<SimpleHttpRequests>
SimpleHttpRequest as a HTTP request message representation.| Enum Constant and Description |
|---|
DELETE |
GET |
HEAD |
OPTIONS |
PATCH |
POST |
PUT |
TRACE |
| Modifier and Type | Method and Description |
|---|---|
abstract SimpleHttpRequest |
create(org.apache.hc.core5.http.HttpHost host,
String path)
Creates a request object of the exact subclass of
SimpleHttpRequest. |
SimpleHttpRequest |
create(String uri)
Creates a request object of the exact subclass of
SimpleHttpRequest. |
abstract SimpleHttpRequest |
create(URI uri)
Creates a request object of the exact subclass of
SimpleHttpRequest. |
static SimpleHttpRequests |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SimpleHttpRequests[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SimpleHttpRequests DELETE
public static final SimpleHttpRequests GET
public static final SimpleHttpRequests HEAD
public static final SimpleHttpRequests OPTIONS
public static final SimpleHttpRequests PATCH
public static final SimpleHttpRequests POST
public static final SimpleHttpRequests PUT
public static final SimpleHttpRequests TRACE
public static SimpleHttpRequests[] values()
for (SimpleHttpRequests c : SimpleHttpRequests.values()) System.out.println(c);
public static SimpleHttpRequests valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic SimpleHttpRequest create(String uri)
SimpleHttpRequest.uri - a non-null URI String.public abstract SimpleHttpRequest create(URI uri)
SimpleHttpRequest.uri - a non-null URI.public abstract SimpleHttpRequest create(org.apache.hc.core5.http.HttpHost host, String path)
SimpleHttpRequest.host - HTTP host.path - request path.Copyright © 1999–2019 The Apache Software Foundation. All rights reserved.