Class AddressHostMatcher

All Implemented Interfaces:
ConfigurationObject, URIMatcher

public class AddressHostMatcher extends InetHostMatcher
Compares ip address string and mask string by using InetAddress comparison.

Example 1: accept any uri whose host matches the ip of www.camptocamp.com


     - !ipMatch
       ip: www.camptocamp.com
 

Example 2: accept any uri whose host ip starts with 192.1


     - !ipMatch
       ip: 192.1.0.0
       mask: 255.255.0.0
 

Example 3: accept any uri whose host ip starts with 192.1 and restricts to port 80


     - !ipMatch
       ip: 192.1.0.0
       mask: 255.255.0.0
       port: 80
 

Example 4: accept any uri whose host ip starts with 192.1 and and allows any port (-1 is any port)


     - !ipMatch
       ip: 192.1.0.0
       mask: 255.255.0.0
       port: -1
 

Example 5: accept any uri whose host ip starts with 192.1 and restricts to paths that start with /print/


     - !ipMatch
       ip: 192.1.0.0
       mask: 255.255.0.0
       pathRegex: /print/.+
 
[[examples=http_processors]]
  • Constructor Details

    • AddressHostMatcher

      public AddressHostMatcher()
  • Method Details