Package hudson.cli

Class CliCrumbExclusion

  • All Implemented Interfaces:
    ExtensionPoint

    @Extension
    @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class)
    public class CliCrumbExclusion
    extends CrumbExclusion
    Makes CLI HTTP fallback work with CSRF protection enabled (JENKINS-18114).
    • Constructor Detail

      • CliCrumbExclusion

        public CliCrumbExclusion()
    • Method Detail

      • process

        public boolean process​(javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response,
                               javax.servlet.FilterChain chain)
                        throws IOException,
                               javax.servlet.ServletException
        Description copied from class: CrumbExclusion
        This method is called for every incoming POST request.
        Specified by:
        process in class CrumbExclusion
        Returns:
        true to indicate that the callee had processed this request (for example by reporting an error, or by executing the rest of the chain.)
        Throws:
        IOException
        javax.servlet.ServletException