Enum Class Retention
- All Implemented Interfaces:
Serializable,Comparable<Retention>,Constable
A
ResponseHandler's verdict on a single completed request: whether to retain its
RequestResult in the terminal RequestExecutionResult. Returned from
ResponseHandler.onResponse(burp.api.montoya.http.execution.RequestResult, burp.api.montoya.http.execution.RequestExecution).
A run with no handler keeps every result. A handler returns DROP for results it
does not want - useful for bounding memory on large runs, where the uninteresting results are
discarded as they arrive.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDiscard this result entirely: it does not appear inRequestExecutionResult.results().Keep this result in the terminalRequestExecutionResult. -
Method Summary
-
Enum Constant Details
-
KEEP
Keep this result in the terminalRequestExecutionResult. -
DROP
Discard this result entirely: it does not appear inRequestExecutionResult.results(). It is still counted in the run'sstats.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-