Package net.ideahut.springboot.rest
Enum Class RestMethod
- All Implemented Interfaces:
Serializable,Comparable<RestMethod>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetCookiesMap(String cookies) getCookiesMap(Collection<org.apache.commons.httpclient.Cookie> cookies) org.apache.commons.httpclient.HttpMethodnewHttpMethod(String url) org.apache.commons.httpclient.HttpMethodnewHttpMethod(String url, byte[] entity) org.apache.commons.httpclient.HttpMethodnewHttpMethod(String url, byte[] entity, Collection<RestPair> parameters) org.apache.commons.httpclient.HttpMethodnewHttpMethod(String url, Collection<RestPair> parameters) static voidsetCookies(org.apache.commons.httpclient.HttpMethod method, String cookies) static voidsetCookies(org.apache.commons.httpclient.HttpMethod method, Collection<org.apache.commons.httpclient.Cookie> cookies) static voidsetCookies(org.apache.commons.httpclient.HttpMethod method, Map<String, List<org.apache.commons.httpclient.Cookie>> cookies) static voidsetHeaders(org.apache.commons.httpclient.HttpMethod method, Collection<RestPair> headers) static RestMethodReturns the enum constant of this class with the specified name.static RestMethod[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GET
-
POST
-
PUT
-
DELETE
-
HEAD
-
OPTIONS
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
newHttpMethod
- Throws:
Exception
-
newHttpMethod
public org.apache.commons.httpclient.HttpMethod newHttpMethod(String url, Collection<RestPair> parameters) throws Exception - Throws:
Exception
-
newHttpMethod
public org.apache.commons.httpclient.HttpMethod newHttpMethod(String url, byte[] entity) throws Exception - Throws:
Exception
-
newHttpMethod
public org.apache.commons.httpclient.HttpMethod newHttpMethod(String url, byte[] entity, Collection<RestPair> parameters) throws Exception - Throws:
Exception
-
setHeaders
public static void setHeaders(org.apache.commons.httpclient.HttpMethod method, Collection<RestPair> headers) -
setCookies
-
setCookies
public static void setCookies(org.apache.commons.httpclient.HttpMethod method, Collection<org.apache.commons.httpclient.Cookie> cookies) -
setCookies
-
getCookiesMap
public static Map<String,List<org.apache.commons.httpclient.Cookie>> getCookiesMap(Collection<org.apache.commons.httpclient.Cookie> cookies) -
getCookiesMap
-