Java Doc for FxDavContext.java in  » J2EE » fleXive » com » flexive » war » 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 » J2EE » fleXive » com.flexive.war.webdav 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.flexive.war.webdav.FxDavContext

All known Subclasses:   com.flexive.war.webdav.FxDavFileSystemContext,  com.flexive.war.webdav.FxDavDummyContext,
FxDavContext
abstract public class FxDavContext (Code)
Abstract context class for webDav operations.




Method Summary
abstract public  intcopyResource(HttpServletRequest request, String src, String dest)
     Copies a resource.
abstract public  intcreateCollection(HttpServletRequest request, String name)
     Create a collection (Mkcol operation).

MKCOL creates a new collection resource at the location specified by the Request-URI. If the resource identified by the Request-URI is non-null then the MKCOL MUST fail. During MKCOL processing, a server MUST make the Request-URI a member of its parent collection, unless the Request-URI is "/".

abstract public  intcreateResource(HttpServletRequest request, String path)
     Creates a resource.
abstract public  intdeleteResource(HttpServletRequest request, String path)
     Deletes a resource.
abstract public  FxDavEntry[]getChildren(HttpServletRequest request, String name)
     Returns all childs of a given resource.
abstract public  FxDavEntrygetResource(HttpServletRequest request, String name)
     Gets the resource stored under the given name, or null if the resource does not exist.
abstract public  FxDavContextgetSingleton()
     Returns a singleton for the class.
abstract public  voidmoveResource(HttpServletRequest request, String src, String dest)
     Moves a resource.
abstract public  voidserviceResource(HttpServletRequest request, HttpServletResponse response, String name)
     Serves a resource to the webdav client.



Method Detail
copyResource
abstract public int copyResource(HttpServletRequest request, String src, String dest)(Code)
Copies a resource.
Parameters:
  src - the absolute path of the source resource, eg 'folder1/folder2/file.txt'
Parameters:
  dest - the absolute path of the destination resource, eg 'folder1/folder2/file_new.txt'
Parameters:
  request - the request containing the data for the resource the status code, FxWebDavStatus.SC_OK if the operation was successfull



createCollection
abstract public int createCollection(HttpServletRequest request, String name)(Code)
Create a collection (Mkcol operation).

MKCOL creates a new collection resource at the location specified by the Request-URI. If the resource identified by the Request-URI is non-null then the MKCOL MUST fail. During MKCOL processing, a server MUST make the Request-URI a member of its parent collection, unless the Request-URI is "/". If no such ancestor exists, the method MUST fail.
When the MKCOL operation creates a new collection resource, all ancestors MUST already exist, or the method MUST fail with a 409 (Conflict) status code. For example, if a request to create collection /a/b/c/d/ is made, and neither /a/b/ nor /a/b/c/ exists, the request must fail.


Possible return codes: 201 (Created) - The collection or structured resource was created in its entirety.
403 (Forbidden) - This indicates at least one of two conditions: 1) the server does not allow the creation of collections at the given location in its namespace, or 2) the parent collection of the Request-URI exists but cannot accept members.
405 (Method Not Allowed) - MKCOL can only be executed on a deleted/non-existent resource.
409 (Conflict) - A collection cannot be made at the Request-URI until one or more intermediate collections have been created.
507 (Insufficient Storage) - The resource does not have sufficient space to record the state of the resource after the execution of this method.
423 (Locked) - The resource is locked
Parameters:
  request - the current request
Parameters:
  name - the absolute name of the collection, eg 'folder1/folder2/new_folder' the status code, FxWebDavStatus.SC_CREATED if the operation was successfull




createResource
abstract public int createResource(HttpServletRequest request, String path)(Code)
Creates a resource.
Parameters:
  path - the absolute path of the new resource, eg 'folder1/folder2/file.txt'
Parameters:
  request - the request containing the data for the resource the status code, FxWebDavStatus.SC_CREATED if the operation was successful



deleteResource
abstract public int deleteResource(HttpServletRequest request, String path)(Code)
Deletes a resource.
Parameters:
  path - the absolute path of the new resource, eg 'folder1/folder2/file.txt'
Parameters:
  request - the request containing the data for the resource the status code, FxWebDavStatus.SC_OK if the operation was successful



getChildren
abstract public FxDavEntry[] getChildren(HttpServletRequest request, String name)(Code)
Returns all childs of a given resource.

A empty String denotes the root collection.
Parameters:
  request - the current request
Parameters:
  name - the name of the resource, eg 'myFolder1/myFolder2', 'myFolder1/File1.txt', 'File.txt' all childs of a given resource.




getResource
abstract public FxDavEntry getResource(HttpServletRequest request, String name)(Code)
Gets the resource stored under the given name, or null if the resource does not exist.

The returned resource may be a collection (directory) or file.
The path starts always from the root entry, but there is no starting '/' character.
A empty String denotes the root collection.
Parameters:
  request - the current request
Parameters:
  name - the name of the resource, eg 'myFolder1/myFolder2/demo.html' the resource




getSingleton
abstract public FxDavContext getSingleton()(Code)
Returns a singleton for the class. a singleton for the class.



moveResource
abstract public void moveResource(HttpServletRequest request, String src, String dest)(Code)
Moves a resource.
Parameters:
  src - the absolute path of the source resource, eg 'folder1/folder2/file.txt'
Parameters:
  dest - the absolute path of the destination resource, eg 'folder1/folder2/file_new.txt'
Parameters:
  request - the request containing the data for the resource



serviceResource
abstract public void serviceResource(HttpServletRequest request, HttpServletResponse response, String name) throws IOException(Code)
Serves a resource to the webdav client.
Parameters:
  request - the current request
Parameters:
  response - the response
Parameters:
  name - the name of the resource, eg 'myFolder1/File1.txt'
throws:
  IOException - if the resource could not be served



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.