Class NodeServlet.CreateOperation

  • All Implemented Interfaces:
    com.composum.sling.core.servlet.ServletOperation
    Direct Known Subclasses:
    NodeServlet.PutCreateOperation
    Enclosing class:
    NodeServlet

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

      • CreateOperation

        protected CreateOperation()
    • 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)
                                                                                         throws IOException
        Throws:
        IOException