Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
PathMatch.cs
1using System.Threading.Tasks;
2using System.Xml;
4
6{
10 public class PathMatch : WafCondition
11 {
15 public PathMatch()
16 : base()
17 {
18 }
19
26 public PathMatch(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document)
27 : base(Xml, Parent, Document)
28 {
29 }
30
34 public override string LocalName => nameof(PathMatch);
35
43 public override WafAction Create(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document) => new PathMatch(Xml, Parent, Document);
44
50 public override Task<WafResult?> Review(ProcessingState State)
51 {
52 return this.Review(State, State.Request.Header.Resource);
53 }
54 }
55}
Checks for a match against the Path of the request.
Definition: PathMatch.cs:11
PathMatch()
Checks for a match against the Path of the request.
Definition: PathMatch.cs:15
PathMatch(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document)
Checks for a match against the Path of the request.
Definition: PathMatch.cs:26
override WafAction Create(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document)
Creates a WAF action from its XML definition.
override string LocalName
XML Local Name for the XML element defining the action.
Definition: PathMatch.cs:34
override Task< WafResult?> Review(ProcessingState State)
Reviews the processing state, and returns a WAF result, if any.
Definition: PathMatch.cs:50
Abstract base class for Web Application Firewall conditions.
Definition: WafCondition.cs:21
Contains the current state of a review process.
HttpRequest Request
Current HTTP Request
Abstract base class for Web Application Firewall actions.
Definition: WafAction.cs:17
WebApplicationFirewall Document
Web Application Firewall document.
Definition: WafAction.cs:60
Web Application Firewall for HttpServer.