com.opera.core.systems.scope
Enum CookieManagerCommand

java.lang.Object
  extended by java.lang.Enum<CookieManagerCommand>
      extended by com.opera.core.systems.scope.CookieManagerCommand
All Implemented Interfaces:
ICommand, Serializable, Comparable<CookieManagerCommand>

public enum CookieManagerCommand
extends Enum<CookieManagerCommand>
implements ICommand


Enum Constant Summary
DEFAULT
           
GET_COOKIE
           
GET_COOKIE_SETTINGS
           
REMOVE_ALL_COOKIES
           
REMOVE_COOKIE
           
 
Method Summary
static CookieManagerCommand get(int code)
           
 int getCommandID()
          Get command id to execute on host, service definitions are available on Scope Interface
 String getServiceName()
          Associates a command id with a service name
static CookieManagerCommand valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CookieManagerCommand[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GET_COOKIE

public static final CookieManagerCommand GET_COOKIE

REMOVE_COOKIE

public static final CookieManagerCommand REMOVE_COOKIE

REMOVE_ALL_COOKIES

public static final CookieManagerCommand REMOVE_ALL_COOKIES

GET_COOKIE_SETTINGS

public static final CookieManagerCommand GET_COOKIE_SETTINGS

DEFAULT

public static final CookieManagerCommand DEFAULT
Method Detail

values

public static CookieManagerCommand[] 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 (CookieManagerCommand c : CookieManagerCommand.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CookieManagerCommand 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

getCommandID

public int getCommandID()
Description copied from interface: ICommand
Get command id to execute on host, service definitions are available on Scope Interface

Specified by:
getCommandID in interface ICommand
Returns:
The id associated with the command

getServiceName

public String getServiceName()
Description copied from interface: ICommand
Associates a command id with a service name

Specified by:
getServiceName in interface ICommand
Returns:
Name of the service the command belongs to

get

public static CookieManagerCommand get(int code)


Copyright © 2012. All Rights Reserved.