{title:'Encoders', created:'9.0.0'}
The {@link oaj.encoders} package defines an API for handling encoding-based matching
of
The {@link oaj.encoders.EncoderSet} class represents the set of {@link oaj.encoders.Encoder encoders} keyed by codings.
It maintains a set of encoders and the codings that they can handle.
The {@link oaj.encoders.EncoderSet#getEncoderMatch(String) getEncoderMatch(String)} and {@link oaj.encoders.EncoderSet#getEncoder(String)}
methods are then used to find appropriate encoders for specific
Encoders are tried in the order they appear in the set. The {@link oaj.encoders.EncoderSet.Builder#add(Class...)} / {@link oaj.encoders.EncoderSet.Builder#add(Encoder...)} methods prepend the values to the list to allow them the opportunity to override encoders already in the list.
For example, calling builder.add(E1.
will result in the order
|
The {@link oaj.encoders.Encoder} interface is used for enabling decompression on requests and compression on responses, such as support for GZIP compression. It is used to wrap input and output streams within compression/decompression streams.
Encoders are registered with