Enum ProtocolResponse.TrimmedContentReason
- java.lang.Object
-
- java.lang.Enum<ProtocolResponse.TrimmedContentReason>
-
- com.digitalpebble.stormcrawler.protocol.ProtocolResponse.TrimmedContentReason
-
- All Implemented Interfaces:
Serializable
,Comparable<ProtocolResponse.TrimmedContentReason>
- Enclosing class:
- ProtocolResponse
public static enum ProtocolResponse.TrimmedContentReason extends Enum<ProtocolResponse.TrimmedContentReason>
Enum of reasons which may cause that protocol content is trimmed.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISCONNECT
network disconnect or timeout during fetchINTERNAL
implementation internal reasonLENGTH
fetch exceeded configured http.content.limitNOT_TRIMMED
TIME
fetch exceeded configured max.UNSPECIFIED
unknown reason
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProtocolResponse.TrimmedContentReason
valueOf(String name)
Returns the enum constant of this type with the specified name.static ProtocolResponse.TrimmedContentReason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_TRIMMED
public static final ProtocolResponse.TrimmedContentReason NOT_TRIMMED
-
LENGTH
public static final ProtocolResponse.TrimmedContentReason LENGTH
fetch exceeded configured http.content.limit
-
TIME
public static final ProtocolResponse.TrimmedContentReason TIME
fetch exceeded configured max. time for fetch
-
DISCONNECT
public static final ProtocolResponse.TrimmedContentReason DISCONNECT
network disconnect or timeout during fetch
-
INTERNAL
public static final ProtocolResponse.TrimmedContentReason INTERNAL
implementation internal reason
-
UNSPECIFIED
public static final ProtocolResponse.TrimmedContentReason UNSPECIFIED
unknown reason
-
-
Method Detail
-
values
public static ProtocolResponse.TrimmedContentReason[] 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 (ProtocolResponse.TrimmedContentReason c : ProtocolResponse.TrimmedContentReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProtocolResponse.TrimmedContentReason valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-