Class NodeServlet.UpdateFileOperation

  • All Implemented Interfaces:
    com.composum.sling.core.servlet.ServletOperation
    Enclosing class:
    NodeServlet

    protected class NodeServlet.UpdateFileOperation
    extends Object
    implements com.composum.sling.core.servlet.ServletOperation
    The 'fileUpdate' via POST (multipart form) implementation expects:
    • the 'path' parameter with the path of the new nodes parent
    • the 'file' part (form element / parameter) with the binary content (optional)
    • Constructor Detail

      • UpdateFileOperation

        protected UpdateFileOperation()
    • Method Detail

      • doIt

        public void doIt​(@NotNull
                         @NotNull org.apache.sling.api.SlingHttpServletRequest request,
                         @NotNull
                         @NotNull org.apache.sling.api.SlingHttpServletResponse response,
                         com.composum.sling.core.ResourceHandle resource)
                  throws javax.jcr.RepositoryException,
                         IOException
        Specified by:
        doIt in interface com.composum.sling.core.servlet.ServletOperation
        Throws:
        javax.jcr.RepositoryException
        IOException
      • getNodeParameters

        public com.composum.sling.core.servlet.NodeTreeServlet.NodeParameters getNodeParameters​(org.apache.sling.api.SlingHttpServletRequest request)