public class JsonViewServlets
extends org.apache.sling.api.servlets.SlingAllMethodsServlet
implements org.osgi.framework.BundleListener
Modifier and Type | Class and Description |
---|---|
static interface |
JsonViewServlets.Configuration |
Constructor and Description |
---|
JsonViewServlets() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context,
JsonViewServlets.Configuration configuration) |
void |
bundleChanged(org.osgi.framework.BundleEvent event) |
protected void |
deactivate() |
void |
destroy() |
protected void |
doGet(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response)
The expected pattern is
/some/resource/path.[general json view selector].[optional model name selector].json
|
void |
init() |
void |
refresh()
Check if the optional Jackson dependency is available
|
doDelete, doPost, doPut, getAllowedRequestMethods, isMethodValid, mayService
doGeneric, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, service
protected void activate(@Nonnull org.osgi.service.component.ComponentContext context, @Nonnull JsonViewServlets.Configuration configuration)
protected void deactivate()
public void refresh()
protected void doGet(@Nonnull org.apache.sling.api.SlingHttpServletRequest request, @Nonnull org.apache.sling.api.SlingHttpServletResponse response) throws IOException
doGet
in class org.apache.sling.api.servlets.SlingSafeMethodsServlet
IOException
public void init()
init
in class javax.servlet.GenericServlet
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
public void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged
in interface org.osgi.framework.BundleListener
Copyright © 2024. All rights reserved.