Package jenkins.security
Class ResourceDomainFilter
- java.lang.Object
-
- jenkins.security.ResourceDomainFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class ResourceDomainFilter extends Object implements javax.servlet.Filter
Prohibit requests to Jenkins coming through a resource domain URL configured withResourceDomainConfiguration
, except anything going toResourceDomainRootAction
.- Since:
- 2.200
-
-
Field Summary
Fields Modifier and Type Field Description static String
ERROR_RESPONSE
-
Constructor Summary
Constructors Constructor Description ResourceDomainFilter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain)
static void
init()
void
init(javax.servlet.FilterConfig filterConfig)
-
-
-
Field Detail
-
ERROR_RESPONSE
public static final String ERROR_RESPONSE
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
@Initializer(after=EXTENSIONS_AUGMENTED) public static void init() throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
doFilter
public void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException
- Specified by:
doFilter
in interfacejavax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Filter
-
-