Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 201 lines (154 sloc) 8.09 KB
JPublish 4 change log:
- RPAModule; added support for declaring the response content-type when a route is defined, example:
<route path="echo/{echo}" action="Echo.bsh" content-type="json"/>
see: the 'content-type' attribute above and the related web app example in modules/restpathactions/web
- RESTPATHACTIONS demo cleanup and module improvements, see RestPathActions module's own
changelog for details.
- added a module to support REST-like Path Actions. A demo web app is also provided.
- added #haml/Sass template rendering
- added a PathAction method for getting access to the Action executed on path matching
- upgraded the JRuby support
- see the previous svn commit comments for more details
- refactored the servlet response for static resources.
- honors the "If-Modified-Since" request header and answers with 304-Not modified, if the static
resource was not changed.
-added support for annotated REST resources via a JPublish Wink module; JPWink
-Apache Wink is a full implementation of the JAX-RS 1.0 specification, providing a rich set of
features and expansions that extend and supplement the JAX-RS specification.
- added support for Restlet resource and a new configuration syntax (check the JPRestlet module
changelog). Upgraded Restlet to 1.1.9
- added Restlet Resource examples for GET, POST, etc
- added support for the Content-Length response attribute
- rollback :(
added generic RSS support. The demo provided (svn) is using a simple Beanshell action as a
feed manager and the ROME framework for publishing the feed. RSS Domain modeling is in progress and a
new JPublish News Repository will follow shortly.
upgraded to Ehcache 1.6.0 (
re-factored the JPublish cache support for obtaining cache statistics (if supported)
upgraded JPublish RESTLET support to Noelios-Restlet-Engine/1.1.5
the response Content-Type will be calculated just before rendering the result and not before executing the
actions. This will allow user modules to manipulate the response content type.
JPRestletModule can now be mapped on a list of paths.
<module classname="org.jpublish.module.restlet.JPRestletModule">
With a configuration like the one above, JPRestletModule will respond for any path starting with
/rest/ or /restful/. This implementation is backward compliant.
- supporting the request parameter 'format' (or any user defined parameter name) is now optional; disabled by default.
To enable this support, add the following line to your jpublish.xml config file, excerpt:
If the above parameter is specified, the JPublish servlet will resolve the response ContentType based on
the request.getParameter( "format") value or will fall back on checking the requested file extension, as usual.
- added few more default mime types
- introduced the support for the "format" request parameter. The response.ContentType will
follow the ?format=<xml|html|json|etc>, if the "format" parameter exists.
- JPublishDWR Actions will receive now all of the traditional JPublish objects in the context:
however, we are also cleaning the context so they are not accidentally sent to the remote caller.
- minor JPublishDWR revision number increased.
- added a simple example of how to invoke a JPublish server side Action from your Javascript
client code.
-added code to allow profiling on DWR calls.
-our JPublishDWR integration is now allowing DWR to graciously falling back on jpublish's
own control for MIME types.
For example, to control the dwr/interface/... response, add the following to your jpublish.xml:
<mime-mapping ext="js" mimetype="text/javascript"/>
- removed the cache default configurations from the JPublish package. They may conflict with the
user ones. Copy the docs/cache/ehcache.xml and/or the docs/cache/whirlycache.xml to your WEB-INF/classes
folder in case you don't have a custom cache setup already.
- added the ability to use locale when parsing or formatting using DateUtilities
- integrated profiling via the Atlassian profiling library
To enable the JPublish profiler, simply add the following line to the jpublish.xml config file:
You can also set the minimum time reported in the trace when profiling. You probably only want to
profile methods that take more than 50ms, which is done like so:
<profiling MIN_TIME="50">true</profiling>
- the JPublishContext received by the Actions from the JPublishCreator contains now more useful
objects. They are as follows:
- added functionality to allow DWR to invoke JPublish Actions. Check the simpleDWR
web demo for a simple but complete example.
- the current JPublishContext instance is now added to every HttpServletRequest.
You can get it like this: request.getAttribute( JPublishServlet.JPUBLISH_CONTEXT);
- the SiteContext is now available in the ServletContext:
- added the public method getSiteContext() to the JPublishServlet.
- The ORM support Wiki page was updated with details about the JPublish-Cayenne
- Cayenne support is now available to any JPublish application
- added new rendering support through the StringTemplateViewRenderer. For
more details visit the JPublish Wiki. We believe that ST will become the
default template language for JPublish.
- wrapped the RepositoryWrapper in a Map, so modern template engines will
have an easy job identifying the repository content resources as simple keys.
- small optimization
- preparing to branch the SVN
- added a new DWR demo application. A simple and clean code showing you how one can
monitor a file by using reverse AJAX through the DWR module.
- small optimizations and misc examples
- WEB-INF/lib folder is not anymore required when JPublish is instantiated
from an application different than a standard Servlet container.
- JPublish understands now how Jetty plays with the Continuations ;)
- latest PostEdenLib is now available in the lib folder
- added the latest bsh version
- DWR library is updated now and Reverse AJAX finally works with no problems.
- JP4+DWR is running successfully with the following servers: Jetty 5/6.1.3,
Tomcat 5/6.0.13 and JBoss 4.0.2/4.0.5GA
- improving the JPublishComponent API in order to support
the need for rendering a Text parameter or a View from a given path. Useful if
you need to implement more complex Components but not as complex as a ViewRenderer.
Version 4.0 (2007.05.14)
- Initial release