Package com.composum.sling.nodes.servlet
Class NodeServlet.ReferenceOperation
- java.lang.Object
-
- com.composum.sling.nodes.servlet.NodeServlet.ReferenceOperation
-
- All Implemented Interfaces:
com.composum.sling.core.servlet.ServletOperation
- Enclosing class:
- NodeServlet
protected class NodeServlet.ReferenceOperation extends Object implements com.composum.sling.core.servlet.ServletOperation
similar to the 'tree' operation creates this operation a JSON object for the requested node; but this node is requested by its id (UUID) in the suffix or as parameter; this operation provides data for reference retrieval (get the node of a reference) suffix: the reference of the node in a 'path notation' selectors / parameters: - 'label': 'name' or 'title' - selects the value to use for the nodes 'text' attribute ' 'id': a parameter with the reference used instead of the id from the suffix URL examples: - http://host/bin/cpm/nodes/node.reference.json/node-id - http://host/bin/cpm/nodes/node.reference.title.json/node-id - http://host/bin/cpm/nodes/node.reference.json?id=node-id
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ReferenceOperation()
-
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)
-
-
-
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.servlet.ServletException, IOException
- Specified by:
doIt
in interfacecom.composum.sling.core.servlet.ServletOperation
- Throws:
javax.servlet.ServletException
IOException
-
-