|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.mmbase.servlet.MMBaseServlet
org.mmbase.servlet.JamesServlet
public class JamesServlet
JamesServlet is a adaptor class. It is used to extend the basic Servlet to provide services not found in suns Servlet API.
| Field Summary | |
|---|---|
protected static Logger |
pageLog
|
| Fields inherited from class org.mmbase.servlet.MMBaseServlet |
|---|
mmbase, retryAfter |
| Constructor Summary | |
|---|---|
JamesServlet()
|
|
| Method Summary | |
|---|---|
String |
getAddress(HttpServletRequest req)
Extract hostname from request, get address and determine the proxies between it. |
String |
getAuthorization(HttpServletRequest req,
HttpServletResponse res)
Try to get the default authorisation |
String |
getAuthorization(HttpServletRequest req,
HttpServletResponse res,
String server,
String level)
Authenticates a user, If the user cannot be authenticated a login-popup will appear |
String |
getCookie(HttpServletRequest req,
HttpServletResponse res)
This method retrieves the users' MMBase cookie name & value as 'name/value'. |
protected Hashtable |
getInitParameters()
Retrieves all initialization parameters. |
protected Object |
getModule(String name)
Retrieves a module. |
String |
getParam(HttpServletRequest req,
int num)
Get the parameter specified. |
Vector |
getParamVector(HttpServletRequest req)
Get the Vector containing all parameters |
protected Hashtable |
getProperties(String name)
Gets properties. |
protected String |
getProperty(String name,
String var)
Gets a property out of the Environment. |
void |
init()
Initializes the servlet. |
| Methods inherited from class org.mmbase.servlet.MMBaseServlet |
|---|
associateMapping, checkInited, decRefCount, destroy, doGet, getAssociations, getBasePath, getMMBase, getRequestURL, getServletByAssociation, getServletByMapping, getServletInfo, getServletMappings, getServletMappingsByAssociation, incRefCount, service, setInitException, setMMBase |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Logger pageLog
| Constructor Detail |
|---|
public JamesServlet()
| Method Detail |
|---|
public void init()
throws ServletException
init in class MMBaseServletServletExceptionprotected final Object getModule(String name)
name - the name of the module to retrieve
Module, or null if it doesn't exist.protected final Hashtable getInitParameters()
protected final Hashtable getProperties(String name)
protected final String getProperty(String name,
String var)
public String getAuthorization(HttpServletRequest req,
HttpServletResponse res)
throws AuthorizationException,
NotLoggedInException
req - The HttpServletRequest.res - The HttpServletResponse.
AuthorizationException - if the authorization fails.
NotLoggedInException - if the user hasn't logged in yet.
public String getAuthorization(HttpServletRequest req,
HttpServletResponse res,
String server,
String level)
throws AuthorizationException,
NotLoggedInException
req - The HttpServletRequest.res - The HttpServletResponse.server - server-account. (for exameple 'film' or 'www')level - loginlevel. (for example 'Basic' or 'MD5')
AuthorizationException - if the authorization fails.
NotLoggedInException - if the user hasn't logged in yet.
public String getCookie(HttpServletRequest req,
HttpServletResponse res)
req - The HttpServletRequest.res - The HttpServletResponse.
public String getParam(HttpServletRequest req,
int num)
req - The HttpServletRequest.public Vector getParamVector(HttpServletRequest req)
req - The HttpServletRequest.public String getAddress(HttpServletRequest req)
req - The HTTP request, which contains hostname as ipaddress
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||