@Service @Properties(value={@Property(name="sling.filter.scope",value="request",propertyPrivate=true),@Property(name="service.ranking",intValue=1000000000,propertyPrivate=true)}) public class BackgroundServletStarterFilter extends Object implements javax.servlet.Filter
Modifier and Type | Field and Description |
---|---|
static String[] |
DEFAULT_ALLOWED_METHODS
Default list of HTTP method names that can trigger background requests
|
static String |
DEFAULT_BG_PARAM
Default value of the "put in background" parameter
|
static String |
PROP_ALLOWED_METHODS
Name of the property that defines the list of allowed HTTP methods
to trigger background jobs
|
static String |
PROP_BG_PARAM
Name of the property that defines the request parameter name to
use to start a servlet in the background.
|
Constructor and Description |
---|
BackgroundServletStarterFilter() |
public static final String DEFAULT_BG_PARAM
@Property(value="sling:bg") public static final String PROP_BG_PARAM
public static final String[] DEFAULT_ALLOWED_METHODS
@Property public static final String PROP_ALLOWED_METHODS
public void doFilter(javax.servlet.ServletRequest sreq, javax.servlet.ServletResponse sresp, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
public void init(javax.servlet.FilterConfig cfg) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.