| org.w3c.jigsaw.frames.PostableFrame org.w3c.jigsaw.webdav.DAVFrame
All known Subclasses: org.w3c.jigedit.webdav.frames.CvsDAVFileFrame, org.w3c.jigedit.webdav.frames.CvsDAVDirectoryFrame,
DAVFrame | public class DAVFrame extends PostableFrame (Code) | | version: $Revision: 1.39 $ author: Benoît Mahé (bmahe@w3.org) |
Method Summary | |
protected static boolean | acceptRedirect(DAVRequest request) | protected void | addContentLanguage(DAVProperties props) | protected void | addContentLength(DAVProperties props) | protected void | addContentType(DAVProperties props) | protected void | addCreationDate(DAVProperties props) | protected void | addDisplayName(DAVProperties props) | protected void | addETag(DAVProperties props) | protected void | addIsCollection(DAVProperties props) | protected void | addLastModified(DAVProperties props) | protected void | addLockDiscovery(DAVRequest request, DAVProperties prop) | protected void | addLockDiscovery(DAVRequest request, Node parent) | protected void | addResourceType(DAVProperties props) | protected void | addSupportedLock(DAVProperties prop) | protected int | checkIf(DAVRequest request) Check the If condition of that request.
Parameters: request - The request to check. | protected boolean | checkLockOwner(DAVRequest request) | protected void | closeInternalReply(DAVReply reply) | protected URL | computeDestURL(URL parent, DAVFrame df) | public Reply | copy(DAVRequest request) Handle the COPY request. | protected Reply | copyCollection(URL destination, DAVRequest request, boolean overwrite) | protected Reply | copyCollection(URL destination, DAVRequest request, boolean overwrite, DAVBody body, Document document) | protected org.w3c.www.protocol.webdav.DAVReply | copyDAVResource(DAVRequest req, URL source, URL destination, DAVBody body) | protected void | copyProperties(DAVRequest req, URL destination, DAVBody body) | protected Reply | copyResource(URL dst, DAVRequest request, boolean overwrite) | protected Reply | createDAVReply(DAVRequest request, int status, Document document) Create a DAV reply for a specific DAV request. | protected DAVRequest | createInternalRequest(DAVRequest request, String mtd, URL url, Hashtable headers, Document document) | protected DAVRequest | createInternalRequest(DAVRequest req, String mtd, URL url, Hashtable headers, InputStream in) | protected DAVRequest | createInternalRequest(DAVRequest req, String mtd, URL url, Hashtable headers) | protected org.w3c.www.protocol.webdav.DAVRequest | createRequest(DAVRequest req, String mtd, URL url, Hashtable headers, InputStream in) | protected org.w3c.www.protocol.webdav.DAVRequest | createRequest(DAVRequest request, String mtd, URL url, Hashtable headers) | protected org.w3c.www.protocol.webdav.DAVRequest | createRequest(DAVRequest request, String mtd, URL url, Hashtable headers, Document document) | public Reply | davextended(DAVRequest request) | protected String | decodeURL(DAVRequest request, String encoded) | public Reply | delete(Request request) The WEBDAV DELETE method, actually the resource (file, directory)
is moved into the trash directory which is not accessible via HTTP. | protected Reply | dupReply(DAVRequest request, org.w3c.www.protocol.webdav.DAVReply rep, boolean created) Kind of proxying the reply but only for headers. | public Reply | extended(Request request) The handler for unknown method replies with a not implemented. | public Reply | get(Request request) Get this resource body. | protected HttpTokenList | getAllow() | protected DAVBody | getBody(DAVRequest request) | protected DAVResponse[] | getChildResponses(DAVRequest request, DAVPropFind dpf, Document document, boolean deep) | public long | getCreationDate() | protected int | getCurrentLockDepth() | protected Node | getCurrentLockOwner(DAVRequest request) | protected long | getCurrentLockTimeout(DAVRequest request) | protected String | getCurrentLockToken(DAVRequest request) | protected String | getCurrentLockUsername(DAVRequest request) | public ArrayDictionary | getDeadProperties() | protected synchronized Hashtable | getDeadPropertiesIndex() | protected synchronized String | getNewLockToken() | protected DAVProperties | getPropNames(DAVRequest request, Document doc) Get all the property names of our associated resource. | protected DAVPropStat[] | getPropStat(DAVRequest request, Document doc, DAVProperties dp) | protected DAVProperties | getProperties(DAVRequest request, Document doc, DAVProperties dp) Get the properties of our associated resource require in
the given DAVProperties Object. | protected DAVProperties | getProperties(DAVRequest request, Document doc) Get all the properties of our associated resource. | protected DAVProperties | getPropertiesForCopy(Document doc) | protected DAVResponse | getResponse(DAVRequest request, DAVPropFind dpf, Document document) | protected String | getStatusLine(int status) | protected long | getTokenExpirationDate(DAVRequest request) | protected boolean | hasIntProperty(int idx) | protected boolean | hasLongProperty(int idx) | protected boolean | hasProperty(int idx) | protected boolean | hasStringProperty(int idx) | public void | initialize(Object values) | protected Reply | internalCopyCollection(URL destination, DAVRequest request, boolean overwrite, DAVBody body, Document document) | protected DAVReply | internalCopyDAVResource(DAVRequest req, URL source, URL destination, DAVBody body) | protected void | internalCopyProperties(DAVRequest req, URL destination, DAVBody body) | protected Reply | internalCopyResource(URL dst, DAVRequest request, boolean overwrite) | public boolean | isCollection() | protected boolean | isLockable(DAVRequest request) | protected boolean | isLocked(DAVRequest request) | protected static boolean | isReadOnly(String propname) | protected synchronized void | lock(String token, int depth, String timeouts, String username, Node owner) | public synchronized Reply | lock(DAVRequest request) Handle the LOCK request. | protected boolean | lookupDirectory(LookupState ls, LookupResult lr) Lookup the target resource when associated with a DirectoryResource. | protected boolean | lookupResource(LookupState ls, LookupResult lr) Lookup the target resource (dispath to more specific lookup methods). | protected boolean | matchETag(HttpEntityTag retag) | protected boolean | matchLockToken(DAVRequest request, String locktoken) | public Reply | mkcol(DAVRequest request) Handle the MKCOL request. | public Reply | move(DAVRequest request) Handle the MOVE request. | public Reply | options(Request request) | public ReplyInterface | perform(RequestInterface req) | public Reply | post(Request request) Perform the post method. | public Reply | propfind(DAVRequest request) Handle the PROPFIND request. | public Reply | proppatch(DAVRequest request) Handle the PROPPATCH request. | public Reply | put(Request request) The WEBDAV PUT method. | protected synchronized void | refreshLock(String timeouts) | public void | registerResource(FramedResource resource) | protected synchronized void | reloadDeadProperties() | protected DAVPropStat | removeDAVProperties(DAVProperties props, Document document) | protected synchronized void | removeDeadProperty(Element el) | protected void | removeDeadProperty(DAVNode node, DAVProperties okdp, Document document) | protected void | removeLiveProperty(DAVNode node, DAVProperties okdp, Document document) | protected synchronized void | saveDeadProperties() | protected DAVPropStat | setDAVProperties(DAVProperties props, Document document) | protected synchronized void | setDeadProperty(Element el) | protected void | setDeadProperty(DAVNode node, DAVProperties okdp, Document document) | protected void | setLiveProperty(DAVNode node, DAVProperties okdp, Document document) | protected void | setLockOwner(Node owner) | protected void | setTimeout(String timeouts) | protected void | skipBody(org.w3c.www.protocol.webdav.DAVReply reply) Should be called to purge the reply, otherwise the connection won't
be marked idle and won't be reused. | protected void | unlock() | public synchronized Reply | unlock(DAVRequest request) Handle the UNLOCK request. | protected void | updateLockDate(DAVRequest request) |
ATTR_CREATION_DATE | protected static int ATTR_CREATION_DATE(Code) | | Attribute index - The index for the creation date attribute.
|
ATTR_DEAD_PROPERTIES | protected static int ATTR_DEAD_PROPERTIES(Code) | | Attribute index - The index for the dead properties
|
ATTR_LOCK_DATE | protected static int ATTR_LOCK_DATE(Code) | | Attribute index - The index for the lock date
|
ATTR_LOCK_DEPTH | protected static int ATTR_LOCK_DEPTH(Code) | | Attribute index - The index for the lock depth
|
ATTR_LOCK_OWNER | protected static int ATTR_LOCK_OWNER(Code) | | Attribute index - The index for the lock owner
|
ATTR_LOCK_TIMEOUT | protected static int ATTR_LOCK_TIMEOUT(Code) | | Attribute index - The index for the lock token
|
ATTR_LOCK_TOKEN | protected static int ATTR_LOCK_TOKEN(Code) | | Attribute index - The index for the lock token
|
ATTR_LOCK_USERNAME | protected static int ATTR_LOCK_USERNAME(Code) | | Attribute index - The index for the lock username
|
COND_OK_LOCK | final public static int COND_OK_LOCK(Code) | | Condition check return code - Condition existed and succeeded.
And lock has been checked
|
DEFAULT_LOCK_TIMEOUT | final public static Long DEFAULT_LOCK_TIMEOUT(Code) | | |
LOCKED_REREFENCE | final public static String LOCKED_REREFENCE(Code) | | |
MAX_LOCK_TIMEOUT | final public static Long MAX_LOCK_TIMEOUT(Code) | | |
REMAINING_PATH | final public static String REMAINING_PATH(Code) | | Name ot the state to hold the remaining path (used with MKCOL)
|
deadpropmodified | protected boolean deadpropmodified(Code) | | |
debug | final public static boolean debug(Code) | | |
debugxml | final public static boolean debugxml(Code) | | |
checkIf | protected int checkIf(DAVRequest request) throws HTTPException(Code) | | Check the If condition of that request.
Parameters: request - The request to check. An integer, either COND_FAILED if conditionwas checked, but failed, COND_OK if condition was checkedand succeeded, or 0 if the condition was not checkedat all (eg because the resource or the request didn't support it). |
closeInternalReply | protected void closeInternalReply(DAVReply reply)(Code) | | |
createDAVReply | protected Reply createDAVReply(DAVRequest request, int status, Document document)(Code) | | Create a DAV reply for a specific DAV request.
Parameters: request - the DAVRequest Parameters: status - the status of the reply Parameters: document - the XML content of the reply a Reply instance |
get | public Reply get(Request request) throws ProtocolException, ResourceException(Code) | | Get this resource body.
If we are allowed to convert GET requests to POST, than we first
check to see if there is some search string in the request, and continue
with normal POST request processing.
If there is no search string, or if we are not allowed to convert
GETs to POSTs, than we just invoke our super method,
which will perform the appropriate job.
Parameters: request - The request to handle. exception: ProtocolException - If request couldn't be processed. exception: ResourceException - If the resource got a fatal error. |
getAllow | protected HttpTokenList getAllow()(Code) | | get the Allowed methods for this resource
an HttpTokenList |
getChildResponses | protected DAVResponse[] getChildResponses(DAVRequest request, DAVPropFind dpf, Document document, boolean deep)(Code) | | Get an appropriate DAV Response to the given PROPFIND request from
our children
Parameters: request - the DAV Request Parameters: dpf - the DAVPropFind XML Node (can be null) Parameters: document - the XML document Parameters: deep - do it recursivly if true a DAVResponse array |
getCreationDate | public long getCreationDate()(Code) | | Get this resource creation date
A long giving the creation date or -1 if undefined. |
getCurrentLockDepth | protected int getCurrentLockDepth()(Code) | | Get the lock depth
An int (WEBDAV.DEPTH_0 or WEBDAV.DEPTH_INFINITY) |
getCurrentLockOwner | protected Node getCurrentLockOwner(DAVRequest request)(Code) | | Get the lock owner
A String instance or null |
getCurrentLockTimeout | protected long getCurrentLockTimeout(DAVRequest request)(Code) | | |
getCurrentLockToken | protected String getCurrentLockToken(DAVRequest request)(Code) | | Get the lock token
A String instance or null |
getCurrentLockUsername | protected String getCurrentLockUsername(DAVRequest request)(Code) | | Get the username of the client that lock the resource
|
getDeadPropertiesIndex | protected synchronized Hashtable getDeadPropertiesIndex()(Code) | | |
getNewLockToken | protected synchronized String getNewLockToken()(Code) | | |
getPropNames | protected DAVProperties getPropNames(DAVRequest request, Document doc)(Code) | | Get all the property names of our associated resource.
Parameters: doc - the response XML Document a DAVProperties instance |
getProperties | protected DAVProperties getProperties(DAVRequest request, Document doc, DAVProperties dp)(Code) | | Get the properties of our associated resource require in
the given DAVProperties Object.
Parameters: doc - the response XML Document Parameters: dp - the DAVProperties node in found the request body a DAVProperties instance |
getProperties | protected DAVProperties getProperties(DAVRequest request, Document doc)(Code) | | Get all the properties of our associated resource.
Parameters: doc - the response XML Document a DAVProperties instance |
getResponse | protected DAVResponse getResponse(DAVRequest request, DAVPropFind dpf, Document document)(Code) | | Get an appropriate DAV Response to the given PROPFIND request
Parameters: request - the DAV Request Parameters: dpf - the DAVPropFind XML Node (can be null) Parameters: document - the XML document a DAVResponse |
getStatusLine | protected String getStatusLine(int status)(Code) | | |
getTokenExpirationDate | protected long getTokenExpirationDate(DAVRequest request)(Code) | | Get the lock token expiration date
A long giving the expiration date or -1 if undefined. |
hasIntProperty | protected boolean hasIntProperty(int idx)(Code) | | |
hasLongProperty | protected boolean hasLongProperty(int idx)(Code) | | |
hasProperty | protected boolean hasProperty(int idx)(Code) | | |
hasStringProperty | protected boolean hasStringProperty(int idx)(Code) | | |
isCollection | public boolean isCollection()(Code) | | |
isLocked | protected boolean isLocked(DAVRequest request)(Code) | | Check if this resource or one of their parent (with depth equals
to infinity) has been locked
Parameters: request - the incomming request (it null isLocked will returns true if and only if the resource has been personally locked, not oneof its parents) a boolean |
isReadOnly | protected static boolean isReadOnly(String propname)(Code) | | |
lock | protected synchronized void lock(String token, int depth, String timeouts, String username, Node owner) throws HTTPException(Code) | | lock this resource
Parameters: token - the lock token Parameters: depth - the lock depth (0 or -1) Parameters: timeout - the lock timeout |
lookupDirectory | protected boolean lookupDirectory(LookupState ls, LookupResult lr) throws ProtocolException(Code) | | Lookup the target resource when associated with a DirectoryResource.
Parameters: ls - The current lookup state Parameters: lr - The result true if lookup is done. exception: ProtocolException - If an error relative to the protocoloccurs |
refreshLock | protected synchronized void refreshLock(String timeouts)(Code) | | |
registerResource | public void registerResource(FramedResource resource)(Code) | | companion to initialize, called after the register
|
reloadDeadProperties | protected synchronized void reloadDeadProperties()(Code) | | |
saveDeadProperties | protected synchronized void saveDeadProperties()(Code) | | |
setLockOwner | protected void setLockOwner(Node owner)(Code) | | Set the lock Owner
|
skipBody | protected void skipBody(org.w3c.www.protocol.webdav.DAVReply reply)(Code) | | Should be called to purge the reply, otherwise the connection won't
be marked idle and won't be reused.
Parameters: reply - the reply to purge. |
unlock | protected void unlock()(Code) | | |
|
|