Enum Class Destination
- All Implemented Interfaces:
Serializable, Comparable<Destination>, Constable
The request destination values of the
Sec-Fetch-Dest header.
The Fetch specification and the specifications that extend it keep adding destinations, so
this list is a snapshot rather than a closed set: a newer client can legitimately send a
destination absent from it. of(String) answers null for such a value, and
SecFetch keeps the rest of the metadata readable rather than discarding it.
The list covers the destinations of the Fetch Standard, those that other specifications add to it, and the ones shipping browsers send on the wire. Each constant that comes from outside the Fetch Standard documents its source.
- Since:
- 5.1.12
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe fetch of a<link rel="compression-dictionary">resource.The navigation of a<fencedframe>element.The fetch of a speculation rules resource.The fetch of a web bundle from a<script type="webbundle">element.A WebTransport session handshake. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable DestinationFinds the destination for the given Fetch Metadata value.toString()static DestinationReturns the enum constant of this class with the specified name.static Destination[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EMPTY
-
AUDIO
-
AUDIOWORKLET
-
COMPRESSION_DICTIONARY
The fetch of a<link rel="compression-dictionary">resource.- Since:
- 5.2.16
- See Also:
-
DOCUMENT
-
EMBED
-
FENCEDFRAME
-
FONT
-
FRAME
-
IFRAME
-
IMAGE
-
JSON
-
MANIFEST
-
OBJECT
-
PAINTWORKLET
-
REPORT
-
SCRIPT
-
SERVICEWORKER
-
SHAREDWORKER
-
SPECULATIONRULES
The fetch of a speculation rules resource.- See Also:
-
STYLE
-
TEXT
-
TRACK
-
VIDEO
-
WEBBUNDLE
The fetch of a web bundle from a<script type="webbundle">element.- Since:
- 5.2.16
- See Also:
-
WEBIDENTITY
-
WEBTRANSPORT
A WebTransport session handshake. The Fetch Standard gives such a request the empty destination and theMode.WEBTRANSPORTmode, but Firefox reports the handshake with this destination instead, so it is listed to classify what arrives on the wire.- Since:
- 5.2.16
- See Also:
-
WORKER
-
XSLT
-
-
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
-
of
Finds the destination for the given Fetch Metadata value.- Parameters:
value- The destination value- Returns:
- The matching destination, or
nullif there is no match. Anullhere means the value is not one this version lists, which includes destinations added to the specification since - Since:
- 5.1.12
-
toString
- Overrides:
toStringin classEnum<Destination>- Returns:
- The destination value used by Fetch Metadata
-