|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.jcms.webdav.WebdavContext
com.jalios.jcms.webdav.cat.CatWebdavContext
public class CatWebdavContext
A JCMS Representation of a Webdav Context
using Category for folders and FileDocument for files
Authentification use BASIC authentification and store
result in a cookie.
| Field Summary | |
|---|---|
protected java.lang.String |
cachedDestinationHeader
|
protected java.lang.String |
cachedPathHeader
|
protected JcmsContext |
jcmsContext
|
protected Member |
loggedMember
|
static java.lang.String |
REVISION
|
protected static boolean |
webdavIpNoPattern
|
protected static org.apache.oro.text.regex.Pattern |
webdavIpPattern
|
| Constructor Summary | |
|---|---|
CatWebdavContext()
|
|
| Method Summary | |
|---|---|
boolean |
authenticate()
This method have to do all authentication stuff with any behavior |
java.lang.String |
getDestinationHeader()
Overrides WebdavContext methods to decode jcmsIds in the path. |
JcmsContext |
getJcmsContext()
|
Member |
getLoggedMember()
|
java.lang.String |
getPathHeader()
Overrides WebdavContext methods to decode jcmsIds in the path. |
WebdavFileSystem |
getWebdavFileSystem()
|
void |
init(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
javax.servlet.ServletConfig conf)
This method will initialize the WebdavContext with given HttpServletRequest, HttpServletResponse, and ServletConfig. |
boolean |
initAfterAuthentication()
This method will initialize the WebdavContext. |
boolean |
isValideIP()
|
static boolean |
requestAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Check if a member has already been logged and otherwise request the WebDAV HTTP authentcation Basic/Digest |
static void |
updateProperties()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String REVISION
protected Member loggedMember
protected JcmsContext jcmsContext
protected static boolean webdavIpNoPattern
protected static org.apache.oro.text.regex.Pattern webdavIpPattern
protected java.lang.String cachedDestinationHeader
protected java.lang.String cachedPathHeader
| Constructor Detail |
|---|
public CatWebdavContext()
| Method Detail |
|---|
public WebdavFileSystem getWebdavFileSystem()
getWebdavFileSystem in class WebdavContextWebdavContext.getWebdavFileSystem()
public void init(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
javax.servlet.ServletConfig conf)
WebdavContext
init in class WebdavContextreq - the HttpServletRequestres - the HttpServletResponseconf - the ServletConfigWebdavContext.init(HttpServletRequest, HttpServletResponse, ServletConfig)public boolean initAfterAuthentication()
WebdavContext
initAfterAuthentication in class WebdavContextWebdavContext.initAfterAuthentication()public boolean authenticate()
WebdavContext
authenticate in class WebdavContextWebdavContext.authenticate()public boolean isValideIP()
public static boolean requestAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
request - the HttpServletRequest for which the authentication should be checkedresponse - the HttpServletResponse in which authentication should be requested if needed
public static void updateProperties()
public java.lang.String getDestinationHeader()
getDestinationHeader in class WebdavContextpublic java.lang.String getPathHeader()
getPathHeader in class WebdavContextpublic Member getLoggedMember()
public JcmsContext getJcmsContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||