Class XmlCinnamonServlet

  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.spicefactory.cinnamon.web.AbstractCinnamonServlet
              extended by org.spicefactory.cinnamon.web.XmlCinnamonServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class XmlCinnamonServlet
extends AbstractCinnamonServlet

Cinnamon Servlet implemenation for processing HTTP based AMF3 requests based on Cinnamon's custom XML configuration format.

The default location for the configuration file is /WEB-INF/cinnamon-config.xml but it may be overwritten with the configLocation servlet init-param.

The Servlet is just a very thin layer on top of the Cinnamon framework, so most parts of the framework (except for the web package) do not depend on the Servlet API or HTTP protocol. This decoupling may be useful for testing or unusual deployment scenarios.

Jens Halm
See Also:
Serialized Form

Constructor Summary
Method Summary
protected  ConfigurationBuilder createConfigurationBuilder(ServletConfig config)
          Creates the ConfigurationBuilder implementation this Servlet should use.
Methods inherited from class org.spicefactory.cinnamon.web.AbstractCinnamonServlet
doPost, init
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public XmlCinnamonServlet()
Method Detail


protected ConfigurationBuilder createConfigurationBuilder(ServletConfig config)
Description copied from class: AbstractCinnamonServlet
Creates the ConfigurationBuilder implementation this Servlet should use.

There are two builtin implementation: SpringConfigurationBuilder which uses a Spring WebApplicationContext for configuration and XmlConfigurationParser which processes Cinnamon's own custom XML configuration format.

Specified by:
createConfigurationBuilder in class AbstractCinnamonServlet
config - the ServletConfig for this servlet
the ConfigurationBuilder implementation this Servlet should use