public class CatWebdavContext extends WebdavContext
Modifier and Type | Field and Description |
---|---|
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 |
conf, EMPTY_STRING, hasError, httpDate, httpDateUS, INFINITY, inputStreamContent, isoDate, lang, locale, mapStatusCodes, NAMESPACE, NAMESPACE_MS, originalPathHeader, propAllSet, propFileSet, propMSWebFolderSet, propRFC2518Set, propSubSet, req, res, SC_ACCEPTED, SC_BAD_GATEWAY, SC_BAD_REQUEST, SC_CONFLICT, SC_CONTINUE, SC_CREATED, SC_FORBIDDEN, SC_INSUFFICIENT_SPACE_ON_RESOURCE, SC_INTERNAL_SERVER_ERROR, SC_LOCKED, SC_METHOD_FAILURE, SC_METHOD_NOT_ALLOWED, SC_MOVED_PERMANENTLY, SC_MOVED_TEMPORARILY, SC_MULTI_STATUS, SC_NO_CONTENT, SC_NOT_FOUND, SC_NOT_IMPLEMENTED, SC_NOT_MODIFIED, SC_OK, SC_PRECONDITION_FAILED, SC_REQUEST_TOO_LONG, SC_SERVICE_UNAVAILABLE, SC_UNAUTHORIZED, SC_UNPROCESSABLE_ENTITY, SC_UNSUPPORTED_MEDIA_TYPE, servletURI, setOkStatusCodes, statusCode, statusElm, statusMsg, statusPath
Constructor and Description |
---|
CatWebdavContext() |
Modifier and Type | Method and Description |
---|---|
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() |
addHeader, addStatusCodeMap, addStatusCodeSet, appendStatus, appendStatus, appendStatus, appendStatus, decodePath, encodePath, escapeWebdavChars, getDepthHeader, getHttpDate, getHttpDate, getIfHeader, getIfRangeHeader, getInitParam, getInitParameterNames, getInputStreamContent, getISO8601Date, getLockTokenHeader, getLockTokenValue, getOriginalPathHeader, getOverwriteHeader, getRangeHeader, getRealPath, getServletURI, getStatusText, getTimeoutHeader, hasErrors, isError, sendError, sendError, sendFile, sendHtml, sendMultiStatus, sendMultiStatus, sendMultiStatus, sendSingleStatus, sendSingleStatus, sendStatus, service, setHeader, writeHtmlFolder, writeLock, writeLocks, writeProperties_FindAllProp, writeProperties_FindByProperty, writeProperties_FindPropertyNames, writeProperties, writePropPatch, writeResponse, writeResponseProperties, writeStatus
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
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 neededpublic static void updateProperties()
public java.lang.String getDestinationHeader()
getDestinationHeader
in class WebdavContext
public java.lang.String getPathHeader()
getPathHeader
in class WebdavContext
public Member getLoggedMember()
public JcmsContext getJcmsContext()
Copyright © 2001-2010 Jalios SA. All Rights Reserved.