public static enum WebBotItem.Type extends Enum<WebBotItem.Type>
WebItem.| Enum Constant and Description |
|---|
CSS
A CSS file.
|
HTML
An HTML page or page fragment.
|
RESOURCE
Any other resource file that is not an HTML page or CSS file.
|
| Modifier and Type | Method and Description |
|---|---|
static WebBotItem.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebBotItem.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebBotItem.Type HTML
The crawler parses items of this type as HTML looking for tags such as page links, images, stylesheets, scripts, and other resources. It also looks for resource links in inline CSS.
The generated archive file for this item is always given the file extension .html, even if the page has no extension or some other extension.
public static final WebBotItem.Type CSS
The crawler parses items of this type as CSS looking for included CSS files, images, fonts and other resources.
The generated archive file for this item is always given the file extension .css.
public static final WebBotItem.Type RESOURCE
The crawler does not parse items of this type at all. They are just copied to the archive as is, or completely ignored if no archive is being generated.
The generated archive file for this item is maintains the same file extension is it appears in the URL.
public static WebBotItem.Type[] values()
for (WebBotItem.Type c : WebBotItem.Type.values()) System.out.println(c);
public static WebBotItem.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null