Package com.composum.sling.nodes.tools
Class SettingsServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- org.apache.sling.api.servlets.SlingSafeMethodsServlet
-
- com.composum.sling.nodes.tools.SettingsServlet
-
- All Implemented Interfaces:
RestrictedService,Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class SettingsServlet extends org.apache.sling.api.servlets.SlingSafeMethodsServlet implements RestrictedService
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.osgi.framework.BundleContextbundleContextstatic StringHTTP_SERVICEstatic StringRESOURCE_TYPEprotected ServiceRestrictionsrestrictionsstatic StringSERVICE_KEYprotected org.apache.sling.settings.SlingSettingsServiceslingSettingsService
-
Constructor Summary
Constructors Constructor Description SettingsServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoGet(@NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull org.apache.sling.api.SlingHttpServletResponse response)ServiceRestrictions.KeygetServiceKey()protected Map<String,Object>httpSettings()protected Map<String,Object>slingSettings()protected Map<String,Object>systemSettings()protected voidwriteProperties(@NotNull com.google.gson.stream.JsonWriter writer, @NotNull Map<String,Object> values)-
Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet
doGeneric, doHead, doOptions, doTrace, getAllowedRequestMethods, getServletInfo, handleMethodNotImplemented, mayService, service, service
-
-
-
-
Field Detail
-
RESOURCE_TYPE
public static final String RESOURCE_TYPE
- See Also:
- Constant Field Values
-
SERVICE_KEY
public static final String SERVICE_KEY
- See Also:
- Constant Field Values
-
HTTP_SERVICE
public static final String HTTP_SERVICE
- See Also:
- Constant Field Values
-
slingSettingsService
protected org.apache.sling.settings.SlingSettingsService slingSettingsService
-
restrictions
protected ServiceRestrictions restrictions
-
bundleContext
protected org.osgi.framework.BundleContext bundleContext
-
-
Method Detail
-
getServiceKey
@NotNull public ServiceRestrictions.Key getServiceKey()
- Specified by:
getServiceKeyin interfaceRestrictedService
-
doGet
protected void doGet(@NotNull @NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull @NotNull org.apache.sling.api.SlingHttpServletResponse response) throws IOException- Overrides:
doGetin classorg.apache.sling.api.servlets.SlingSafeMethodsServlet- Throws:
IOException
-
writeProperties
protected void writeProperties(@NotNull @NotNull com.google.gson.stream.JsonWriter writer, @NotNull @NotNull Map<String,Object> values) throws IOException- Throws:
IOException
-
-