com.groiss.servlet
Class Dispatcher

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.groiss.servlet.Dispatcher
All Implemented Interfaces:
Public, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class Dispatcher
extends javax.servlet.http.HttpServlet
implements Public

This servlet calls methods via reflection.

See Also:
Serialized Form

Field Summary
static com.groiss.servlet.impl.OldRequestHandler oldHandler
           
 
Constructor Summary
Dispatcher()
           
 
Method Summary
static java.util.Locale getBrowserLocale(javax.servlet.http.HttpServletRequest req)
          Read the locale from the browser
static java.lang.String getContextPath()
           
static java.lang.reflect.Method getMethod(java.lang.String m)
           
static long getRequestCount()
           
 void init()
           
static boolean needsAuth(java.lang.Class c, java.lang.String path)
           
static void reloadClasses()
           
 void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
static void setContextPath(java.lang.String ctx)
           
 void setPathInfo(java.lang.String pi)
           
 HTMLPage test(javax.servlet.http.HttpServletRequest req)
           
 void test2(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 
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, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oldHandler

public static com.groiss.servlet.impl.OldRequestHandler oldHandler
Constructor Detail

Dispatcher

public Dispatcher()
Method Detail

init

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

setPathInfo

public void setPathInfo(java.lang.String pi)

setContextPath

public static void setContextPath(java.lang.String ctx)

service

public void service(javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse res)
             throws java.io.UnsupportedEncodingException
Overrides:
service in class javax.servlet.http.HttpServlet
Throws:
java.io.UnsupportedEncodingException

needsAuth

public static boolean needsAuth(java.lang.Class c,
                                java.lang.String path)

getRequestCount

public static long getRequestCount()

getMethod

public static java.lang.reflect.Method getMethod(java.lang.String m)
                                          throws java.lang.Exception
Throws:
java.lang.Exception

reloadClasses

public static void reloadClasses()

getBrowserLocale

public static java.util.Locale getBrowserLocale(javax.servlet.http.HttpServletRequest req)
Read the locale from the browser


getContextPath

public static java.lang.String getContextPath()

test

public HTMLPage test(javax.servlet.http.HttpServletRequest req)
              throws java.lang.Exception
Throws:
java.lang.Exception

test2

public void test2(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
           throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2001-2006 Groiss Informatics GmbH. All Rights Reserved.