Skip to main content

Release 5.1.0.10

Date: Dec 23, 2014

Juno 5.1.0.10 is a moderate update.

Core

Server

  • Fixed major issue that prevented parsing URL-Encoded form posts into POJOs. Calling HttpServlet.getParameter(String) was forcing the underlying servlet code to process the HTTP body itself, preventing the UrlEncodingSerializer class from being able to parse the content. Updated code no longer inadvertantly calls this method.

  • New RestRequest.getQueryParameter(String), RestRequest.hasQueryParameter(String), and RestRequest.hasAnyQueryParameters(String[]) methods that only look for parameters in the URL query string to prevent loading and parsing of URL-Encoded form posts.

  • New @QParam and @HasQParam annotations for accessing query parameters from the URL query string.

  • &plainText parameter can now specify a false value.

  • Removed properties parameters from RestServlet.onPreCall(RestRequest) and RestServlet.onPostCall(RestRequest,RestResponse) methods since the properties are already accessible through RestRequest.getProperties().

  • Added UonSerializer and UonParser to serializer and parser lists on BasicRestServlet and RestServletJenaDefault.

Client

  • Moved to Apache HttpClient 4.3 to match Jazz 6.0.

  • Renamed RestResponseEntity to RestRequestEntity.

  • Improved performance on URL-Encoded form posts by serializing directly to output stream instead of serialized to string first.

  • New methods on RestClient class that makes it easier to associate serializer and parser attributes with registered serializer and parser:

    • RestClient.setProperty(String,Object)
    • RestClient.setProperties(ObjectMap)
    • RestClient.addNotBeanClasses(Class[])
    • RestClient.addTransforms(Class[])
    • RestClient.addImplClass(Class,Class)
  • Renamed RestClient.shutdown() to RestClient.close() to mirror change in Apache API.

Samples

  • New CodeFormatterResource for quickly formatting Java and XML code samples in Javadocs.

  • New UrlEncodedFormResource for showing how to work with URL-Encoded form posts.