org.lobobrowser.ua
Enum RequestType

java.lang.Object
  extended by java.lang.Enum<RequestType>
      extended by org.lobobrowser.ua.RequestType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RequestType>

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

Denotes a type of navigation request.


Enum Constant Summary
ADDRESS_BAR
          Navigation is due to user entering a location in the address bar.
CLICK
          Navigation is due to a user click.
DOWNLOAD
          Reserved for downloads.
ELEMENT
          Request is intended to load a page/document element, such as an image or style sheet.
FORM
          Request is due to form submission
FRAME
          Request loads frame content.
HARD_RELOAD
          Navigation is due to a hard reload.
HISTORY
          Navigation is due to back, forward, or other history item request.
NONE
          Not a request.
OPEN_WINDOW
          Programmatic navigation is intended to open a window.
OPEN_WINDOW_FROM_CLICK
          Navigation is intended to open a window, but the action was initiated by a user click.
PROGRAMMATIC
          Navigation is due to a programmatic call, such as a script invocation.
PROGRAMMATIC_FROM_CLICK
          Navigation is due to a programmatic call, such as a script invocation, but it was initiated by a user click.
SOFT_RELOAD
          Navigation is due to a soft reload.
 
Method Summary
static RequestType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RequestType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CLICK

public static final RequestType CLICK
Navigation is due to a user click.


PROGRAMMATIC

public static final RequestType PROGRAMMATIC
Navigation is due to a programmatic call, such as a script invocation.


PROGRAMMATIC_FROM_CLICK

public static final RequestType PROGRAMMATIC_FROM_CLICK
Navigation is due to a programmatic call, such as a script invocation, but it was initiated by a user click.


ADDRESS_BAR

public static final RequestType ADDRESS_BAR
Navigation is due to user entering a location in the address bar.


SOFT_RELOAD

public static final RequestType SOFT_RELOAD
Navigation is due to a soft reload.


HARD_RELOAD

public static final RequestType HARD_RELOAD
Navigation is due to a hard reload.


HISTORY

public static final RequestType HISTORY
Navigation is due to back, forward, or other history item request.


DOWNLOAD

public static final RequestType DOWNLOAD
Reserved for downloads. It should not be seen in frame requests.


OPEN_WINDOW

public static final RequestType OPEN_WINDOW
Programmatic navigation is intended to open a window.


OPEN_WINDOW_FROM_CLICK

public static final RequestType OPEN_WINDOW_FROM_CLICK
Navigation is intended to open a window, but the action was initiated by a user click.


FRAME

public static final RequestType FRAME
Request loads frame content.


FORM

public static final RequestType FORM
Request is due to form submission


ELEMENT

public static final RequestType ELEMENT
Request is intended to load a page/document element, such as an image or style sheet. This type of request should not be seen in frame navigation.


NONE

public static final RequestType NONE
Not a request.

Method Detail

values

public static final RequestType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(RequestType c : RequestType.values())
        System.out.println(c);

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

valueOf

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


SourceForge.net LogoCopyright © 2005, 2006, 2007 The Lobo Project. All Rights Reserved.
[Lobo Home]