APIdia Launch Partner
Top Inners Fields Constructors Methods
jdk.internal.net.http.common

public Class ValidatingHeadersConsumer

extends Object
Class Inheritance
Known Direct Subclasses
jdk.internal.net.http.Http3Stream.StreamHeadersConsumer, jdk.internal.net.http.Stream.HeadersConsumer, jdk.internal.net.http.common.HeaderDecoder
Imports
java.io.IOException, .UncheckedIOException, java.net.ProtocolException, java.util.Map, .Objects, .Set

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
private final ValidatingHeadersConsumer.Context
private static final Set<String>
private static final Map<String, ValidatingHeadersConsumer.Context>
private boolean
pseudoHeadersEnded

Used to check that if there are pseudo-headers, they go first

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected String
formatMessage(String message, String header)

protected UncheckedIOException
newException(String message, String header)

public void
onDecoded(CharSequence
the decoded name
name
,
CharSequence
the decoded value
value
)

Called when a header field (name, value) pair has been decoded

public void
reset()

Called when END_HEADERS was received.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contextback to summary
private final ValidatingHeadersConsumer.Context context
PROHIBITED_HEADERSback to summary
private static final Set<String> PROHIBITED_HEADERS
PSEUDO_HEADERSback to summary
private static final Map<String, ValidatingHeadersConsumer.Context> PSEUDO_HEADERS
pseudoHeadersEndedback to summary
private boolean pseudoHeadersEnded

Used to check that if there are pseudo-headers, they go first

Constructor Detail

ValidatingHeadersConsumerback to summary
public ValidatingHeadersConsumer(ValidatingHeadersConsumer.Context context)

Method Detail

formatMessageback to summary
protected String formatMessage(String message, String header)
newExceptionback to summary
protected UncheckedIOException newException(String message, String header)
onDecodedback to summary
public void onDecoded(CharSequence name, CharSequence value) throws UncheckedIOException

Called when a header field (name, value) pair has been decoded

Parameters
name:CharSequence

the decoded name

value:CharSequence

the decoded value

Exceptions
UncheckedIOException:
if the name or value are illegal
resetback to summary
public void reset()

Called when END_HEADERS was received. This consumer may be invoked again after reset() is called, but for a whole new set of headers.

jdk.internal.net.http.common back to summary

public final Enum ValidatingHeadersConsumer.Context

extends Enum<ValidatingHeadersConsumer.Context>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final ValidatingHeadersConsumer.Context
public static final ValidatingHeadersConsumer.Context

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ValidatingHeadersConsumer.Context
public static ValidatingHeadersConsumer.Context[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

REQUESTback to summary
public static final ValidatingHeadersConsumer.Context REQUEST
RESPONSEback to summary
public static final ValidatingHeadersConsumer.Context RESPONSE

Constructor Detail

Contextback to summary
private Context()

Method Detail

valueOfback to summary
public static ValidatingHeadersConsumer.Context valueOf(String name)
valuesback to summary
public static ValidatingHeadersConsumer.Context[] values()