Uses of Interface
org.jdrupes.httpcodec.types.Converter
Package | Description |
---|---|
org.jdrupes.httpcodec.protocols.http |
Classes required for handling the HTTP protocol.
|
org.jdrupes.httpcodec.types |
Special types related to HTTP.
|
-
Uses of Converter in org.jdrupes.httpcodec.protocols.http
Methods in org.jdrupes.httpcodec.protocols.http that return Converter Modifier and Type Method Description Converter<T>
HttpField. 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.Methods in org.jdrupes.httpcodec.protocols.http with parameters of type Converter Modifier and Type Method Description <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.<T> Optional<HttpField<T>>
HttpMessageHeader. findField(String name, Converter<T> converter)
Returns the header field with the given type if it exists.<T> Optional<T>
HttpMessageHeader. findValue(String name, Converter<T> converter)
Convenience method for getting the value of a header field.Constructors in org.jdrupes.httpcodec.protocols.http with parameters of type Converter Constructor Description HttpField(String headerLine, Converter<T> converter)
Creates a new representation of a header field from its textual representation.HttpField(String name, T value, Converter<T> converter)
Creates a new representation of a header field with the given value and converter. -
Uses of Converter in org.jdrupes.httpcodec.types
Subinterfaces of Converter in org.jdrupes.httpcodec.types Modifier and Type Interface Description interface
MultiValueConverter<T extends Iterable<V>,V>
Implemented by converters that convert header fields with a list of values.Classes in org.jdrupes.httpcodec.types that implement Converter Modifier and Type Class Description static class
CommentedValue.CommentedValueConverter<U>
class
DefaultMultiValueConverter<T extends Iterable<V>,V>
Used by by converters that convert header fields with a list of values.static class
Directive.DirectiveConverter
static class
Etag.EtagConverter
class
InstantConverter
A converter that converts between date/time representatiosn andInstant
.static class
MediaBase.MediaTypePairConverter
static class
MediaRange.MediaRangeConverter
static class
MediaType.MediaTypeConverter
static class
ParameterizedValue.ParameterizedValueConverter<T>
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.Fields in org.jdrupes.httpcodec.types declared as Converter Modifier and Type Field Description static Converter<List<ParameterizedValue<String>>>
Converters. CHALLENGE_LIST
A converter for a list of challenges.static Converter<ParameterizedValue<String>>
Converters. CREDENTIALS
static Converter<Instant>
Converters. DATE_TIME
A date/time converter.static Converter<List<Etag>>
Converters. ETAG_LIST
static Converter<Locale>
Converters. LANGUAGE
A converter for a language or language range.static Converter<Long>
Converters. LONG
An integer converter.static Converter<MediaRange>
Converters. MEDIA_RANGE
A converter for a media type pair with parameters.static Converter<MediaType>
Converters. MEDIA_TYPE
A converter for a media type pair with parameters.static Converter<MediaBase.MediaTypePair>
Converters. MEDIA_TYPE_PAIR
A converter for the media “topLevelType/Subtype” pair.static Converter<String>
Converters. QUOTED_STRING
A converter that quotes strings.static Converter<StringList>
Converters. QUOTED_STRING_LIST
static Converter<CookieList>
Converters. SET_COOKIE
A converter for set cookies.static Converter<String>
Converters. STRING
A converter that quotes and unquoted strings as necessary.static Converter<StringList>
Converters. STRING_LIST
static Converter<String>
Converters. UNQUOTE_ONLY
A noop converter, except that text is trimmed and unquoted when converted to a value.static Converter<String>
Converters. UNQUOTED_STRING
A noop converter, except that text is trimmed when converted to a value.static Converter<URI>
Converters. URI_CONV
A converter for a URI.Methods in org.jdrupes.httpcodec.types that return Converter Modifier and Type Method Description Converter<V>
DefaultMultiValueConverter. valueConverter()
Converter<V>
MultiValueConverter. valueConverter()
Returns the value converter.Constructors in org.jdrupes.httpcodec.types with parameters of type Converter Constructor Description CommentedValueConverter(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.