ccc.web
Class ContentServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by ccc.web.AbstractCCCServlet
              extended by ccc.web.ContentServlet
All Implemented Interfaces:
ServiceLocator, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ContentServlet
extends AbstractCCCServlet

The ContentServlet class serves CCC content.

Author:
Civic Computing Ltd.
See Also:
Serialized Form

Constructor Summary
ContentServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          Get the content for the specified relative URI.
protected  void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          
 void init()
          
 
Methods inherited from class ccc.web.AbstractCCCServlet
dispatchError, dispatchNotFound, dispatchRedirect, getActions, getAliases, getComments, getException, getFiles, getFolders, getGroups, getMailer, getPages, getResources, getSearch, getSecurity, getTemplates, getUsers
 
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

ContentServlet

public ContentServlet()
Method Detail

init

public void init()

Overrides:
init in class javax.servlet.GenericServlet

doGet

protected void doGet(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse resp)
              throws java.io.IOException
Get the content for the specified relative URI. This method reads the value from HttpServletRequest.getPathInfo() and maps that to a corresponding resource in CCC.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
java.io.IOException

doPost

protected void doPost(javax.servlet.http.HttpServletRequest req,
                      javax.servlet.http.HttpServletResponse resp)
               throws java.io.IOException

Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
java.io.IOException


Copyright © 2010. All Rights Reserved.