|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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
|
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 |
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()
|
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 String REVISION
protected Member loggedMember
protected JcmsContext jcmsContext
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 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 String getDestinationHeader()
getDestinationHeader
in class WebdavContext
public String getPathHeader()
getPathHeader
in class WebdavContext
public Member getLoggedMember()
public JcmsContext getJcmsContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |