public class JamesServlet extends MMBaseServlet
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
pageLog |
mmbase, retryAfter| Constructor and Description |
|---|
JamesServlet() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAddress(javax.servlet.http.HttpServletRequest req)
Extract hostname from request, get address and determine the proxies between it.
|
String |
getAuthorization(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Try to get the default authorisation
|
String |
getAuthorization(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String server,
String level)
Authenticates a user, If the user cannot be authenticated a login-popup will appear
|
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 Hashtable |
getInitParameters()
Retrieves all initialization parameters.
|
protected Object |
getModule(String name)
Retrieves a module.
|
String |
getParam(javax.servlet.http.HttpServletRequest req,
int num)
Get the parameter specified.
|
Vector |
getParamVector(javax.servlet.http.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.
|
associateMapping, checkInited, decRefCount, destroy, doGet, getAssociations, getBasePath, getMMBase, getRequestURL, getServletByAssociation, getServletByMapping, getServletInfo, getServletMappings, getServletMappingsByAssociation, incRefCount, service, setInitException, setMMBasedoDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceprotected static Logger pageLog
public void init()
throws javax.servlet.ServletException
init in class MMBaseServletjavax.servlet.ServletExceptionprotected final Object getModule(String name)
name - the name of the module to retrieveModule, or null if it doesn't exist.protected final Hashtable getInitParameters()
protected final String getProperty(String name, String var)
public 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 String getAuthorization(javax.servlet.http.HttpServletRequest req, javax.servlet.http.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(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
req - The HttpServletRequest.res - The HttpServletResponse.public String getParam(javax.servlet.http.HttpServletRequest req, int num)
req - The HttpServletRequest.public Vector getParamVector(javax.servlet.http.HttpServletRequest req)
req - The HttpServletRequest.public String getAddress(javax.servlet.http.HttpServletRequest req)
req - The HTTP request, which contains hostname as ipaddressMMBase 1.9-SNAPSHOT - ${javadoctimestamp}