Java Doc for DAVFrame.java in  » Web-Server » Jigsaw » org » w3c » jigsaw » webdav » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Server » Jigsaw » org.w3c.jigsaw.webdav 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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)


Field Summary
protected static  intATTR_CREATION_DATE
     Attribute index - The index for the creation date attribute.
protected static  intATTR_DEAD_PROPERTIES
    
protected static  intATTR_LOCK_DATE
    
protected static  intATTR_LOCK_DEPTH
    
protected static  intATTR_LOCK_OWNER
    
protected static  intATTR_LOCK_TIMEOUT
    
protected static  intATTR_LOCK_TOKEN
    
protected static  intATTR_LOCK_USERNAME
    
final public static  intCOND_OK_LOCK
     Condition check return code - Condition existed and succeeded.
final public static  LongDEFAULT_LOCK_TIMEOUT
    
final public static  StringLOCKED_REREFENCE
    
final public static  StringLOCK_EXPIRE
    
final public static  StringLOCK_OWNER
    
final public static  StringLOCK_TIMEOUT
    
final public static  StringLOCK_TOKEN
    
final public static  StringLOCK_USERNAME
    
final public static  LongMAX_LOCK_TIMEOUT
    
final public static  StringREMAINING_PATH
    
protected static  HttpMimeTypecollectioncontenttype
    
protected  Hashtabledeadindex
    
protected  booleandeadpropmodified
    
final public static  booleandebug
    
final public static  booleandebugxml
    
protected  org.w3c.www.protocol.webdav.DAVManagermanager
     The DAVManager we use.
protected  NodeownerNode
    
protected static  HttpMimeTypexmlcontenttype
    


Method Summary
protected static  booleanacceptRedirect(DAVRequest request)
    
protected  voidaddContentLanguage(DAVProperties props)
    
protected  voidaddContentLength(DAVProperties props)
    
protected  voidaddContentType(DAVProperties props)
    
protected  voidaddCreationDate(DAVProperties props)
    
protected  voidaddDisplayName(DAVProperties props)
    
protected  voidaddETag(DAVProperties props)
    
protected  voidaddIsCollection(DAVProperties props)
    
protected  voidaddLastModified(DAVProperties props)
    
protected  voidaddLockDiscovery(DAVRequest request, DAVProperties prop)
    
protected  voidaddLockDiscovery(DAVRequest request, Node parent)
    
protected  voidaddResourceType(DAVProperties props)
    
protected  voidaddSupportedLock(DAVProperties prop)
    
protected  intcheckIf(DAVRequest request)
     Check the If condition of that request.
Parameters:
  request - The request to check.
protected  booleancheckLockOwner(DAVRequest request)
    
protected  voidcloseInternalReply(DAVReply reply)
    
protected  URLcomputeDestURL(URL parent, DAVFrame df)
    
public  Replycopy(DAVRequest request)
     Handle the COPY request.
protected  ReplycopyCollection(URL destination, DAVRequest request, boolean overwrite)
    
protected  ReplycopyCollection(URL destination, DAVRequest request, boolean overwrite, DAVBody body, Document document)
    
protected  org.w3c.www.protocol.webdav.DAVReplycopyDAVResource(DAVRequest req, URL source, URL destination, DAVBody body)
    
protected  voidcopyProperties(DAVRequest req, URL destination, DAVBody body)
    
protected  ReplycopyResource(URL dst, DAVRequest request, boolean overwrite)
    
protected  ReplycreateDAVReply(DAVRequest request, int status, Document document)
     Create a DAV reply for a specific DAV request.
protected  DAVRequestcreateInternalRequest(DAVRequest request, String mtd, URL url, Hashtable headers, Document document)
    
protected  DAVRequestcreateInternalRequest(DAVRequest req, String mtd, URL url, Hashtable headers, InputStream in)
    
protected  DAVRequestcreateInternalRequest(DAVRequest req, String mtd, URL url, Hashtable headers)
    
protected  org.w3c.www.protocol.webdav.DAVRequestcreateRequest(DAVRequest req, String mtd, URL url, Hashtable headers, InputStream in)
    
protected  org.w3c.www.protocol.webdav.DAVRequestcreateRequest(DAVRequest request, String mtd, URL url, Hashtable headers)
    
protected  org.w3c.www.protocol.webdav.DAVRequestcreateRequest(DAVRequest request, String mtd, URL url, Hashtable headers, Document document)
    
public  Replydavextended(DAVRequest request)
    
protected  StringdecodeURL(DAVRequest request, String encoded)
    
