Uses of Interface
org.jdrupes.httpcodec.types.Converter
Package
Description
Classes required for handling the HTTP protocol.
Special types related to HTTP.
-
Uses of Converter in org.jdrupes.httpcodec.protocols.http
Modifier and TypeMethodDescriptionHttpField.converter()
Returns the cconverter used by this field.static Converter<?>
HttpField.lookupConverter
(String fieldName) Returns the proper converter for the header field with the given name.Modifier and TypeMethodDescription<T> HttpField<T>
HttpMessageHeader.computeIfAbsent
(String name, Converter<T> converter, Supplier<T> supplier) Returns the header field with the given name, computing and adding it if it doesn’t exist.Returns the header field with the given type if it exists.<T> Optional<T>
Convenience method for getting the value of a header field.ModifierConstructorDescriptionCreates a new representation of a header field from its textual representation.Creates a new representation of a header field with the given value and converter. -
Uses of Converter in org.jdrupes.httpcodec.types
Modifier and TypeInterfaceDescriptioninterface
MultiValueConverter<T extends Iterable<V>,
V> Implemented by converters that convert header fields with a list of values.Modifier and TypeClassDescriptionstatic class
class
DefaultMultiValueConverter<T extends Iterable<V>,
V> Used by by converters that convert header fields with a list of values.static class
static class
class
A converter that converts between date/time representatiosn andInstant
.static class
static class
static class
static class
ExtendsParameterizedValue.ParamValueConverterBase
to a realization ofConverter<ParameterizedValue<T>>
.static class
ParameterizedValue.ParamValueConverterBase<P extends ParameterizedValue<U>,
U> A base class for converters for parameterized values.class
Converts aHttpCookie
to the representation used in a “Set-Cookie” header.Modifier and TypeFieldDescriptionstatic final Converter<List<ParameterizedValue<String>>>
Converters.CHALLENGE_LIST
A converter for a list of challenges.static final Converter<ParameterizedValue<String>>
Converters.CREDENTIALS
Converters.DATE_TIME
A date/time converter.Converters.ETAG_LIST
Converters.LANGUAGE
A converter for a language or language range.Converters.LONG
An integer converter.static final Converter<MediaRange>
Converters.MEDIA_RANGE
A converter for a media type pair with parameters.Converters.MEDIA_TYPE
A converter for a media type pair with parameters.static final Converter<MediaBase.MediaTypePair>
Converters.MEDIA_TYPE_PAIR
A converter for the media “topLevelType/Subtype” pair.Converters.QUOTED_STRING
A converter that quotes strings.static final Converter<StringList>
Converters.QUOTED_STRING_LIST
static final Converter<CookieList>
Converters.SET_COOKIE
A converter for set cookies.Converters.STRING
A converter that quotes and unquoted strings as necessary.static final Converter<StringList>
Converters.STRING_LIST
Converters.UNQUOTE_ONLY
A noop converter, except that text is trimmed and unquoted when converted to a value.Converters.UNQUOTED_STRING
A noop converter, except that text is trimmed when converted to a value.Converters.URI_CONV
A converter for a URI.Modifier and TypeMethodDescriptionDefaultMultiValueConverter.valueConverter()
Deprecated.DefaultMultiValueConverter.valueConverter
(T value) MultiValueConverter.valueConverter()
Deprecated.MultiValueConverter.valueConverter
(T value) Returns the value converter.ModifierConstructorDescriptionCommentedValueConverter
(Converter<U> valueConverter) Creates a new converter with the given value converter.DefaultMultiValueConverter
(Supplier<T> containerSupplier, BiConsumer<T, V> valueAdder, Converter<V> valueConverter, String delimiters, boolean separateValues) Create a new converter.DefaultMultiValueConverter
(Supplier<T> containerSupplier, Converter<V> itemConverter) Create a new converter for a container that implementsCollection
, does not generate separate header fields and uses a comma as separator.DefaultMultiValueConverter
(Supplier<T> containerSupplier, Converter<V> valueConverter, String delimiters) Create a new converter for a container that implementsCollection
and does not generate separate header fields.ParameterizedValueConverter
(Converter<T> valueConverter) ParamValueConverterBase
(Converter<U> valueConverter, BiFunction<U, Map<String, String>, P> paramValueConstructor) Creates a new converter by extending the given value converter with functionality for handling the parameters.ParamValueConverterBase
(Converter<U> valueConverter, Converter<String> paramValueConverter, BiFunction<U, Map<String, String>, P> paramValueConstructor) Creates a new converter by extending the given value converter with functionality for handling the parameters.
MultiValueConverter.valueConverter(Iterable)
instead.