Release 5.0.0.14
Date: Mar 23, 2013
Juno 5.0.0.14 is a major update.
The biggest change is that the RestSerializer, RestParser, RestSerializerGroup, and RestParserGroup classes have
been eliminated entirely.
Instead, the existing Serializer,
Parser, SerializerGroup, and ParserGroup classes of the
core API have been augmented to replace them.
Adoptions will be required if you have previously used these classes.
Core API changes
-
New
org.apache.juneau.serializerpackage.- Entirely reworked class hierarchy to make it easier to define new serializers.
- New WriterSerializer base class for defining character-based serializers.
- New OutputStreamSerializer base class for defining byte-based serializers.
- Updated
SerializerGroupclass with full support for RFC2616Accept-Contentheaders. - Improved cloning support on serializers and serializer groups.
-
New
org.apache.juneau.parserpackage.- Entirely reworked class hierarchy to make it easier to define new parsers.
- New ReaderParser base class for defining character-based parsers.
- New InputStreamParser base class for defining byte-based parsers.
- Improved cloning support on parsers and parser groups.
-
New
org.apache.juneau.swappackage.- Cleaner class structure.
- Improved
BeanFilterclass for defining property filters on beans. - Improved
PojoQueryclass for defining filters on objects (previously calledObjectFilter).
-
New
org.apache.juneau.encoderspackage.- Defines API for Encoders for enabling compression in REST servlets and clients.
- Previously, gzip compression was enabled by default. This new API allows you to plug in your own compression algorithms.
- New GzipEncoder class for enabling gzip compression.
- New
EncoderGroupclass for managing multiple encoders and finding them based on RFC2616Accept-Encodingheader values.
-
New
org.apache.juneau.plaintextpackage.- New PlainTextSerializer and PlainTextParser classes for serializing/parsing text/plain content.
-
New
org.apache.juneau.jsopackage.- New
JsoSerializerclass for serializingapplication/x-java-serialized-objectcontent.
- New
-
New
org.apache.juneau.soappackage.- New SoapXmlSerializer class for serializing
text/xml+soapcontent.
- New SoapXmlSerializer class for serializing
-
Improved cloning support on the BeanContext class.
- Better caching. Improved caching performance.
-
JsonMapandJsonListchanged toObjectMapandObjectListto better reflect that they're not limited to just JSON support. -
Renamed
PojoSwaptoPojoQueryto not confuse it with the new Filter API.
REST server API changes
- Eliminated
org.apache.juneau.rest.serializersandorg.apache.juneau.rest.parserspackages.- All existing REST serializers and parsers merged into the core API.
REST client API changes
-
Simplified RestClient API.
- You can now only specify a single serializer or parser per client. This significantly simplifies the code.
- Support for Encoders.
-
Eliminated
RestCmdLine(since it's essentially redundant with CURL).
Share feedback or follow-up questions for this page directly through GitHub.