public  Replydelete(Request request)
     The WEBDAV DELETE method, actually the resource (file, directory) is moved into the trash directory which is not accessible via HTTP.
protected  ReplydupReply(DAVRequest request, org.w3c.www.protocol.webdav.DAVReply rep, boolean created)
     Kind of proxying the reply but only for headers.
public  Replyextended(Request request)
     The handler for unknown method replies with a not implemented.
public  Replyget(Request request)
     Get this resource body.
protected  HttpTokenListgetAllow()
    
protected  DAVBodygetBody(DAVRequest request)
    
protected  DAVResponse[]getChildResponses(DAVRequest request, DAVPropFind dpf, Document document, boolean deep)
    
public  longgetCreationDate()
    
protected  intgetCurrentLockDepth()
    
protected  NodegetCurrentLockOwner(DAVRequest request)
    
protected  longgetCurrentLockTimeout(DAVRequest request)
    
protected  StringgetCurrentLockToken(DAVRequest request)
    
protected  StringgetCurrentLockUsername(DAVRequest request)
    
public  ArrayDictionarygetDeadProperties()
    
protected synchronized  HashtablegetDeadPropertiesIndex()
    
protected synchronized  StringgetNewLockToken()
    
protected  DAVPropertiesgetPropNames(DAVRequest request, Document doc)
     Get all the property names of our associated resource.
protected  DAVPropStat[]getPropStat(DAVRequest request, Document doc, DAVProperties dp)
    
protected  DAVPropertiesgetProperties(DAVRequest request, Document doc, DAVProperties dp)
     Get the properties of our associated resource require in the given DAVProperties Object.
protected  DAVPropertiesgetProperties(DAVRequest request, Document doc)
     Get all the properties of our associated resource.
protected  DAVPropertiesgetPropertiesForCopy(Document doc)
    
protected  DAVResponsegetResponse(DAVRequest request, DAVPropFind dpf, Document document)
    
protected  StringgetStatusLine(int status)
    
protected  longgetTokenExpirationDate(DAVRequest request)
    
protected  booleanhasIntProperty(int idx)
    
protected  booleanhasLongProperty(int idx)
    
protected  booleanhasProperty(int idx)
    
protected  booleanhasStringProperty(int idx)
    
public  voidinitialize(Object values)
    
protected  ReplyinternalCopyCollection(URL destination, DAVRequest request, boolean overwrite, DAVBody body, Document document)
    
protected  DAVReplyinternalCopyDAVResource(DAVRequest req, URL source, URL destination, DAVBody body)
    
protected  voidinternalCopyProperties(DAVRequest req, URL destination, DAVBody body)
    
protected  ReplyinternalCopyResource(URL dst, DAVRequest request, boolean overwrite)
    
public  booleanisCollection()
    
protected  booleanisLockable(DAVRequest request)
    
protected  booleanisLocked(DAVRequest request)
    
protected static  booleanisReadOnly(String propname)
    
protected synchronized  voidlock(String token, int depth, String timeouts, String username, Node owner)
    
public synchronized  Replylock(DAVRequest request)
     Handle the LOCK request.
protected  booleanlookupDirectory(LookupState ls, LookupResult lr)
     Lookup the target resource when associated with a DirectoryResource.
protected  booleanlookupResource(LookupState ls, LookupResult lr)
     Lookup the target resource (dispath to more specific lookup methods).
protected  booleanmatchETag(HttpEntityTag retag)
    
protected  booleanmatchLockToken(DAVRequest request, String locktoken)
    
public  Replymkcol(DAVRequest request)
     Handle the MKCOL request.
public  Replymove(DAVRequest request)
     Handle the MOVE request.
public  Replyoptions(Request request)
    
public  ReplyInterfaceperform(RequestInterface req)
    
public  Replypost(Request request)
     Perform the post method.
public  Replypropfind(DAVRequest request)
     Handle the PROPFIND request.
public  Replyproppatch(DAVRequest request)
     Handle the PROPPATCH request.
public  Replyput(Request request)
     The WEBDAV PUT method.
protected synchronized  voidrefreshLock(String timeouts)
    
public  voidregisterResource(FramedResource resource)
    
protected synchronized  voidreloadDeadProperties()
    
protected  DAVPropStatremoveDAVProperties(DAVProperties props, Document document)
    
protected synchronized  voidremoveDeadProperty(Element el)
    
protected  voidremoveDeadProperty(DAVNode node, DAVProperties okdp, Document document)
    
protected  voidremoveLiveProperty(DAVNode node, DAVProperties okdp, Document document)
    
protected synchronized  voidsaveDeadProperties()
    
