org.sakaiproject.vm
Class ComponentServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.sakaiproject.vm.ComponentServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig
Direct Known Subclasses:
VmServlet

public abstract class ComponentServlet
extends HttpServlet

ComponentServlet does some setup and provides some support for (mostly legacy) Sakai servlets and tools.

Version:
$Revision: 632 $
Author:
University of Michigan, Sakai Software Development Team
See Also:
Serialized Form

Field Summary
protected static String ATTR_PARAMS
          This request's parsed parameters
 
Constructor Summary
ComponentServlet()
           
 
Method Summary
protected  void sendParentRedirect(HttpServletResponse resp, String url)
          Send a redirect so our parent ends up at the url, via javascript.
protected  void service(HttpServletRequest req, HttpServletResponse resp)
          Override service, adding the setup for legacy.
protected  void setNoCacheHeaders(HttpServletResponse resp)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_PARAMS

protected static final String ATTR_PARAMS
This request's parsed parameters

See Also:
Constant Field Values
Constructor Detail

ComponentServlet

public ComponentServlet()
Method Detail

service

protected void service(HttpServletRequest req,
                       HttpServletResponse resp)
                throws ServletException,
                       IOException
Override service, adding the setup for legacy.

Throws:
ServletException
IOException

sendParentRedirect

protected void sendParentRedirect(HttpServletResponse resp,
                                  String url)
Send a redirect so our parent ends up at the url, via javascript.

Parameters:
url - The redirect url

setNoCacheHeaders

protected void setNoCacheHeaders(HttpServletResponse resp)