Package com.composum.sling.nodes.servlet
Class PropertyServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- org.apache.sling.api.servlets.SlingSafeMethodsServlet
-
- org.apache.sling.api.servlets.SlingAllMethodsServlet
-
- com.composum.sling.core.servlet.AbstractServiceServlet
-
- com.composum.sling.nodes.servlet.PropertyServlet
-
- All Implemented Interfaces:
RestrictedService,Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class PropertyServlet extends AbstractServiceServlet
The service servlet handling one single JCR property for one resource.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classPropertyServlet.BulkOperationprotected static classPropertyServlet.BulkParametersprotected classPropertyServlet.CheckXssOperationprotected classPropertyServlet.CopyOperationstatic classPropertyServlet.Extensionprotected classPropertyServlet.GetBinaryOperationprotected classPropertyServlet.GetOperationprotected classPropertyServlet.MapGetOperationstatic classPropertyServlet.Operationprotected classPropertyServlet.PostBinaryOperationThe POST (multipart form) implementation expects: the 'file' part (form element / parameter) with the binary content an optional 'name' parameter for the property name (default 'jcr:data')protected classPropertyServlet.PutBinaryOperationprotected classPropertyServlet.PutOperationprotected classPropertyServlet.PutUpdateOperationprotected classPropertyServlet.RemoveOperation
-
Field Summary
Fields Modifier and Type Field Description static StringFilterBINARY_PROPS_FILTERstatic StringFilterDEFAULT_PROPS_FILTERprotected ServletOperationSet<PropertyServlet.Extension,PropertyServlet.Operation>operationsstatic StringSERVICE_KEYstatic StringSERVLET_PATH-
Fields inherited from class com.composum.sling.core.servlet.AbstractServiceServlet
DATE_FORMAT, PARAM_BEFORE, PARAM_CMD, PARAM_FILE, PARAM_FILTER, PARAM_ID, PARAM_INDEX, PARAM_JCR_CONTENT, PARAM_LABEL, PARAM_MIME_TYPE, PARAM_NAME, PARAM_PATH, PARAM_QUERY, PARAM_RESOURCE_TYPE, PARAM_TITLE, PARAM_TYPE, PARAM_URL, PARAM_VALUE, PARAM_VERSION
-
-
Constructor Summary
Constructors Constructor Description PropertyServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull ServletOperationSet<PropertyServlet.Extension,PropertyServlet.Operation>getOperations()Each servlet implementation must provide access to its operation set for request delegation.voidinit()setup of the servlet operation set for this servlet instance-
Methods inherited from class com.composum.sling.core.servlet.AbstractServiceServlet
deactivate, doDelete, doGet, doPost, doPut, getJsonObject, getJsonObject, getJsonObject, getPath, getResource, getRestrictions, getServiceKey, isEnabled, jsonAnswerItemExists, jsonValue, methodDeletePermission, methodGetPermission, methodPostPermission, methodPutPermission, setNoCacheHeaders, tryToUseRawSuffix
-
Methods inherited from class org.apache.sling.api.servlets.SlingAllMethodsServlet
getAllowedRequestMethods, isMethodValid, mayService
-
Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet
doGeneric, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, service
-
-
-
-
Field Detail
-
SERVICE_KEY
public static final String SERVICE_KEY
- See Also:
- Constant Field Values
-
SERVLET_PATH
public static final String SERVLET_PATH
- See Also:
- Constant Field Values
-
DEFAULT_PROPS_FILTER
public static final StringFilter DEFAULT_PROPS_FILTER
-
BINARY_PROPS_FILTER
public static final StringFilter BINARY_PROPS_FILTER
-
operations
protected ServletOperationSet<PropertyServlet.Extension,PropertyServlet.Operation> operations
-
-
Method Detail
-
getOperations
@NotNull protected @NotNull ServletOperationSet<PropertyServlet.Extension,PropertyServlet.Operation> getOperations()
Description copied from class:AbstractServiceServletEach servlet implementation must provide access to its operation set for request delegation.- Specified by:
getOperationsin classAbstractServiceServlet
-
init
public void init() throws javax.servlet.ServletExceptionsetup of the servlet operation set for this servlet instance- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException
-
-