it.unimi.di.mg4j.query
Class GenericItem

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.velocity.tools.view.servlet.VelocityViewServlet
              extended by it.unimi.di.mg4j.query.GenericItem
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class GenericItem
extends VelocityViewServlet

An generic item, displaying all document fields.

This kind of QueryServlet item will display each field of a document inside a FIELDSET element. It is mainly useful for debugging purposes.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.velocity.tools.view.servlet.VelocityViewServlet
CONTENT_TYPE, DEFAULT_CONTENT_TYPE, DEFAULT_OUTPUT_ENCODING, DEFAULT_PROPERTIES_PATH, DEFAULT_TOOLBOX_PATH, DEFAULT_TOOLS_PROPERTIES, INIT_PROPS_KEY, SERVLET_CONTEXT_KEY, TOOLBOX_KEY, toolboxManager
 
Constructor Summary
GenericItem()
           
 
Method Summary
 Template handleRequest(HttpServletRequest request, HttpServletResponse response, Context context)
           
protected  ExtendedProperties loadConfiguration(ServletConfig config)
           
 
Methods inherited from class org.apache.velocity.tools.view.servlet.VelocityViewServlet
createContext, doGet, doPost, doRequest, error, findInitParameter, getResponseWriter, getTemplate, getTemplate, getVelocityEngine, getVelocityProperty, init, initToolbox, initVelocity, mergeTemplate, performMerge, requestCleanup, setContentType, setVelocityEngine
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, 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

GenericItem

public GenericItem()
Method Detail

loadConfiguration

protected ExtendedProperties loadConfiguration(ServletConfig config)
                                        throws FileNotFoundException,
                                               IOException
Overrides:
loadConfiguration in class VelocityViewServlet
Throws:
FileNotFoundException
IOException

handleRequest

public Template handleRequest(HttpServletRequest request,
                              HttpServletResponse response,
                              Context context)
                       throws Exception
Overrides:
handleRequest in class VelocityViewServlet
Throws:
Exception