Class UnknownResource

java.lang.Object
org.nuxeo.ecm.webdav.resource.AbstractResource
org.nuxeo.ecm.webdav.resource.UnknownResource

public class UnknownResource extends AbstractResource
Resource for an unknown (ie non-existing) object. Used so that PUT / MKCOL requests can actually created a document / folder. Other requests will end up with a 404 error.
  • Field Details

    • backend

      protected Backend backend
  • Constructor Details

    • UnknownResource

      public UnknownResource(String path, javax.servlet.http.HttpServletRequest request, Backend backend)
  • Method Details

    • put

      public javax.ws.rs.core.Response put() throws IOException, URISyntaxException
      PUT over a non-existing resource: create a new file resource.
      Throws:
      IOException
      URISyntaxException
    • mkcol

      public javax.ws.rs.core.Response mkcol() throws IOException, URISyntaxException
      MKCOL over a non-existing resource: create a new folder resource.
      Throws:
      IOException
      URISyntaxException
    • delete

      public javax.ws.rs.core.Response delete()
    • copy

      public javax.ws.rs.core.Response copy()
    • move

      public javax.ws.rs.core.Response move()
    • propfind

      public javax.ws.rs.core.Response propfind()
    • proppatch

      public javax.ws.rs.core.Response proppatch()
    • head

      public javax.ws.rs.core.Response head()