public static enum UrlWrapper.Status extends Enum<UrlWrapper.Status>
Enum Constant and Description |
---|
NOT_FOUND
Could not find doc.
|
OK
No problem.
|
UNKNOWN_HOST
No Server was found or hostname not found in DNS.
|
UNSUPPORTED
Unsupported status -- the status code is not
being tracked in the code.
|
Modifier and Type | Field and Description |
---|---|
private int |
code
Numeric code depicting http status, e.g.
|
private String |
reason
Text 'reason' explanation for http status.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Numeric code depicting http status, e.g.
|
String |
getReason()
Text 'reason' explanation for http status.
|
static UrlWrapper.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UrlWrapper.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UrlWrapper.Status OK
public static final UrlWrapper.Status UNSUPPORTED
public static final UrlWrapper.Status UNKNOWN_HOST
public static final UrlWrapper.Status NOT_FOUND
private int code
private String reason
public static UrlWrapper.Status[] values()
for (UrlWrapper.Status c : UrlWrapper.Status.values()) System.out.println(c);
public static UrlWrapper.Status 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 nullpublic int getCode()
public String getReason()
Copyright © 2018. All rights reserved.