Class CsrfProtection


  • public class CsrfProtection
    extends org.openrewrite.Recipe
    • Field Summary

      • Fields inherited from class org.openrewrite.Recipe

        NOOP, PANIC
    • Constructor Summary

      Constructors 
      Constructor Description
      CsrfProtection()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.openrewrite.TreeVisitor<?,​org.openrewrite.ExecutionContext> getApplicableTest()  
      java.lang.String getDescription()  
      java.lang.String getDisplayName()  
      java.time.Duration getEstimatedEffortPerOccurrence()  
      protected org.openrewrite.TreeVisitor<?,​org.openrewrite.ExecutionContext> getSingleSourceApplicableTest()  
      protected org.openrewrite.java.JavaVisitor<org.openrewrite.ExecutionContext> getVisitor()  
      protected java.util.List<org.openrewrite.SourceFile> visit​(java.util.List<org.openrewrite.SourceFile> before, org.openrewrite.ExecutionContext ctx)  
      • Methods inherited from class org.openrewrite.Recipe

        addApplicableTest, addSingleSourceApplicableTest, causesAnotherCycle, doNext, equals, getApplicableTests, getDescriptor, getJacksonPolymorphicTypeTag, getLanguages, getName, getRecipeList, getSingleSourceApplicableTests, getTags, hashCode, noop, run, run, run, run, validate, validate, validateAll, validateAll
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CsrfProtection

        public CsrfProtection()
    • Method Detail

      • getDisplayName

        public java.lang.String getDisplayName()
        Specified by:
        getDisplayName in class org.openrewrite.Recipe
      • getDescription

        public java.lang.String getDescription()
        Overrides:
        getDescription in class org.openrewrite.Recipe
      • getEstimatedEffortPerOccurrence

        public java.time.Duration getEstimatedEffortPerOccurrence()
        Overrides:
        getEstimatedEffortPerOccurrence in class org.openrewrite.Recipe
      • getApplicableTest

        protected org.openrewrite.TreeVisitor<?,​org.openrewrite.ExecutionContext> getApplicableTest()
        Overrides:
        getApplicableTest in class org.openrewrite.Recipe
      • getSingleSourceApplicableTest

        protected org.openrewrite.TreeVisitor<?,​org.openrewrite.ExecutionContext> getSingleSourceApplicableTest()
        Overrides:
        getSingleSourceApplicableTest in class org.openrewrite.Recipe
      • visit

        protected java.util.List<org.openrewrite.SourceFile> visit​(java.util.List<org.openrewrite.SourceFile> before,
                                                                   org.openrewrite.ExecutionContext ctx)
        Overrides:
        visit in class org.openrewrite.Recipe
      • getVisitor

        protected org.openrewrite.java.JavaVisitor<org.openrewrite.ExecutionContext> getVisitor()
        Overrides:
        getVisitor in class org.openrewrite.Recipe