com.facetmap.example.movies
Class MovieFacetmapServlet

java.lang.Object
  extended by HttpServlet
      extended by com.facetmap.servlet.FacetmapServlet
          extended by com.facetmap.example.movies.MovieFacetmapServlet

public class MovieFacetmapServlet
extends FacetmapServlet

Extends FacetmapServlet so that it serves the movie data in this package.


Field Summary
 
Fields inherited from class com.facetmap.servlet.FacetmapServlet
configException, configProps, configured, DEFAULT_PROPERTIES_FILENAME, facetmap, logger, processor, propsPersister, viewPersister
 
Constructor Summary
MovieFacetmapServlet()
           
 
Method Summary
 Facetmap createFacetmap()
          Usually a rewrite of FacetmapServlet.createFacetmap() is all that's required to install your own Facetmap classes into the servlet.
 
Methods inherited from class com.facetmap.servlet.FacetmapServlet
doInit, getConfigurationException, getFacetmap, getProcessor, getProperties, getViewPersister, init, isConfigured, readProps, reconfigure, setProcessor, writeProps
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MovieFacetmapServlet

public MovieFacetmapServlet()
Method Detail

createFacetmap

public Facetmap createFacetmap()
                        throws DataException,
                               InternalException
Usually a rewrite of FacetmapServlet.createFacetmap() is all that's required to install your own Facetmap classes into the servlet. The servlet state (Facetmap configuration and web application context) are available to this method. In our case we read one special init parameter (facetmapClass) from the context, to determine whether to implement Facetmap as SimpleFacetmap or SqlFacetmap.

Overrides:
createFacetmap in class FacetmapServlet
Throws:
DataException
InternalException