org.apache.sling.engine.impl
Class SlingMainServlet
java.lang.Object
javax.servlet.GenericServlet
org.apache.sling.engine.impl.SlingMainServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
@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
The SlingMainServlet TODO
- See Also:
- Serialized Form
|
Method Summary |
protected void |
activate(org.osgi.framework.BundleContext bundleContext,
java.util.Map<java.lang.String,java.lang.Object> componentConfig)
|
|
adaptTo(java.lang.Object object,
java.lang.Class<Type> type)
|
protected void |
deactivate()
|
java.lang.String |
getMimeType(java.lang.String name)
|
java.lang.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)
|
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_MAX_CALL_COUNTER
@Property(intValue=1000)
public static final java.lang.String PROP_MAX_CALL_COUNTER
- See Also:
- Constant Field Values
PROP_MAX_INCLUSION_COUNTER
@Property(intValue=50)
public static final java.lang.String PROP_MAX_INCLUSION_COUNTER
- See Also:
- Constant Field Values
DEFAULT_ALLOW_TRACE
public static final boolean DEFAULT_ALLOW_TRACE
- See Also:
- Constant Field Values
PROP_ALLOW_TRACE
@Property(boolValue=false)
public static final java.lang.String PROP_ALLOW_TRACE
- See Also:
- Constant Field Values
DEFAULT_FILTER_COMPAT_MODE
public static final boolean DEFAULT_FILTER_COMPAT_MODE
- See Also:
- Constant Field Values
PROP_FILTER_COMPAT_MODE
@Property(boolValue=false)
public static final java.lang.String PROP_FILTER_COMPAT_MODE
- See Also:
- Constant Field Values
SlingMainServlet
public SlingMainServlet()
service
public void service(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res)
throws javax.servlet.ServletException
- Specified by:
service in interface javax.servlet.Servlet- Specified by:
service in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
getServerInfo
public java.lang.String getServerInfo()
activate
@Activate
protected void activate(org.osgi.framework.BundleContext bundleContext,
java.util.Map<java.lang.String,java.lang.Object> componentConfig)
init
public void init()
- Overrides:
init in class javax.servlet.GenericServlet
deactivate
@Deactivate
protected void deactivate()
setServletResolver
public void setServletResolver(org.apache.sling.api.servlets.ServletResolver servletResolver)
unsetServletResolver
public void unsetServletResolver(org.apache.sling.api.servlets.ServletResolver servletResolver)
setMimeTypeService
public void setMimeTypeService(org.apache.sling.commons.mime.MimeTypeService mimeTypeService)
unsetMimeTypeService
public void unsetMimeTypeService(org.apache.sling.commons.mime.MimeTypeService mimeTypeService)
setAuthenticationSupport
public void setAuthenticationSupport(org.apache.sling.auth.core.AuthenticationSupport authenticationSupport)
unsetAuthenticationSupport
public void unsetAuthenticationSupport(org.apache.sling.auth.core.AuthenticationSupport authenticationSupport)
getMimeType
public java.lang.String getMimeType(java.lang.String name)
adaptTo
public <Type> Type adaptTo(java.lang.Object object,
java.lang.Class<Type> type)
Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.