@Properties(value={@Property(name="service.vendor",value="The Apache Software Foundation"),@Property(name="service.description",value="Sling Servlet")}) @References(value={@Reference(name="ErrorHandler",referenceInterface=ErrorHandler.class,cardinality=OPTIONAL_UNARY,policy=DYNAMIC,bind="setErrorHandler",unbind="unsetErrorHandler"),@Reference(name="ServletResolver",referenceInterface=org.apache.sling.api.servlets.ServletResolver.class,cardinality=OPTIONAL_UNARY,policy=DYNAMIC,bind="setServletResolver",unbind="unsetServletResolver"),@Reference(name="MimeTypeService",referenceInterface=org.apache.sling.commons.mime.MimeTypeService.class,cardinality=OPTIONAL_UNARY,policy=DYNAMIC,bind="setMimeTypeService",unbind="unsetMimeTypeService"),@Reference(name="AuthenticationSupport",referenceInterface=org.apache.sling.auth.core.AuthenticationSupport.class,cardinality=OPTIONAL_UNARY,policy=DYNAMIC,bind="setAuthenticationSupport",unbind="unsetAuthenticationSupport")}) public class SlingMainServlet extends javax.servlet.GenericServlet
SlingMainServlet
TODOModifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ALLOW_TRACE |
static boolean |
DEFAULT_FILTER_COMPAT_MODE |
static String |
PROP_ALLOW_TRACE |
static String |
PROP_FILTER_COMPAT_MODE |
static String |
PROP_MAX_CALL_COUNTER |
static String |
PROP_MAX_INCLUSION_COUNTER |
Constructor and Description |
---|
SlingMainServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.framework.BundleContext bundleContext,
Map<String,Object> componentConfig) |
<Type> Type |
adaptTo(Object object,
Class<Type> type) |
protected void |
deactivate() |
String |
getMimeType(String name) |
String |
getServerInfo() |
void |
init() |
void |
service(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res) |
void |
setAuthenticationSupport(org.apache.sling.auth.core.AuthenticationSupport authenticationSupport) |
void |
setMimeTypeService(org.apache.sling.commons.mime.MimeTypeService mimeTypeService) |
void |
setServletResolver(org.apache.sling.api.servlets.ServletResolver servletResolver) |
void |
unsetAuthenticationSupport(org.apache.sling.auth.core.AuthenticationSupport authenticationSupport) |
void |
unsetMimeTypeService(org.apache.sling.commons.mime.MimeTypeService mimeTypeService) |
void |
unsetServletResolver(org.apache.sling.api.servlets.ServletResolver servletResolver) |
@Property(intValue=1000) public static final String PROP_MAX_CALL_COUNTER
@Property(intValue=50) public static final String PROP_MAX_INCLUSION_COUNTER
public static final boolean DEFAULT_ALLOW_TRACE
@Property(boolValue=false) public static final String PROP_ALLOW_TRACE
public static final boolean DEFAULT_FILTER_COMPAT_MODE
@Property(boolValue=false) public static final String PROP_FILTER_COMPAT_MODE
public void service(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res) throws javax.servlet.ServletException
service
in interface javax.servlet.Servlet
service
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public String getServerInfo()
@Activate protected void activate(org.osgi.framework.BundleContext bundleContext, Map<String,Object> componentConfig)
public void init()
init
in class javax.servlet.GenericServlet
@Deactivate protected void deactivate()
public void setServletResolver(org.apache.sling.api.servlets.ServletResolver servletResolver)
public void unsetServletResolver(org.apache.sling.api.servlets.ServletResolver servletResolver)
public void setMimeTypeService(org.apache.sling.commons.mime.MimeTypeService mimeTypeService)
public void unsetMimeTypeService(org.apache.sling.commons.mime.MimeTypeService mimeTypeService)
public void setAuthenticationSupport(org.apache.sling.auth.core.AuthenticationSupport authenticationSupport)
public void unsetAuthenticationSupport(org.apache.sling.auth.core.AuthenticationSupport authenticationSupport)
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.