com.paypal.base.util
Enum OAuthSignature.HTTPMethod
java.lang.Object
java.lang.Enum<OAuthSignature.HTTPMethod>
com.paypal.base.util.OAuthSignature.HTTPMethod
- All Implemented Interfaces:
- Serializable, Comparable<OAuthSignature.HTTPMethod>
- Enclosing class:
- OAuthSignature
public static enum OAuthSignature.HTTPMethod
- extends Enum<OAuthSignature.HTTPMethod>
GET
public static final OAuthSignature.HTTPMethod GET
HEAD
public static final OAuthSignature.HTTPMethod HEAD
POST
public static final OAuthSignature.HTTPMethod POST
PUT
public static final OAuthSignature.HTTPMethod PUT
UPDATE
public static final OAuthSignature.HTTPMethod UPDATE
values
public static OAuthSignature.HTTPMethod[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (OAuthSignature.HTTPMethod c : OAuthSignature.HTTPMethod.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static OAuthSignature.HTTPMethod valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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 type has no constant
with the specified name
NullPointerException - if the argument is null
Copyright © 2015. All Rights Reserved.