protected  DAVPropStatsetDAVProperties(DAVProperties props, Document document)
    
protected synchronized  voidsetDeadProperty(Element el)
    
protected  voidsetDeadProperty(DAVNode node, DAVProperties okdp, Document document)
    
protected  voidsetLiveProperty(DAVNode node, DAVProperties okdp, Document document)
    
protected  voidsetLockOwner(Node owner)
    
protected  voidsetTimeout(String timeouts)
    
protected  voidskipBody(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  voidunlock()
    
public synchronized  Replyunlock(DAVRequest request)
     Handle the UNLOCK request.
protected  voidupdateLockDate(DAVRequest request)
    

Field Detail
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)



LOCK_EXPIRE
final public static String LOCK_EXPIRE(Code)



LOCK_OWNER
final public static String LOCK_OWNER(Code)



LOCK_TIMEOUT
final public static String LOCK_TIMEOUT(Code)



LOCK_TOKEN
final public static String LOCK_TOKEN(Code)



LOCK_USERNAME
final public static String LOCK_USERNAME(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)



collectioncontenttype
protected static HttpMimeType collectioncontenttype(Code)



deadindex
protected Hashtable deadindex(Code)



deadpropmodified
protected boolean deadpropmodified(Code)



debug
final public static boolean debug(Code)



debugxml
final public static boolean debugxml(Code)



manager
protected org.w3c.www.protocol.webdav.DAVManager manager(Code)
The DAVManager we use.



ownerNode
protected Node ownerNode(Code)



xmlcontenttype
protected static HttpMimeType xmlcontenttype(Code)
Cached mime type





Method Detail
acceptRedirect
protected static boolean acceptRedirect(DAVRequest request)(Code)



addContentLanguage
protected void addContentLanguage(DAVProperties props)(Code)



addContentLength
protected void addContentLength(DAVProperties props)(Code)



addContentType
protected void addContentType(DAVProperties props)(Code)



addCreationDate
protected void addCreationDate(DAVProperties props)(Code)



addDisplayName
protected void addDisplayName(DAVProperties props)(Code)



addETag
protected void addETag(DAVProperties props)(Code)



addIsCollection
protected void addIsCollection(DAVProperties props)(Code)



addLastModified
protected void addLastModified(DAVProperties props)(Code)



addLockDiscovery
protected void addLockDiscovery(DAVRequest request, DAVProperties prop)(Code)



addLockDiscovery
protected void addLockDiscovery(DAVRequest request, Node parent)(Code)



addResourceType
protected void addResourceType(DAVProperties props)(Code)



addSupportedLock
protected void addSupportedLock(DAVProperties prop)(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).



checkLockOwner
protected boolean checkLockOwner(DAVRequest request)(Code)



closeInternalReply
protected void closeInternalReply(DAVReply reply)(Code)



computeDestURL
protected URL computeDestURL(URL parent, DAVFrame df) throws MalformedURLException(Code)



copy
public Reply copy(DAVRequest request) throws ProtocolException, ResourceException(Code)
Handle the COPY request.
Parameters:
  request - the WEBDAV request a Reply instance
exception:
  ProtocolException - If processsing the request failed.
exception:
  ResourceException - If the resource got a fatal error.



copyCollection
protected Reply copyCollection(URL destination, DAVRequest request, boolean overwrite) throws ProtocolException, ResourceException(Code)
Handle the COPY request for a collection
Parameters:
  dst - the destination URL
Parameters:
  request - the WEBDAV request a Reply instance
exception:
  ProtocolException - If processsing the request failed.
exception:
  ResourceException - If the resource got a fatal error.



copyCollection
protected Reply copyCollection(URL destination, DAVRequest request, boolean overwrite, DAVBody body, Document document) throws ProtocolException, ResourceException, MultiStatusException(Code)



copyDAVResource
protected org.w3c.www.protocol.webdav.DAVReply copyDAVResource(DAVRequest req, URL source, URL destination, DAVBody body) throws MultiStatusException(Code)



copyProperties
protected void copyProperties(DAVRequest req, URL destination, DAVBody body) throws MultiStatusException(Code)



copyResource
protected Reply copyResource(URL dst, DAVRequest request, boolean overwrite) throws ProtocolException, ResourceException(Code)
Handle the COPY request for a simple resource (not a collection)
Parameters:
  dst - the destination URL
Parameters:
  request - the WEBDAV request a Reply instance
exception:
  ProtocolException - If processsing the request failed.
exception:
  ResourceException - If the resource got a fatal error.



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



