public enum RestMethod extends Enum<RestMethod>
| Modifier and Type | Method and Description |
|---|---|
static Map<String,List<org.apache.commons.httpclient.Cookie>> |
getCookiesMap(Collection<org.apache.commons.httpclient.Cookie> cookies) |
static Map<String,List<org.apache.commons.httpclient.Cookie>> |
getCookiesMap(String cookies) |
org.apache.commons.httpclient.HttpMethod |
newHttpMethod(String url) |
org.apache.commons.httpclient.HttpMethod |
newHttpMethod(String url,
byte[] entity) |
org.apache.commons.httpclient.HttpMethod |
newHttpMethod(String url,
byte[] entity,
Collection<RestPair> parameters) |
org.apache.commons.httpclient.HttpMethod |
newHttpMethod(String url,
Collection<RestPair> parameters) |
static void |
setCookies(org.apache.commons.httpclient.HttpMethod method,
Collection<org.apache.commons.httpclient.Cookie> cookies) |
static void |
setCookies(org.apache.commons.httpclient.HttpMethod method,
Map<String,List<org.apache.commons.httpclient.Cookie>> cookies) |
static void |
setCookies(org.apache.commons.httpclient.HttpMethod method,
String cookies) |
static void |
setHeaders(org.apache.commons.httpclient.HttpMethod method,
Collection<RestPair> headers) |
static RestMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RestMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RestMethod GET
public static final RestMethod POST
public static final RestMethod PUT
public static final RestMethod DELETE
public static final RestMethod HEAD
public static final RestMethod OPTIONS
public static RestMethod[] values()
for (RestMethod c : RestMethod.values()) System.out.println(c);
public static RestMethod 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 org.apache.commons.httpclient.HttpMethod newHttpMethod(String url) throws CommonException
CommonExceptionpublic org.apache.commons.httpclient.HttpMethod newHttpMethod(String url, Collection<RestPair> parameters) throws CommonException
CommonExceptionpublic org.apache.commons.httpclient.HttpMethod newHttpMethod(String url, byte[] entity) throws CommonException
CommonExceptionpublic org.apache.commons.httpclient.HttpMethod newHttpMethod(String url, byte[] entity, Collection<RestPair> parameters) throws CommonException
CommonExceptionpublic static void setHeaders(org.apache.commons.httpclient.HttpMethod method,
Collection<RestPair> headers)
public static void setCookies(org.apache.commons.httpclient.HttpMethod method,
String cookies)
public static void setCookies(org.apache.commons.httpclient.HttpMethod method,
Collection<org.apache.commons.httpclient.Cookie> cookies)
public static void setCookies(org.apache.commons.httpclient.HttpMethod method,
Map<String,List<org.apache.commons.httpclient.Cookie>> cookies)
public static Map<String,List<org.apache.commons.httpclient.Cookie>> getCookiesMap(Collection<org.apache.commons.httpclient.Cookie> cookies)
Copyright © 2023. All rights reserved.