Class SettingsServlet

  • All Implemented Interfaces:
    com.composum.sling.core.service.RestrictedService, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class SettingsServlet
    extends org.apache.sling.api.servlets.SlingSafeMethodsServlet
    implements com.composum.sling.core.service.RestrictedService
    See Also:
    Serialized Form
    • Field Detail

      • slingSettingsService

        protected org.apache.sling.settings.SlingSettingsService slingSettingsService
      • restrictions

        protected com.composum.sling.core.service.ServiceRestrictions restrictions
      • bundleContext

        protected org.osgi.framework.BundleContext bundleContext
    • Constructor Detail

      • SettingsServlet

        public SettingsServlet()
    • Method Detail

      • getServiceKey

        @NotNull
        public com.composum.sling.core.service.ServiceRestrictions.Key getServiceKey()
        Specified by:
        getServiceKey in interface com.composum.sling.core.service.RestrictedService
      • doGet

        protected void doGet​(@NotNull
                             @NotNull org.apache.sling.api.SlingHttpServletRequest request,
                             @NotNull
                             @NotNull org.apache.sling.api.SlingHttpServletResponse response)
                      throws IOException
        Overrides:
        doGet in class org.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