com.teamdev.jxbrowser.security
Enum HttpSecurityAction

java.lang.Object
  extended by java.lang.Enum<HttpSecurityAction>
      extended by com.teamdev.jxbrowser.security.HttpSecurityAction
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<HttpSecurityAction>

public enum HttpSecurityAction
extends java.lang.Enum<HttpSecurityAction>

Represents a set of possible return values for the HttpSecurityHandler.onSecurityProblem(java.util.Set) event.


Enum Constant Summary
ABORT
          The calling application should abort the download of a web page that causes a security problem.
CONTINUE
          The calling application should ignore a security problem and continue downloading a web page.
DEFAULT
          The calling application should open a standard native dialog box to warn the user about security problem.
 
Method Summary
static HttpSecurityAction valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static HttpSecurityAction[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DEFAULT

public static final HttpSecurityAction DEFAULT
The calling application should open a standard native dialog box to warn the user about security problem.


ABORT

public static final HttpSecurityAction ABORT
The calling application should abort the download of a web page that causes a security problem.


CONTINUE

public static final HttpSecurityAction CONTINUE
The calling application should ignore a security problem and continue downloading a web page. This action should be returned only when the application is running on a known trusted server or after you have verified information from the user.

Method Detail

values

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

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

valueOf

public static HttpSecurityAction valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null