org.edg.security.voms.siblings
Class ControllerServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--org.edg.security.voms.siblings.ControllerServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ControllerServlet
extends javax.servlet.http.HttpServlet

The common part of the VOMS web-admin interface. It creates the header and footer, and dispatches the action according to the path name of the request. This class shall be configured as the default dispatcher for a subtree:

   <servlet>
     <servlet-name>voms-siblings</servlet-name>
     <servlet-class>org.edg.security.voms.siblings.ControllerServlet</servlet-class>
   </servlet>

   <servlet-mapping>
     <servlet-name>voms-siblings</servlet-name>
     <url-pattern>/siblings</url-pattern>
   </servlet-mapping>
   <servlet-mapping>
     <servlet-name>voms-siblings</servlet-name>
     <url-pattern>/siblings/*</url-pattern>
   </servlet-mapping>
 

See Also:
Serialized Form

Field Summary
protected  java.lang.String configDir
          Configuration directory.
static java.lang.String COPYRIGHT_BLURB
           
private static org.apache.log4j.Logger log
           
protected  java.lang.String[] vos
          Virtual Organizations.
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
ControllerServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse response)
          Respond to a GET request for the content produced by this servlet.
protected  java.lang.String getConfigDir()
           
protected  java.lang.String[] getSiblings()
           
 void init()
           
protected  void printMainTab(javax.servlet.http.HttpServletRequest req, java.io.PrintWriter w)
           
protected  void printMenuTab(javax.servlet.http.HttpServletRequest req, java.io.PrintWriter w)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, 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
 

Field Detail

log

private static org.apache.log4j.Logger log

COPYRIGHT_BLURB

public static final java.lang.String COPYRIGHT_BLURB
See Also:
Constant Field Values

configDir

protected java.lang.String configDir
Configuration directory. Initialized at load time.


vos

protected java.lang.String[] vos
Virtual Organizations. Initialized at every request.

Constructor Detail

ControllerServlet

public ControllerServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Overrides:
init in class javax.servlet.GenericServlet
javax.servlet.ServletException

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse response)
           throws java.io.IOException,
                  javax.servlet.ServletException
Respond to a GET request for the content produced by this servlet.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
req - The servlet request we are processing
response - The servlet response we are producing
Throws:
java.io.IOException - if an input/output error occurs
javax.servlet.ServletException - if a servlet error occurs

printMenuTab

protected void printMenuTab(javax.servlet.http.HttpServletRequest req,
                            java.io.PrintWriter w)

printMainTab

protected void printMainTab(javax.servlet.http.HttpServletRequest req,
                            java.io.PrintWriter w)

getConfigDir

protected java.lang.String getConfigDir()

getSiblings

protected java.lang.String[] getSiblings()