Package com.composum.sling.nodes.servlet
Class NodeServlet.CopyOperation
- java.lang.Object
-
- com.composum.sling.nodes.servlet.NodeServlet.CopyOperation
-
- All Implemented Interfaces:
com.composum.sling.core.servlet.ServletOperation
- Direct Known Subclasses:
NodeServlet.PutCopyOperation
- Enclosing class:
- NodeServlet
protected class NodeServlet.CopyOperation 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 Summary
Constructors Modifier Constructor Description protected
CopyOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doIt(@NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull org.apache.sling.api.SlingHttpServletResponse response, com.composum.sling.core.ResourceHandle resource)
com.composum.sling.core.servlet.NodeTreeServlet.NodeParameters
getNodeParameters(org.apache.sling.api.SlingHttpServletRequest request)
-
-
-
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 interfacecom.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
-
-