Java Doc for NamespaceManager.java in  » Content-Management-System » harmonise » com » ibm » webdav » fileSystem » 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 » harmonise » com.ibm.webdav.fileSystem 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ibm.webdav.fileSystem.NamespaceManager

NamespaceManager
public class NamespaceManager implements com.ibm.webdav.impl.NamespaceManager(Code)
fileSystem.NamespaceManager implements all WebDAV namespace methods using the native file system as a repository manager. A resource collection corresponds to a directory while a resource corresponds to a file in a directory.
author:
   Jim Amsden <jamsden@us.ibm.com>



Constructor Summary
public  NamespaceManager()
     Create a NamespaceManager for creating resources.
public  NamespaceManager(ResourceImpl resource)
     Create a NamesapceManager for a given resource.

Method Summary
public  voidcloseContentsOutputStream()
     Close any opened OutputStream on the contents of the managed resource.
public  voidcloseContentsOutputStream(String sContentType)
    
public  voidcreateBinding(URL destURL)
    
public  voidcreateBinding(String bindName, URL source)
    
public  voidcreateCollection(String localName)
     Create a collection with the given local name by creating a directory with the local name.
public  voidcreateLockNullResource()
     Create this resource as a lock-null resource, a resource created by locking one that did not previously exist.
public  voiddelete()
     Delete the managed resource from the repository.
public  booleanexists()
     See if this resource exists in the repository.
public  ListgetAllowedMethods()
    
public  StringgetContentType()
    
public  InputStreamgetContentsInputStream()
     Open an InputStream on the contents of the managed resource.
public  OutputStreamgetContentsOutputStream()
     Open an OutputStream in order to write the contents of the managed resource.
public  VectorgetMembers()
     Get the members of a collection.
public  StringgetParentName()
     Get the name of the collection (directory) containing this resource (file).
public static  StringguessAtContentTypeForName(String fn)
     Guess at the mimetype of a file based on it's filename extention.
public  voidinitialize(ResourceImpl resource)
     Initialize this NamesapceManager on a given resource.
public  booleanisCollection()
    
public  booleanisLockNull()
     Is this resource in the lock-null state? In this implementation, does this resource have a properties file, but no contents file.
public  booleanisVersionable()
    
public  voidmove(String path)
     Move the managed resource.
public  byte[]performWith(String args)
     Treat the managed resource as a method and execute it with the given arguments. Ths should be done by the host Web server.
public  voidsetOrdering(Document orderPatch)
    


Constructor Detail
NamespaceManager
public NamespaceManager()(Code)
Create a NamespaceManager for creating resources. (This is necessary because createResource can't be static and declared in the NamespaceManager interface.)



NamespaceManager
public NamespaceManager(ResourceImpl resource)(Code)
Create a NamesapceManager for a given resource.
Parameters:
  resource - the resource to manage




Method Detail
closeContentsOutputStream
public void closeContentsOutputStream() throws WebDAVException(Code)
Close any opened OutputStream on the contents of the managed resource. In this case, just close any open file output stream.
exception:
  com.ibm.webdav.WebDAVException -



closeContentsOutputStream
public void closeContentsOutputStream(String sContentType) throws WebDAVException(Code)



createBinding
public void createBinding(URL destURL) throws WebDAVException(Code)
create a binding
exception:
  com.ibm.webdav.WebDAVException -



createBinding
public void createBinding(String bindName, URL source) throws WebDAVException(Code)



createCollection
public void createCollection(String localName) throws WebDAVException(Code)
Create a collection with the given local name by creating a directory with the local name.
Parameters:
  localName - the repository specific local name for the resource
exception:
  com.ibm.webdav.WebDAVException -



createLockNullResource
public void createLockNullResource() throws WebDAVException(Code)
Create this resource as a lock-null resource, a resource created by locking one that did not previously exist. This implementation creates a properties file for the resource, but no resource file. That is, a lock-null resource is a resource with no contents file, but having a properties file.
exception:
  com.ibm.webdav.WebDAVException -



delete
public void delete() throws WebDAVException(Code)
Delete the managed resource from the repository. Just delete the file or directory after making sure the server has sufficient permission.
exception:
  com.ibm.webdav.WebDAVException -



exists
public boolean exists() throws WebDAVException(Code)
See if this resource exists in the repository. true if the resource exists, false otherwise.
exception:
  com.ibm.webdav.WebDAVException -



getAllowedMethods
public List getAllowedMethods() throws WebDAVException(Code)



getContentType
public String getContentType() throws WebDAVException(Code)



getContentsInputStream
public InputStream getContentsInputStream() throws WebDAVException(Code)
Open an InputStream on the contents of the managed resource. This implementation opens the resource file, or gets an input stream on the an XML document describing the contents of a directory. an InputStream on the contents of the managed resource.
exception:
  com.ibm.webdav.WebDAVException -



getContentsOutputStream
public OutputStream getContentsOutputStream() throws WebDAVException(Code)
Open an OutputStream in order to write the contents of the managed resource. an OutputStream on the contents of the managed resource.
exception:
  com.ibm.webdav.WebDAVException -



getMembers
public Vector getMembers() throws WebDAVException(Code)
Get the members of a collection. a Vector of Resources (ResourceP or CollectionP)
exception:
  com.ibm.webdav.WebDAVException -



getParentName
public String getParentName() throws WebDAVException(Code)
Get the name of the collection (directory) containing this resource (file). the parent collection name, always ending in a separator
exception:
  com.ibm.webdav.WebDAVException -



guessAtContentTypeForName
public static String guessAtContentTypeForName(String fn)(Code)
Guess at the mimetype of a file based on it's filename extention.
Parameters:
  fn - the filename the mimetype string



initialize
public void initialize(ResourceImpl resource)(Code)
Initialize this NamesapceManager on a given resource.
Parameters:
  resource - the resource to manage



isCollection
public boolean isCollection() throws WebDAVException(Code)
Is the managed resource a collection (i.e., is this file a directory)? true if this resource is a collection, false otherwise
exception:
  com.ibm.webdav.WebDAVException -



isLockNull
public boolean isLockNull() throws WebDAVException(Code)
Is this resource in the lock-null state? In this implementation, does this resource have a properties file, but no contents file. true if this resource is a lock-null resource, false otherwise
exception:
  com.ibm.webdav.WebDAVException -



isVersionable
public boolean isVersionable() throws WebDAVException(Code)



move
public void move(String path) throws WebDAVException(Code)
Move the managed resource.
exception:
  com.ibm.webdav.WebDAVException -



performWith
public byte[] performWith(String args) throws WebDAVException(Code)
Treat the managed resource as a method and execute it with the given arguments. Ths should be done by the host Web server. Executes CGI scripts and Servlets. But the repository may have some additional capabilities of its own.
Parameters:
  args - the URL query string (text following the ?) the contents of the result
exception:
  com.ibm.webdav.WebDAVException -



setOrdering
public void setOrdering(Document orderPatch)(Code)



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.