Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
EndpointMatch.cs
1using System.Threading.Tasks;
2using System.Xml;
5
7{
12 {
17 : base()
18 {
19 }
20
28 : base(Xml, Parent, Document)
29 {
30 }
31
35 public override string LocalName => nameof(EndpointMatch);
36
44 public override WafAction Create(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document) => new EndpointMatch(Xml, Parent, Document);
45
51 public override Task<WafResult?> Review(ProcessingState State)
52 {
53 return this.Review(State, State.Request.RemoteEndPoint.RemovePortNumber());
54 }
55 }
56}
Checks for a match against the Endpoint of the request.
override Task< WafResult?> Review(ProcessingState State)
Reviews the processing state, and returns a WAF result, if any.
override string LocalName
XML Local Name for the XML element defining the action.
EndpointMatch()
Checks for a match against the Endpoint of the request.
EndpointMatch(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document)
Checks for a match against the Endpoint of the request.
override WafAction Create(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document)
Creates a WAF action from its XML definition.
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.