|
||||||||||
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 String |
cachedDestinationHeader
|
protected String |
cachedPathHeader
|
protected JcmsContext |
jcmsContext
|
protected Member |
loggedMember
|
protected String |
realm
|
static 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 |
String |
getAncestorString(Category startCat,
Category ancestor,
boolean includeRoot)
Returns a String representing all categories from startCat to ancestor sperated by / and escaped for webdav. |
String |
getDestinationHeader()
Overrides WebdavContext methods to decode jcmsIds in the path. |
JcmsContext |
getJcmsContext()
|
Member |
getLoggedMember()
|
String |
getPathHeader()
Overrides WebdavContext methods to decode jcmsIds in the path. |
WebdavFileSystem |
getWebdavFileSystem()
|
Category |
getWebdavRoot()
Returns the Webdav root using JCMS Propety webdav.root or Channel Root category if null |
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 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 String REVISION
protected Member loggedMember
protected JcmsContext jcmsContext
protected String realm
protected static boolean webdavIpNoPattern
protected static org.apache.oro.text.regex.Pattern webdavIpPattern
protected String cachedDestinationHeader
protected String cachedPathHeader
Constructor Detail |
---|
public CatWebdavContext()
Method Detail |
---|
public WebdavFileSystem getWebdavFileSystem()
getWebdavFileSystem
in class WebdavContext
WebdavContext.getWebdavFileSystem()
public void init(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, javax.servlet.ServletConfig conf)
WebdavContext
init
in class WebdavContext
req
- the HttpServletRequestres
- the HttpServletResponseconf
- the ServletConfigWebdavContext.init(HttpServletRequest, HttpServletResponse, ServletConfig)
public boolean initAfterAuthentication()
WebdavContext
initAfterAuthentication
in class WebdavContext
WebdavContext.initAfterAuthentication()
public boolean authenticate()
WebdavContext
authenticate
in class WebdavContext
WebdavContext.authenticate()
public boolean isValideIP()
public static void updateProperties()
public String getDestinationHeader()
getDestinationHeader
in class WebdavContext
public String getPathHeader()
getPathHeader
in class WebdavContext
public String getAncestorString(Category startCat, Category ancestor, boolean includeRoot)
startCat
- working categoriesancestor
- target categories
public Category getWebdavRoot()
public Member getLoggedMember()
public JcmsContext getJcmsContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |