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, mayServicedoGeneric, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, serviceprotected 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.SlingSafeMethodsServletIOExceptionpublic void init()
init in class javax.servlet.GenericServletpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletpublic void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged in interface org.osgi.framework.BundleListenerCopyright © 2024. All rights reserved.