Release 5.0.0.33
Date: Oct 20, 2013
Juno 5.0.0.33 is a moderate update.
-
Removed generic parameter from WriterSerializer class.
- Many of the examples in the documentation were written as follows, which resulted in "unchecked" compile warnings:
WriterSerializer s = new JsonSerializer();
These compile warnings will now go away.
- Many of the examples in the documentation were written as follows, which resulted in "unchecked" compile warnings:
-
New settings in BeanContext. These can be applied to all serializers/parsers.
BEAN_ignoreInvocationExceptionsOnGettersBEAN_ignoreInvocationExceptionsOnSettersBEAN_notBeanPackages_addBEAN_notBeanPackages_remove
-
Eliminated
addNotBeanClassPatterns(String...)
methods throughout API since these are now controlled byBEAN_notBeanPackages_add/BEAN_notBeanPackages_removeproperties. -
New settings in
RestServletProperties
.RestServletProperties.REST_trimTrailingUriSlashes
Also removedRestRequest.getRequestURI(boolean trimTrailingSlashes)
method which is now redundant with this property.RestServletProperties.REST_pathInfoBlankForNull
Also removedRestRequest.getPathInfo(boolean returnBlankForNull)
method which is now redundant with this property.
-
New JSON-Schema JsonSchemaMap class for supporting linked schemas.
-
Serializers will no longer throw an exception when
maxDepth
setting is reached, and will instead simply ignore content below the specified depth. While the old behavior was as-designed, the new behavior is more in-line with expected behavior. -
Added support for HTTP header
X-Response-Headers
toRestServlet. Allows you to specify one or more headers that should be returned on the response from the servlet. For example, to get a page to automatically refresh every 1 second, you can append the following to a URL:?x-response-headers={Refresh=1}
-
Removed
HtmlDocSerializerContext.HTML_REFRESH
setting that added a Refresh meta tag to HTML documents, since this can now be controlled throughX-Response-Headers
. -
Small improvements to samples.
PhotosResource
now includes a default entry.