@ApplicationScoped @Path(value="{path: .*}") public class TrellisWebDAV extends Object
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
copyResource(AsyncResponse response,
Request request,
UriInfo uriInfo,
HttpHeaders headers,
SecurityContext security)
Copy a resource.
|
void |
getProperties(AsyncResponse response,
Request request,
UriInfo uriInfo,
HttpHeaders headers,
DavPropFind propfind)
Get properties for a resource.
|
void |
moveResource(AsyncResponse response,
Request request,
UriInfo uriInfo,
HttpHeaders headers,
SecurityContext security)
Move a resource.
|
void |
updateProperties(AsyncResponse response,
Request request,
UriInfo uriInfo,
HttpHeaders headers,
SecurityContext security,
DavPropertyUpdate propertyUpdate)
Update properties on a resource.
|
@Inject public TrellisWebDAV(ServiceBundler services)
services - the Trellis application bundlepublic TrellisWebDAV()
public TrellisWebDAV(ServiceBundler services, Map<String,IRI> extensions, String baseUrl)
services - the Trellis application bundleextensions - the extension graphsbaseUrl - the base URL@COPY @Timed public void copyResource(@Suspended AsyncResponse response, @Context Request request, @Context UriInfo uriInfo, @Context HttpHeaders headers, @Context SecurityContext security)
response - the async responserequest - the requesturiInfo - the URI infoheaders - the headerssecurity - the security context@MOVE @Timed public void moveResource(@Suspended AsyncResponse response, @Context Request request, @Context UriInfo uriInfo, @Context HttpHeaders headers, @Context SecurityContext security)
response - the async responserequest - the requesturiInfo - the URI infoheaders - the headerssecurity - the security context@PROPFIND @Consumes(value="application/xml") @Produces(value="application/xml") @Timed public void getProperties(@Suspended AsyncResponse response, @Context Request request, @Context UriInfo uriInfo, @Context HttpHeaders headers, DavPropFind propfind) throws ParserConfigurationException
response - the responserequest - the requesturiInfo - the URI infoheaders - the headerspropfind - the propfindParserConfigurationException - if the XML parser is not properly configured@PROPPATCH @Consumes(value="application/xml") @Produces(value="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
response - the async responserequest - the requesturiInfo - the URI infoheaders - the headerssecurity - the security contextpropertyUpdate - the property update requestParserConfigurationException - if the XML parser is not properly configured