createInternalRequest
protected DAVRequest createInternalRequest(DAVRequest request, String mtd, URL url, Hashtable headers, Document document)(Code)



createInternalRequest
protected DAVRequest createInternalRequest(DAVRequest req, String mtd, URL url, Hashtable headers, InputStream in)(Code)



createInternalRequest
protected DAVRequest createInternalRequest(DAVRequest req, String mtd, URL url, Hashtable headers)(Code)



createRequest
protected org.w3c.www.protocol.webdav.DAVRequest createRequest(DAVRequest req, String mtd, URL url, Hashtable headers, InputStream in)(Code)



createRequest
protected org.w3c.www.protocol.webdav.DAVRequest createRequest(DAVRequest request, String mtd, URL url, Hashtable headers)(Code)



createRequest
protected org.w3c.www.protocol.webdav.DAVRequest createRequest(DAVRequest request, String mtd, URL url, Hashtable headers, Document document)(Code)



davextended
public Reply davextended(DAVRequest request) throws ProtocolException, ResourceException(Code)



decodeURL
protected String decodeURL(DAVRequest request, String encoded) throws HTTPException(Code)



delete
public Reply delete(Request request) throws ProtocolException, ResourceException(Code)
The WEBDAV DELETE method, actually the resource (file, directory) is moved into the trash directory which is not accessible via HTTP.
Parameters:
  request - The request to handle.
exception:
  ProtocolException - If processsing the request failed.
exception:
  ResourceException - If the resource got a fatal error.



dupReply
protected Reply dupReply(DAVRequest request, org.w3c.www.protocol.webdav.DAVReply rep, boolean created)(Code)
Kind of proxying the reply but only for headers.



extended
public Reply extended(Request request) throws ProtocolException, ResourceException(Code)
The handler for unknown method replies with a not implemented.
Parameters:
  request - The request to handle.
exception:
  ProtocolException - If processsing the request failed.
exception:
  ResourceException - If the resource got a fatal error.



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



getBody
protected DAVBody getBody(DAVRequest request) throws HTTPException(Code)



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



getDeadProperties
public ArrayDictionary getDeadProperties()(Code)
Get the dead properties a ArrayDictionary instance
See Also:   org.w3c.util.ArrayDictionary



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



getPropStat
protected DAVPropStat[] getPropStat(DAVRequest request, Document doc, DAVProperties dp)(Code)



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



getPropertiesForCopy
protected DAVProperties getPropertiesForCopy(Document doc)(Code)



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)



initialize
public void initialize(Object values)(Code)



internalCopyCollection
protected Reply internalCopyCollection(URL destination, DAVRequest request, boolean overwrite, DAVBody body, Document document) throws ProtocolException, ResourceException, MultiStatusException(Code)



internalCopyDAVResource
protected DAVReply internalCopyDAVResource(DAVRequest req, URL source, URL destination, DAVBody body) throws MultiStatusException(Code)



internalCopyProperties
protected void internalCopyProperties(DAVRequest req, URL destination, DAVBody body) throws MultiStatusException(Code)



internalCopyResource
protected Reply internalCopyResource(URL dst, DAVRequest request, boolean overwrite) throws ProtocolException, ResourceException(Code)
Handle the COPY request for a simple resource (not a collection)
Parameters:
  dst - the destination URL
Parameters:
  request - the WEBDAV request a Reply instance
exception:
  ProtocolException - If processsing the request failed.
exception:
  ResourceException - If the resource got a fatal error.



isCollection
public boolean isCollection()(Code)



