org.apache.clerezza.platform.content
Class CollectionTypeHandler
java.lang.Object
org.apache.clerezza.platform.content.AbstractDiscobitsHandler
org.apache.clerezza.platform.content.DiscobitsTypeHandler
org.apache.clerezza.platform.content.CollectionTypeHandler
- All Implemented Interfaces:
- DiscobitsHandler
@Services(value={@Service(value=java.lang.Object.class),@Service(value=CollectionTypeHandler.class)})
@Property(name="org.apache.clerezza.platform.typehandler",
boolValue=true)
public class CollectionTypeHandler- extends DiscobitsTypeHandler
Provides HTTP Methods for WebDav
- Author:
- ali
|
Method Summary |
protected void |
activate(org.osgi.service.component.ComponentContext componentContext)
The activate method is called when SCR activates the component configuration. |
Object |
copy()
Copies a resource |
org.apache.clerezza.rdf.utils.GraphNode |
getResource(javax.ws.rs.core.UriInfo uriInfo)
Returns a GraphNode of the requested collection |
Object |
lock()
Locks a resource |
Object |
unlock()
Unlocks a resource |
| Methods inherited from class org.apache.clerezza.platform.content.DiscobitsTypeHandler |
bindMetaDataGenerator, delete, getMetaDataGenerators, getMGraph, mkcol, move, options, propfind, proppatch, putInfoDiscobit, unbindMetaDataGenerator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionTypeHandler
public CollectionTypeHandler()
activate
protected void activate(org.osgi.service.component.ComponentContext componentContext)
- The activate method is called when SCR activates the component configuration.
This method gets the system graph or create a new one if it doesn't exist.
- Overrides:
activate in class DiscobitsTypeHandler
- Parameters:
componentContext -
getResource
public org.apache.clerezza.rdf.utils.GraphNode getResource(@Context
javax.ws.rs.core.UriInfo uriInfo)
- Returns a GraphNode of the requested collection
- Overrides:
getResource in class DiscobitsTypeHandler
- Returns:
lock
public Object lock()
- Locks a resource
- Returns:
- returns a 501 Not Implemented response
unlock
public Object unlock()
- Unlocks a resource
- Returns:
- returns a 501 Not Implemented response
copy
public Object copy()
- Copies a resource
- Returns:
- returns a 501 Not Implemented response
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.