Package io.mola.galimatias
Enum URLParser.ParseURLState
- java.lang.Object
-
- java.lang.Enum<URLParser.ParseURLState>
-
- io.mola.galimatias.URLParser.ParseURLState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<URLParser.ParseURLState>
- Enclosing class:
- URLParser
public static enum URLParser.ParseURLState extends java.lang.Enum<URLParser.ParseURLState>
Parse URL states as defined by WHATWG URL spec. http://url.spec.whatwg.org/#scheme-start-state
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTHORITYAUTHORITY_FIRST_SLASHAUTHORITY_IGNORE_SLASHESAUTHORITY_SECOND_SLASHFILE_HOSTFRAGMENTHOSTNO_SCHEMEPORTQUERYRELATIVERELATIVE_OR_AUTHORITYRELATIVE_PATHRELATIVE_PATH_STARTRELATIVE_SLASHSCHEMESCHEME_DATASCHEME_START
-
Constructor Summary
Constructors Modifier Constructor Description privateParseURLState()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static URLParser.ParseURLStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static URLParser.ParseURLState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SCHEME_START
public static final URLParser.ParseURLState SCHEME_START
-
SCHEME
public static final URLParser.ParseURLState SCHEME
-
SCHEME_DATA
public static final URLParser.ParseURLState SCHEME_DATA
-
NO_SCHEME
public static final URLParser.ParseURLState NO_SCHEME
-
RELATIVE_OR_AUTHORITY
public static final URLParser.ParseURLState RELATIVE_OR_AUTHORITY
-
RELATIVE
public static final URLParser.ParseURLState RELATIVE
-
RELATIVE_SLASH
public static final URLParser.ParseURLState RELATIVE_SLASH
-
AUTHORITY_FIRST_SLASH
public static final URLParser.ParseURLState AUTHORITY_FIRST_SLASH
-
AUTHORITY_SECOND_SLASH
public static final URLParser.ParseURLState AUTHORITY_SECOND_SLASH
-
AUTHORITY_IGNORE_SLASHES
public static final URLParser.ParseURLState AUTHORITY_IGNORE_SLASHES
-
AUTHORITY
public static final URLParser.ParseURLState AUTHORITY
-
FILE_HOST
public static final URLParser.ParseURLState FILE_HOST
-
HOST
public static final URLParser.ParseURLState HOST
-
PORT
public static final URLParser.ParseURLState PORT
-
RELATIVE_PATH_START
public static final URLParser.ParseURLState RELATIVE_PATH_START
-
RELATIVE_PATH
public static final URLParser.ParseURLState RELATIVE_PATH
-
QUERY
public static final URLParser.ParseURLState QUERY
-
FRAGMENT
public static final URLParser.ParseURLState FRAGMENT
-
-
Method Detail
-
values
public static URLParser.ParseURLState[] 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 (URLParser.ParseURLState c : URLParser.ParseURLState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static URLParser.ParseURLState 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 namejava.lang.NullPointerException- if the argument is null
-
-