isLockable
protected boolean isLockable(DAVRequest request)(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



lock
public synchronized Reply lock(DAVRequest request) throws ProtocolException, ResourceException(Code)
Handle the LOCK request.
Parameters:
  request - the WEBDAV request a Reply instance
exception:
  ProtocolException - If processsing the request failed.
exception:
  ResourceException - If the resource got a fatal error.



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



lookupResource
protected boolean lookupResource(LookupState ls, LookupResult lr) throws ProtocolException(Code)
Lookup the target resource (dispath to more specific lookup methods).
Parameters:
  ls - The current lookup state
Parameters:
  lr - The result true if lookup is done.
exception:
  ProtocolException - If an error relative to the protocol occurs
See Also:   DAVFrame.lookupDirectory
See Also:   DAVFrame.lookupFile
See Also:   DAVFrame.lookupOther



matchETag
protected boolean matchETag(HttpEntityTag retag)(Code)



matchLockToken
protected boolean matchLockToken(DAVRequest request, String locktoken)(Code)



mkcol
public Reply mkcol(DAVRequest request) throws ProtocolException, ResourceException(Code)
Handle the MKCOL request.
Parameters:
  request - the WEBDAV request a Reply instance
exception:
  ProtocolException - If processsing the request failed.
exception:
  ResourceException - If the resource got a fatal error.



move
public Reply move(DAVRequest request) throws ProtocolException, ResourceException(Code)
Handle the MOVE request.
Parameters:
  request - the WEBDAV request a Reply instance
exception:
  ProtocolException - If processsing the request failed.
exception:
  ResourceException - If the resource got a fatal error.



options
public Reply options(Request request) throws ProtocolException, ResourceException(Code)
The WEBDAV OPTIONS method replies with the DAV Header
Parameters:
  request - The request to handle.
exception:
  ProtocolException - In case of errors.
exception:
  ResourceException - If the resource got a fatal error.



perform
public ReplyInterface perform(RequestInterface req) throws ProtocolException, ResourceException(Code)
Perform the request
Parameters:
  req - The request to handle.
exception:
  ProtocolException - If processsing the request failed.
exception:
  ResourceException - If the resource got a fatal error.



post
public Reply post(Request request) throws ProtocolException, ResourceException(Code)
Perform the post method.
Parameters:
  request - The request to handle.
exception:
  ProtocolException - If request couldn't be processed.
exception:
  ResourceException - If the resource got a fatal error.



propfind
public Reply propfind(DAVRequest request) throws ProtocolException, ResourceException(Code)
Handle the PROPFIND request.
Parameters:
  request - the WEBDAV request a Reply instance
exception:
  ProtocolException - If processsing the request failed.
exception:
  ResourceException - If the resource got a fatal error.



proppatch
public Reply proppatch(DAVRequest request) throws ProtocolException, ResourceException(Code)
Handle the PROPPATCH request.
Parameters:
  request - the WEBDAV request a Reply instance
exception:
  ProtocolException - If processsing the request failed.
exception:
  ResourceException - If the resource got a fatal error.



put
public Reply put(Request request) throws ProtocolException, ResourceException(Code)
The WEBDAV PUT method.
Parameters:
  request - The request to handle.
exception:
  ProtocolException - If processsing the request failed.
exception:
  ResourceException - If the resource got a fatal error.



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)



removeDAVProperties
protected DAVPropStat removeDAVProperties(DAVProperties props, Document document) throws DAVPropertyException(Code)



removeDeadProperty
protected synchronized void removeDeadProperty(Element el) throws DOMException(Code)



removeDeadProperty
protected void removeDeadProperty(DAVNode node, DAVProperties okdp, Document document) throws DAVPropertyException(Code)



removeLiveProperty
protected void removeLiveProperty(DAVNode node, DAVProperties okdp, Document document) throws DAVPropertyException(Code)



saveDeadProperties
protected synchronized void saveDeadProperties()(Code)



setDAVProperties
protected DAVPropStat setDAVProperties(DAVProperties props, Document document) throws DAVPropertyException(Code)



setDeadProperty
protected synchronized void setDeadProperty(Element el) throws DOMException(Code)



setDeadProperty
protected void setDeadProperty(DAVNode node, DAVProperties okdp, Document document) throws DAVPropertyException(Code)



setLiveProperty
protected void setLiveProperty(DAVNode node, DAVProperties okdp, Document document) throws DAVPropertyException(Code)



setLockOwner
protected void setLockOwner(Node owner)(Code)
Set the lock Owner



setTimeout
protected void setTimeout(String timeouts)(Code)



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)



unlock
public synchronized Reply unlock(DAVRequest request) throws ProtocolException, ResourceException(Code)
Handle the UNLOCK request.
Parameters:
  request - the WEBDAV request a Reply instance
exception:
  ProtocolException - If processsing the request failed.
exception:
  ResourceException - If the resource got a fatal error.



updateLockDate
protected void updateLockDate(DAVRequest request)(Code)



Fields inherited from org.w3c.jigsaw.frames.PostableFrame
protected static int ATTR_CONVERT_GET(Code)(Java Doc)
protected static int ATTR_OVERIDE(Code)(Java Doc)

Methods inherited from org.w3c.jigsaw.frames.PostableFrame
public Reply get(Request request) throws ProtocolException, ResourceException(Code)(Java Doc)
protected HttpTokenList getAllow()(Code)(Java Doc)
public boolean getConvertGetFlag()(Code)(Java Doc)
public boolean getOverrideFlag()(Code)(Java Doc)
public Reply handle(Request request, URLDecoder data) throws ProtocolException(Code)(Java Doc)
public Reply post(Request request) throws ProtocolException, ResourceException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.