public class CMSGateway
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
AUTHMGR_PARAM |
static java.lang.String |
CERT_ATTR |
protected static boolean |
mEnableFileServing |
protected static CMSFileLoader |
mFileLoader |
protected static ILogger |
mLogger |
static java.lang.String |
PROP_CMSGATEWAY |
Constructor and Description |
---|
CMSGateway() |
Modifier and Type | Method and Description |
---|---|
static AuthToken |
checkAuthManager(javax.servlet.http.HttpServletRequest httpReq,
IArgBlock httpParams,
java.security.cert.X509Certificate cert,
java.lang.String authMgrName) |
static void |
disableAdminEnroll() |
static AuthCredentials |
getAuthCreds(IAuthManager authMgr,
IArgBlock argBlock,
java.security.cert.X509Certificate clientCert)
construct a authentication credentials to pass into authentication
manager.
|
static boolean |
getEnableAdminEnroll() |
static java.io.File |
getLangFile(javax.servlet.http.HttpServletRequest req,
java.io.File realpathFile,
java.util.Locale[] locale) |
static java.util.Locale |
getLocale(java.lang.String lang) |
protected static CMSTemplate |
getTemplate(java.lang.String templateName,
javax.servlet.http.HttpServletRequest httpReq,
javax.servlet.ServletConfig servletConfig,
CMSFileLoader fileLoader,
java.util.Locale[] locale)
get a template
|
static boolean |
modifiedSince(javax.servlet.http.HttpServletRequest req,
long lastModified)
Get the If-Modified-Since header and compare it to the millisecond
epoch value passed in.
|
static void |
renderTemplate(java.lang.String templateName,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
javax.servlet.ServletConfig servletConfig,
CMSFileLoader fileLoader) |
static void |
setEnableAdminEnroll(boolean enableAdminEnroll) |
static java.util.Hashtable |
toHashtable(javax.servlet.http.HttpServletRequest req) |
public static final java.lang.String PROP_CMSGATEWAY
public static final java.lang.String CERT_ATTR
protected static CMSFileLoader mFileLoader
protected static boolean mEnableFileServing
protected static ILogger mLogger
protected static final java.lang.String AUTHMGR_PARAM
public static java.util.Hashtable toHashtable(javax.servlet.http.HttpServletRequest req)
public static boolean getEnableAdminEnroll()
public static void setEnableAdminEnroll(boolean enableAdminEnroll) throws EBaseException
EBaseException
public static void disableAdminEnroll() throws EBaseException
EBaseException
public static AuthCredentials getAuthCreds(IAuthManager authMgr, IArgBlock argBlock, java.security.cert.X509Certificate clientCert) throws EBaseException
EBaseException
public static AuthToken checkAuthManager(javax.servlet.http.HttpServletRequest httpReq, IArgBlock httpParams, java.security.cert.X509Certificate cert, java.lang.String authMgrName) throws EBaseException
EBaseException
public static void renderTemplate(java.lang.String templateName, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.ServletConfig servletConfig, CMSFileLoader fileLoader) throws EBaseException, java.io.IOException
EBaseException
java.io.IOException
public static java.util.Locale getLocale(java.lang.String lang)
public static java.io.File getLangFile(javax.servlet.http.HttpServletRequest req, java.io.File realpathFile, java.util.Locale[] locale) throws java.io.IOException
req
- http servlet requestrealpathFile
- the file to get.locale
- array of at least one to be filled with locale found.java.io.IOException
protected static CMSTemplate getTemplate(java.lang.String templateName, javax.servlet.http.HttpServletRequest httpReq, javax.servlet.ServletConfig servletConfig, CMSFileLoader fileLoader, java.util.Locale[] locale) throws EBaseException, java.io.IOException
EBaseException
java.io.IOException
public static boolean modifiedSince(javax.servlet.http.HttpServletRequest req, long lastModified)
lastModified
- The time value in milliseconds past the epoch to
compare the If-Modified-Since header to.