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


com.ibm.webdav.impl.IRResource

All known Subclasses:   com.ibm.webdav.protocol.http.ResourceHTTPStub,  com.ibm.webdav.impl.ResourceImpl,
IRResource
public interface IRResource extends java.rmi.Remote(Code)
A Resource represents any network data object or service that can be identified by a URL. Resources may be available in multiple representations (e.g., multiple languages, data formats, size, resolutions) or vary in other ways.

Resources may have arbitrary properties consisting of name/value pairs that define additional meta-data about the resource. A resource may be locked in order to serialize updates by multiple users in a distributed environment. Resources may be copied and moved in the network, and may be deleted when no longer needed.

Resources may be logically grouped into collections for content management. A resource collection may have properties of its own, and can be moved and copied just like any other resource.

The Resource methods correspond to the capabilities defined by the WebDAV extensions to HTTP. These methods allow clients to perform remote web content authoring operations.

Note: all methods that may modify a locked resource (either this resource or one of its collaborators) must include the lock token of the effected resources as a Precondition in the resource request context before the method is called. See Precondition.addStateTokenCondition() for a method that provides a convenient way to set these preconditions.


See Also:   com.ibm.webdav.Collection
See Also:   com.ibm.webdav.ResourceP
See Also:   com.ibm.webdav.Precondition.addStateTokenCondition
author:
   Jim Amsden <jamsden@us.ibm.com>




Method Summary
public  voidcloseContentsOutputStream(ResourceContext context)
     This method must be called after the client has completed writing to the contents output stream that was obtained from getContentsOutputStream().
public  voidcloseContentsOutputStream(ResourceContext context, String sContentType)
    
public  MultiStatuscopy(ResourceContext context, String destinationURL, boolean overwrite, Vector propertiesToCopy)
     Copy this resource to the destination URL. Partial results are possible, check the returned status for details.
Parameters:
  destinationURL - the destination
Parameters:
  overwrite - true implies overwrite the destination if it exists
Parameters:
  propertiesToCopy - a collection of properties that must be copied orthe method will fail.
public  MultiStatusdelete(ResourceContext context)
     Delete this resouce from the server.
public  InputStreamgetContentsInputStream(ResourceContext context)
     Get an InputStream for accessing the contents of this resource.
public  OutputStreamgetContentsOutputStream(ResourceContext context)
     Get an OutputStream for setting the contents of this resource.
public  voidgetMetaInformation(ResourceContext context)
     This method can be used for obtaining meta-information about this resource without actually reading the resource contents.
public  MultiStatusgetProperties(ResourceContext context)
     Get all the properties of this resource. a MultiStatus of PropertyResponses.
public  MultiStatusgetProperties(ResourceContext context, PropertyName names)
     Get the named properties of this resource.
public  MultiStatusgetPropertyNames(ResourceContext context)
     Get the names of all properties for this resource.
public  MultiStatuslock(ResourceContext context, String scope, String type, int timeout, Element owner)
     Lock this resource based on the given parameters.
public  MultiStatusmove(ResourceContext context, String destinationURL, boolean overwrite, Vector propertiesToMove)
     Move this resource to the destination URL. Partial results are possible, check the returned status for details
Parameters:
  destinationURL - the destination
Parameters:
  overwrite - true implies overrite the destination if it exists
Parameters:
  propertiesToMove - a collection of properties that must be moved orthe method will fail.
public  byte[]performWith(ResourceContext context, String args)
     This method treats this resource as a method or service, and sends its parameter to this resource where it is handled in a resource-specific way.
public  MultiStatusrefreshLock(ResourceContext context, String lockToken, int timeout)
     Refresh the lock on this resource by resetting the lock timeout. The context must contain the proper authorization for the requesting principal.
Parameters:
  lockToken - the lock token identifying the lock.
Parameters:
  timeout - the new timeout in seconds.
public  MultiStatussetProperties(ResourceContext context, Document updates)
     Edit the properties of a resource.
public  MultiStatusunlock(ResourceContext context, String lockToken)
     Unlock the lock identified by the lockToken on this resource.



Method Detail
closeContentsOutputStream
public void closeContentsOutputStream(ResourceContext context) throws WebDAVException(Code)
This method must be called after the client has completed writing to the contents output stream that was obtained from getContentsOutputStream().
exception:
  com.ibm.webdav.WebDAVException -



closeContentsOutputStream
public void closeContentsOutputStream(ResourceContext context, String sContentType) throws WebDAVException(Code)

Parameters:
  context -
Parameters:
  sContentType -



copy
public MultiStatus copy(ResourceContext context, String destinationURL, boolean overwrite, Vector propertiesToCopy) throws WebDAVException(Code)
Copy this resource to the destination URL. Partial results are possible, check the returned status for details.
Parameters:
  destinationURL - the destination
Parameters:
  overwrite - true implies overwrite the destination if it exists
Parameters:
  propertiesToCopy - a collection of properties that must be copied orthe method will fail. propertiesToCopy may have one of the following values:
  • null - ignore properties that cannot be copied
  • empty collection - all properties must be copied or the method will fail
  • a collection of URIs - a list of the properties that must be copied or the method will fail
the status of the copy operation for each resource copied
exception:
  com.ibm.webdav.WebDAVException -



delete
public MultiStatus delete(ResourceContext context) throws WebDAVException(Code)
Delete this resouce from the server. The actual effect of the delete operation is determined by the underlying repository manager. The visible effect to WebDAV is that the resource is no longer available. a MultiStatus containing the status of the delete method on eacheffected resource.
exception:
  com.ibm.webdav.WebDAVException -



