Package org.trellisldp.webdav
Class TrellisWebDAV
- java.lang.Object
-
- org.trellisldp.webdav.TrellisWebDAV
-
@ApplicationScoped @Path("{path: .*}") @PermitAll public class TrellisWebDAV extends Object
Implements WebDAV HTTP methods.
-
-
Constructor Summary
Constructors Constructor Description TrellisWebDAV()For use with RESTeasy and CDI proxies.TrellisWebDAV(ServiceBundler services)Create a Trellis HTTP resource matcher.TrellisWebDAV(ServiceBundler services, Map<String,IRI> extensions, String baseUrl)Create a Trellis HTTP resource matcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyResource(AsyncResponse response, Request request, UriInfo uriInfo, HttpHeaders headers, SecurityContext security)Copy a resource.voidgetProperties(AsyncResponse response, Request request, UriInfo uriInfo, HttpHeaders headers, DavPropFind propfind)Get properties for a resource.voidmoveResource(AsyncResponse response, Request request, UriInfo uriInfo, HttpHeaders headers, SecurityContext security)Move a resource.voidupdateProperties(AsyncResponse response, Request request, UriInfo uriInfo, HttpHeaders headers, SecurityContext security, DavPropertyUpdate propertyUpdate)Update properties on a resource.
-
-
-
Constructor Detail
-
TrellisWebDAV
@Inject public TrellisWebDAV(ServiceBundler services)
Create a Trellis HTTP resource matcher.- Parameters:
services- the Trellis application bundle
-
TrellisWebDAV
public TrellisWebDAV()
For use with RESTeasy and CDI proxies.- API Note:
- This construtor is used by CDI runtimes that require a public, no-argument constructor. It should not be invoked directly in user code.
-
TrellisWebDAV
public TrellisWebDAV(ServiceBundler services, Map<String,IRI> extensions, String baseUrl)
Create a Trellis HTTP resource matcher.- Parameters:
services- the Trellis application bundleextensions- the extension graphsbaseUrl- the base URL
-
-
Method Detail
-
copyResource
@COPY @Timed public void copyResource(@Suspended AsyncResponse response, @Context Request request, @Context UriInfo uriInfo, @Context HttpHeaders headers, @Context SecurityContext security)
Copy a resource.- Parameters:
response- the async responserequest- the requesturiInfo- the URI infoheaders- the headerssecurity- the security context
-
moveResource
@MOVE @Timed public void moveResource(@Suspended AsyncResponse response, @Context Request request, @Context UriInfo uriInfo, @Context HttpHeaders headers, @Context SecurityContext security)
Move a resource.- Parameters:
response- the async responserequest- the requesturiInfo- the URI infoheaders- the headerssecurity- the security context
-
getProperties
@PROPFIND @Consumes("application/xml") @Produces("application/xml") @Timed public void getProperties(@Suspended AsyncResponse response, @Context Request request, @Context UriInfo uriInfo, @Context HttpHeaders headers, DavPropFind propfind) throws ParserConfigurationException
Get properties for a resource.- Parameters:
response- the responserequest- the requesturiInfo- the URI infoheaders- the headerspropfind- the propfind- Throws:
ParserConfigurationException- if the XML parser is not properly configured
-
updateProperties
@PROPPATCH @Consumes("application/xml") @Produces("application/xml") @Timed public void updateProperties(@Suspended AsyncResponse response, @Context Request request, @Context UriInfo uriInfo, @Context HttpHeaders headers, @Context SecurityContext security, DavPropertyUpdate propertyUpdate) throws ParserConfigurationException
Update properties on a resource.- Parameters:
response- the async responserequest- the requesturiInfo- the URI infoheaders- the headerssecurity- the security contextpropertyUpdate- the property update request- Throws:
ParserConfigurationException- if the XML parser is not properly configured
-
-