|
|||||||||
| 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
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 |
| Constructor Summary | |
JamesServlet()
|
|
| Method Summary | |
java.lang.String |
getAddress(javax.servlet.http.HttpServletRequest req)
Extract hostname from request, get address and determine the proxies between it. |
java.lang.String |
getAuthorization(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Try to get the default authorisation |
java.lang.String |
getAuthorization(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String server,
java.lang.String level)
Authenticates a user, If the user cannot be authenticated a login-popup will appear |
java.lang.String |
getCookie(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
This method retrieves the users' MMBase cookie name & value as 'name/value'. |
protected java.util.Hashtable |
getInitParameters()
Retrieves all initialization parameters. |
protected java.lang.Object |
getModule(java.lang.String name)
Retrieves a module. |
java.lang.String |
getParam(javax.servlet.http.HttpServletRequest req,
int num)
Get the parameter specified. |
java.util.Vector |
getParamVector(javax.servlet.http.HttpServletRequest req)
Get the Vector containing all parameters |
protected java.util.Hashtable |
getProperties(java.lang.String name)
Gets properties. |
protected java.lang.String |
getProperty(java.lang.String name,
java.lang.String var)
Gets a property out of the Environment. |
void |
init()
Initializes the servlet. |
| Methods inherited from class org.mmbase.servlet.MMBaseServlet |
associateMapping, decRefCount, destroy, doGet, getAssociations, 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 javax.servlet.ServletException
init in class MMBaseServletjavax.servlet.ServletExceptionprotected final java.lang.Object getModule(java.lang.String name)
name - the name of the module to retrieve
Module, or null if it doesn't exist.protected final java.util.Hashtable getInitParameters()
protected final java.util.Hashtable getProperties(java.lang.String name)
protected final java.lang.String getProperty(java.lang.String name,
java.lang.String var)
public java.lang.String getAuthorization(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.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 java.lang.String getAuthorization(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String server,
java.lang.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 java.lang.String getCookie(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
req - The HttpServletRequest.res - The HttpServletResponse.
public java.lang.String getParam(javax.servlet.http.HttpServletRequest req,
int num)
req - The HttpServletRequest.public java.util.Vector getParamVector(javax.servlet.http.HttpServletRequest req)
req - The HttpServletRequest.public java.lang.String getAddress(javax.servlet.http.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 | ||||||||