Package com.restfb
Enum FacebookEndpoints.Endpoint
- java.lang.Object
-
- java.lang.Enum<FacebookEndpoints.Endpoint>
-
- com.restfb.FacebookEndpoints.Endpoint
-
- All Implemented Interfaces:
Serializable
,Comparable<FacebookEndpoints.Endpoint>
- Enclosing interface:
- FacebookEndpoints
public static enum FacebookEndpoints.Endpoint extends Enum<FacebookEndpoints.Endpoint>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GRAPH
Graph API endpoint URL.GRAPH_VIDEO
Video Upload API endpoint URL.SERVER
General Facebook endpoint URL.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getUrl()
static FacebookEndpoints.Endpoint
valueOf(String name)
Returns the enum constant of this type with the specified name.static FacebookEndpoints.Endpoint[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SERVER
public static final FacebookEndpoints.Endpoint SERVER
General Facebook endpoint URL.
-
GRAPH
public static final FacebookEndpoints.Endpoint GRAPH
Graph API endpoint URL.
-
GRAPH_VIDEO
public static final FacebookEndpoints.Endpoint GRAPH_VIDEO
Video Upload API endpoint URL.
-
-
Method Detail
-
values
public static FacebookEndpoints.Endpoint[] 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 (FacebookEndpoints.Endpoint c : FacebookEndpoints.Endpoint.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FacebookEndpoints.Endpoint 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 nameNullPointerException
- if the argument is null
-
-