getContentsInputStream
public InputStream getContentsInputStream(ResourceContext context) throws WebDAVException(Code)
Get an InputStream for accessing the contents of this resource. This method may provide more efficient access for resources that have large contents. Clients may want to create a Reader to perform appropriate character conversions on this stream. an InputStream on the contents
exception:
  com.ibm.webdav.WebDAVException -



getContentsOutputStream
public OutputStream getContentsOutputStream(ResourceContext context) throws WebDAVException(Code)
Get an OutputStream for setting the contents of this resource. This method may provide more efficient access for resources that have large contents. Remember to call closeContentsOutputStream() when all the data has been written. an OutputStream to set the contents
exception:
  com.ibm.webdav.WebDAVException -



getMetaInformation
public void getMetaInformation(ResourceContext context) throws WebDAVException(Code)
This method can be used for obtaining meta-information about this resource without actually reading the resource contents. This meta-information is maintained by the server in addition to the resource properties.

After this call, the resource context has been updated and getStatusCode(), getStatusMessage(), and getResponseContext() as well as all the ResourceContext methods return updated values based on the current state of the resource.

This methods corresponds to the HTTP HEAD method.


exception:
  com.ibm.webdav.WebDAVException -



getProperties
public MultiStatus getProperties(ResourceContext context) throws WebDAVException(Code)
Get all the properties of this resource. a MultiStatus of PropertyResponses. It should contain only oneresponse element.
See Also:   com.ibm.webdav.MultiStatus
See Also:   com.ibm.webdav.PropertyResponse
exception:
  com.ibm.webdav.WebDAVException -



getProperties
public MultiStatus getProperties(ResourceContext context, PropertyName names) throws WebDAVException(Code)
Get the named properties of this resource.
Parameters:
  names - an array of property names to retrieve a MultiStatus of PropertyResponses
exception:
  com.ibm.webdav.WebDAVException -
See Also:   com.ibm.webdav.PropertyResponse



getPropertyNames
public MultiStatus getPropertyNames(ResourceContext context) throws WebDAVException(Code)
Get the names of all properties for this resource. The result is similar to getProperties(), but the properties have no values. a MultiStatus of PropertyResponses(PropertyValue.value is always null, PropertyValue.status contains the status)
exception:
  com.ibm.webdav.WebDAVException -
See Also:   com.ibm.webdav.PropertyResponse



lock
public MultiStatus lock(ResourceContext context, String scope, String type, int timeout, Element owner) throws WebDAVException(Code)
Lock this resource based on the given parameters. This allows control of the lock scope (exclusive or shared) the lock type (write), owner information, etc.
Parameters:
  scope - the scope of the lock, exclusive or shared
Parameters:
  type - the type of the lock, currently only write
Parameters:
  timeout - the number of seconds before the lock times out or-1 for infinite timeout.
Parameters:
  owner - an XML element containing useful information that can beused to identify the owner of the lock. An href to a home page, anemail address, phone number, etc. Can be null if no owner informationis provided. a MultiStatus containing a lockdiscovery property indicatingthe results of the lock operation.
exception:
  com.ibm.webdav.WebDAVException -



move
public MultiStatus move(ResourceContext context, String destinationURL, boolean overwrite, Vector propertiesToMove) throws WebDAVException(Code)
Move this resource to the destination URL. Partial results are possible, check the returned status for details
Parameters:
  destinationURL - the destination
Parameters:
  overwrite - true implies overrite the destination if it exists
Parameters:
  propertiesToMove - a collection of properties that must be moved orthe method will fail. propertiesToMove may have one of the following values:
  • null - ignore properties that cannot be moved
  • empty collection - all properties must be moved or the method will fail
  • a collection of URIs - a list of the properties that must be moved or the method will fail
the status of the move operation for each resource moved
exception:
  com.ibm.webdav.WebDAVException -



performWith
public byte[] performWith(ResourceContext context, String args) throws WebDAVException(Code)
This method treats this resource as a method or service, and sends its parameter to this resource where it is handled in a resource-specific way. For example, sending data from an HTML form to a URL representing a Servlet or CGI script that processes the form data to produce some result.
Parameters:
  args - a string representing the arguments to the method represented by this URL. Thearguments are in the form ?parameterName1=value1&parameterName2=value2... as specifiedfor URL queries. the results of sending the arguments to the URL
exception:
  com.ibm.webdav.WebDAVException -



refreshLock
public MultiStatus refreshLock(ResourceContext context, String lockToken, int timeout) throws WebDAVException(Code)
Refresh the lock on this resource by resetting the lock timeout. The context must contain the proper authorization for the requesting principal.
Parameters:
  lockToken - the lock token identifying the lock.
Parameters:
  timeout - the new timeout in seconds. -1 means infinite timeout. updated information about the lock status of this resource
exception:
  com.ibm.webdav.WebDAVException -



setProperties
public MultiStatus setProperties(ResourceContext context, Document updates) throws WebDAVException(Code)
Edit the properties of a resource. The updates must refer to a Document containing a WebDAV DAV:propertyupdates element as the document root.
Parameters:
  updates - an XML Document containing DAV:propertyupdate elements describing the edits to be made a MultiStatus indicating the status of the updates
exception:
  com.ibm.webdav.WebDAVException -



unlock
public MultiStatus unlock(ResourceContext context, String lockToken) throws WebDAVException(Code)
Unlock the lock identified by the lockToken on this resource. The request context must contain the proper authorization.
Parameters:
  lockToken - the lock token obtained from the ActiveLock of a previous lock() or getLocks(). a MultiStatus containing any responses on resources that could notbe unlocked.
exception:
  com.ibm.webdav.WebDAVException -



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