Java Doc for WebDAVSource.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » cocoon » components » source » impl » 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 » Content Management System » apache lenya 2.0 » org.apache.cocoon.components.source.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.cocoon.components.source.impl.WebDAVSource

WebDAVSource
public class WebDAVSource extends AbstractLogEnabled implements Source,TraversableSource,ModifiableSource,ModifiableTraversableSource,InspectableSource,MoveableSource(Code)
A source implementation to get access to WebDAV repositories.

Protocol syntax

webdav://[user[:password]@]host[:port][/path][?cocoon:webdav-depth][&cocoon:webdav-action]

  • cocoon:webdav-depth allows to specify the default depth to use during initialization of the webdav resource.
  • cocoon:webdav-action allows to specify a default action to take upon initialization of the webdav resource.


version:
   $Id: WebDAVSource.java 479296 2006-11-26 06:28:51Z antonio $





Method Summary
public  booleancanCancel(OutputStream stream)
    
public  voidcancel(OutputStream stream)
     Cancel the data sent to an OutputStream returned by WebDAVSource.getOutputStream() .
public  voidcopyTo(Source source)
     Copy the current source to a specified destination.
public  voiddelete()
     Delete this source (unimplemented).
public  booleanexists()
    
public  SourcegetChild(String childName)
     Get a collection child.
public  CollectiongetChildren()
     Get the collection children.
public  longgetContentLength()
    
public  InputStreamgetInputStream()
     Return an InputStream object to read from the source.
public  longgetLastModified()
     Get the last modification date.
public  StringgetMimeType()
     The mime-type of the content described by this object.
public  StringgetName()
     Get the name of this resource.
public  OutputStreamgetOutputStream()
     Get an OutputStream where raw bytes can be written to.
public  SourcegetParent()
     Get the parent.
public  StringgetScheme()
     Get the scheme for this Source.
protected  StringgetSecureURI()
    
public  SourceProperty[]getSourceProperties()
    
public  SourcePropertygetSourceProperty(String namespace, String name)
     Returns a property from a source.
public  StringgetURI()
    
public  SourceValiditygetValidity()
     Get the Validity object.
public  booleanisCollection()
     Check if this source is a collection.
public  voidmakeCollection()
     Create the collection, if it doesn't exist.
public  voidmoveTo(Source source)
     Move the current source to a specified destination.
public static  WebDAVSourcenewWebDAVSource(HttpURL url, String protocol, Logger logger, WebDAVEventFactory eventfactory)
     Static factory method to obtain a Source.
public  voidrefresh()
     Refresh the content of this object after the underlying data content has changed.
public  voidremoveSourceProperty(String namespace, String name)
     Remove a specified source property.
public  voidsetSourceProperty(SourceProperty sourceproperty)
     Sets a property for a source.



Method Detail
canCancel
public boolean canCancel(OutputStream stream)(Code)
Can the data sent to an OutputStream returned by WebDAVSource.getOutputStream() be cancelled ? true if the stream can be cancelled



cancel
public void cancel(OutputStream stream) throws SourceException(Code)
Cancel the data sent to an OutputStream returned by WebDAVSource.getOutputStream() .

After cancel, the stream should no more be used.




copyTo
public void copyTo(Source source) throws SourceException(Code)
Copy the current source to a specified destination.
Parameters:
  source -
throws:
  SourceException - If an exception occurs during the copy.



delete
public void delete() throws SourceException(Code)
Delete this source (unimplemented).
See Also:   org.apache.excalibur.source.ModifiableSource.delete



exists
public boolean exists()(Code)
Does this source actually exist ? true if the resource exists.



getChild
public Source getChild(String childName) throws SourceException(Code)
Get a collection child.
See Also:   org.apache.excalibur.source.TraversableSource.getChild(java.lang.String)



getChildren
public Collection getChildren() throws SourceException(Code)
Get the collection children.
See Also:   org.apache.excalibur.source.TraversableSource.getChildren



getContentLength
public long getContentLength()(Code)
Return the content length of the content or -1 if the length is unknown



getInputStream
public InputStream getInputStream() throws IOException, SourceException(Code)
Return an InputStream object to read from the source. This is the data at the point of invocation of this method, so if this is Modifiable, you might get different content from two different invocations.



getLastModified
public long getLastModified()(Code)
Get the last modification date. The last modification in milliseconds since January 1, 1970 GMTor 0 if it is unknown



getMimeType
public String getMimeType()(Code)
The mime-type of the content described by this object. If the source is not able to determine the mime-type by itself this can be null.



getName
public String getName()(Code)
Get the name of this resource.
See Also:   org.apache.excalibur.source.TraversableSource.getName



getOutputStream
public OutputStream getOutputStream() throws IOException(Code)
Get an OutputStream where raw bytes can be written to. The signification of these bytes is implementation-dependent and is not restricted to a serialized XML document. a stream to write to



getParent
public Source getParent() throws SourceException(Code)
Get the parent.
See Also:   org.apache.excalibur.source.TraversableSource.getParent



getScheme
public String getScheme()(Code)
Get the scheme for this Source.



getSecureURI
protected String getSecureURI()(Code)
Return the URI securely, without username and password



getSourceProperties
public SourceProperty[] getSourceProperties() throws SourceException(Code)
Returns a enumeration of the properties Enumeration of SourceProperty
throws:
  SourceException - If an exception occurs.



getSourceProperty
public SourceProperty getSourceProperty(String namespace, String name) throws SourceException(Code)
Returns a property from a source.
Parameters:
  namespace - Namespace of the property
Parameters:
  name - Name of the property Property of the source.
throws:
  SourceException - If an exception occurs.



getURI
public String getURI()(Code)
Return the unique identifer for this source



getValidity
public SourceValidity getValidity()(Code)
Get the Validity object. This can either wrap the last modification date or the expires information or... If it is currently not possible to calculate such an information null is returned.



isCollection
public boolean isCollection()(Code)
Check if this source is a collection.
See Also:   org.apache.excalibur.source.TraversableSource.isCollection



makeCollection
public void makeCollection() throws SourceException(Code)
Create the collection, if it doesn't exist.
See Also:   org.apache.excalibur.source.ModifiableTraversableSource.makeCollection



moveTo
public void moveTo(Source source) throws SourceException(Code)
Move the current source to a specified destination.
Parameters:
  source -
throws:
  SourceException - If an exception occurs during the move.



newWebDAVSource
public static WebDAVSource newWebDAVSource(HttpURL url, String protocol, Logger logger, WebDAVEventFactory eventfactory) throws URIException(Code)
Static factory method to obtain a Source.



refresh
public void refresh()(Code)
Refresh the content of this object after the underlying data content has changed.



removeSourceProperty
public void removeSourceProperty(String namespace, String name) throws SourceException(Code)
Remove a specified source property.
Parameters:
  namespace - Namespace of the property.
Parameters:
  name - Name of the property.
throws:
  SourceException - If an exception occurs.



setSourceProperty
public void setSourceProperty(SourceProperty sourceproperty) throws SourceException(Code)
Sets a property for a source.
Parameters:
  sourceproperty - Property of the source
throws:
  SourceException - If an exception occurs during this operation



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