public enum CaptureType extends Enum<CaptureType>
REQUEST_*
and
RESPONSE_*
, corresponding to client requests and server responses.Enum Constant and Description |
---|
REQUEST_BINARY_CONTENT
Binary HTTP request content, such as file uploads, or any unrecognized request payload.
|
REQUEST_CONTENT
Non-binary HTTP request content, such as post data or other text-based request payload.
|
REQUEST_COOKIES
HTTP Cookies sent with the request.
|
REQUEST_HEADERS
HTTP request headers, including trailing headers.
|
RESPONSE_BINARY_CONTENT
Binary HTTP response content, such as image files, or any unrecognized response payload.
|
RESPONSE_CONTENT
Non-binary HTTP response content (typically, HTTP body content).
|
RESPONSE_COOKIES
Set-Cookie headers sent with the response.
|
RESPONSE_HEADERS
HTTP response headers, including trailing headers.
|
Modifier and Type | Method and Description |
---|---|
static EnumSet<CaptureType> |
getAllContentCaptureTypes() |
static EnumSet<CaptureType> |
getBinaryContentCaptureTypes() |
static EnumSet<CaptureType> |
getCookieCaptureTypes() |
static EnumSet<CaptureType> |
getHeaderCaptureTypes() |
static EnumSet<CaptureType> |
getNonBinaryContentCaptureTypes() |
static EnumSet<CaptureType> |
getRequestCaptureTypes() |
static EnumSet<CaptureType> |
getResponseCaptureTypes() |
static CaptureType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CaptureType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CaptureType REQUEST_HEADERS
public static final CaptureType REQUEST_COOKIES
public static final CaptureType REQUEST_CONTENT
BrowserMobHttpUtil.hasTextualContent(String)
for a list of Content-Types that
are considered non-binary.public static final CaptureType REQUEST_BINARY_CONTENT
public static final CaptureType RESPONSE_HEADERS
public static final CaptureType RESPONSE_COOKIES
public static final CaptureType RESPONSE_CONTENT
BrowserMobHttpUtil.hasTextualContent(String)
for a list of Content-Types that
are considered non-binary.public static final CaptureType RESPONSE_BINARY_CONTENT
public static CaptureType[] values()
for (CaptureType c : CaptureType.values()) System.out.println(c);
public static CaptureType 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 static EnumSet<CaptureType> getRequestCaptureTypes()
public static EnumSet<CaptureType> getResponseCaptureTypes()
public static EnumSet<CaptureType> getHeaderCaptureTypes()
public static EnumSet<CaptureType> getNonBinaryContentCaptureTypes()
public static EnumSet<CaptureType> getBinaryContentCaptureTypes()
public static EnumSet<CaptureType> getAllContentCaptureTypes()
public static EnumSet<CaptureType> getCookieCaptureTypes()
Copyright © 2017. All rights reserved.