Package com.composum.sling.nodes.tools
Class OsgiBundlesServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- org.apache.sling.api.servlets.SlingSafeMethodsServlet
-
- com.composum.sling.nodes.tools.OsgiBundlesServlet
-
- All Implemented Interfaces:
com.composum.sling.core.service.RestrictedService
,Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class OsgiBundlesServlet extends org.apache.sling.api.servlets.SlingSafeMethodsServlet implements com.composum.sling.core.service.RestrictedService
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.osgi.framework.BundleContext
bundleContext
static String
RESOURCE_TYPE
protected com.composum.sling.core.service.ServiceRestrictions
restrictions
static String
SERVICE_KEY
-
Constructor Summary
Constructors Constructor Description OsgiBundlesServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doGet(@NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull org.apache.sling.api.SlingHttpServletResponse response)
com.composum.sling.core.service.ServiceRestrictions.Key
getServiceKey()
protected void
writeBundle(@NotNull com.composum.sling.core.BeanContext context, @NotNull com.google.gson.stream.JsonWriter writer, @NotNull OsgiBundleModel model)
protected void
writeBundles(@NotNull com.composum.sling.core.BeanContext context, @NotNull com.google.gson.stream.JsonWriter writer)
protected void
writeProperties(@NotNull com.google.gson.stream.JsonWriter writer, @NotNull OsgiBundleModel model)
protected void
writeServices(@NotNull com.google.gson.stream.JsonWriter writer, @NotNull Iterator<OsgiServiceModel> iterator)
-
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
-
restrictions
protected com.composum.sling.core.service.ServiceRestrictions restrictions
-
bundleContext
protected org.osgi.framework.BundleContext bundleContext
-
-
Method Detail
-
getServiceKey
@NotNull public com.composum.sling.core.service.ServiceRestrictions.Key getServiceKey()
- Specified by:
getServiceKey
in interfacecom.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 classorg.apache.sling.api.servlets.SlingSafeMethodsServlet
- Throws:
IOException
-
writeBundle
protected void writeBundle(@NotNull @NotNull com.composum.sling.core.BeanContext context, @NotNull @NotNull com.google.gson.stream.JsonWriter writer, @NotNull @NotNull OsgiBundleModel model) throws IOException
- Throws:
IOException
-
writeBundles
protected void writeBundles(@NotNull @NotNull com.composum.sling.core.BeanContext context, @NotNull @NotNull com.google.gson.stream.JsonWriter writer) throws IOException
- Throws:
IOException
-
writeServices
protected void writeServices(@NotNull @NotNull com.google.gson.stream.JsonWriter writer, @NotNull @NotNull Iterator<OsgiServiceModel> iterator) throws IOException
- Throws:
IOException
-
writeProperties
protected void writeProperties(@NotNull @NotNull com.google.gson.stream.JsonWriter writer, @NotNull @NotNull OsgiBundleModel model) throws IOException
- Throws:
IOException
-
-