test_class.declarator: addresses
test_class.modifier: private final
test_class.original_string: private final String addresses;
test_class.type: String
test_class.var_name: addresses
test_class.declarator: client
test_class.modifier: private final
test_class.original_string: private final String client;
test_class.type: String
test_class.var_name: client
test_class.declarator: match
test_class.modifier: private final
test_class.original_string: private final boolean match;
test_class.type: boolean
test_class.var_name: match
test_class.file: oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/standby/server/ClientIpFilterTest.java
test_class.identifier: ClientIpFilterTest
test_case.body: @Test
      public void test() throws Exception {
          assertEquals(match, new ClientIpFilter(parseFilters()).isAllowed(createAddress()));
      }
test_case.class_method_signature: ClientIpFilterTest.test()
test_case.full_signature: @Test public void test()
test_case.identifier: test
test_case.invocations: assertEquals isAllowed parseFilters createAddress
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test()
focal_class.declarator: LETTERS = Pattern.compile("[a-zA-Z]+")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern LETTERS = Pattern.compile("[a-zA-Z]+");
focal_class.type: Pattern
focal_class.var_name: LETTERS
focal_class.declarator: allowedIpRanges
focal_class.modifier: private final
focal_class.original_string: private final String[] allowedIpRanges;
focal_class.type: String[]
focal_class.var_name: allowedIpRanges
focal_class.declarator: addressResolver
focal_class.modifier: private final
focal_class.original_string: private final AddressResolver addressResolver;
focal_class.type: AddressResolver
focal_class.var_name: addressResolver
focal_class.file: oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/standby/server/ClientIpFilter.java
focal_class.identifier: ClientIpFilter
focal_class.interfaces: implements ClientFilter
focal_class.class_method_signature: ClientIpFilter.containsLetters(String s)
focal_class.full_signature: private static boolean containsLetters(String s)
focal_class.identifier: containsLetters
focal_class.modifiers: private static
focal_class.parameters: (String s)
focal_class.return: boolean
focal_class.signature: boolean containsLetters(String s)
focal_class.class_method_signature: ClientIpFilter.areAddressesEqual(InetAddress a, InetAddress b)
focal_class.full_signature: private static boolean areAddressesEqual(InetAddress a, InetAddress b)
focal_class.identifier: areAddressesEqual
focal_class.modifiers: private static
focal_class.parameters: (InetAddress a, InetAddress b)
focal_class.return: boolean
focal_class.signature: boolean areAddressesEqual(InetAddress a, InetAddress b)
focal_class.class_method_signature: ClientIpFilter.compare(byte[] left, byte[] right)
focal_class.full_signature: private static int compare(byte[] left, byte[] right)
focal_class.identifier: compare
focal_class.modifiers: private static
focal_class.parameters: (byte[] left, byte[] right)
focal_class.return: int
focal_class.signature: int compare(byte[] left, byte[] right)
focal_class.class_method_signature: ClientIpFilter.isAddressInRange(InetAddress address, InetAddress left, InetAddress right)
focal_class.full_signature: private static boolean isAddressInRange(InetAddress address, InetAddress left, InetAddress right)
focal_class.identifier: isAddressInRange
focal_class.modifiers: private static
focal_class.parameters: (InetAddress address, InetAddress left, InetAddress right)
focal_class.return: boolean
focal_class.signature: boolean isAddressInRange(InetAddress address, InetAddress left, InetAddress right)
focal_class.class_method_signature: ClientIpFilter.isAllowed(InetAddress client, AddressResolver addressResolver, String left, String right)
focal_class.full_signature: private static boolean isAllowed(InetAddress client, AddressResolver addressResolver, String left, String right)
focal_class.identifier: isAllowed
focal_class.modifiers: private static
focal_class.parameters: (InetAddress client, AddressResolver addressResolver, String left, String right)
focal_class.return: boolean
focal_class.signature: boolean isAllowed(InetAddress client, AddressResolver addressResolver, String left, String right)
focal_class.class_method_signature: ClientIpFilter.isAllowed(InetAddress client, AddressResolver addressResolver, String match)
focal_class.full_signature: private static boolean isAllowed(InetAddress client, AddressResolver addressResolver, String match)
focal_class.identifier: isAllowed
focal_class.modifiers: private static
focal_class.parameters: (InetAddress client, AddressResolver addressResolver, String match)
focal_class.return: boolean
focal_class.signature: boolean isAllowed(InetAddress client, AddressResolver addressResolver, String match)
focal_class.class_method_signature: ClientIpFilter.ClientIpFilter(String[] filters)
focal_class.full_signature:   ClientIpFilter(String[] filters)
focal_class.identifier: ClientIpFilter
focal_class.parameters: (String[] filters)
focal_class.signature:  ClientIpFilter(String[] filters)
focal_class.class_method_signature: ClientIpFilter.ClientIpFilter(String[] filters, AddressResolver addressResolver)
focal_class.full_signature:   ClientIpFilter(String[] filters, AddressResolver addressResolver)
focal_class.identifier: ClientIpFilter
focal_class.parameters: (String[] filters, AddressResolver addressResolver)
focal_class.signature:  ClientIpFilter(String[] filters, AddressResolver addressResolver)
focal_class.class_method_signature: ClientIpFilter.isAllowed(SocketAddress address)
focal_class.full_signature: @Override public boolean isAllowed(SocketAddress address)
focal_class.identifier: isAllowed
focal_class.modifiers: @Override public
focal_class.parameters: (SocketAddress address)
focal_class.return: boolean
focal_class.signature: boolean isAllowed(SocketAddress address)
focal_class.class_method_signature: ClientIpFilter.isAllowed(InetAddress address)
focal_class.full_signature: private boolean isAllowed(InetAddress address)
focal_class.identifier: isAllowed
focal_class.modifiers: private
focal_class.parameters: (InetAddress address)
focal_class.return: boolean
focal_class.signature: boolean isAllowed(InetAddress address)
focal_method.body: private static boolean isAllowed(InetAddress client, AddressResolver addressResolver, String left, String right) {
          InetAddress leftAddress = addressResolver.resolve(left);
          InetAddress rightAddress = addressResolver.resolve(right);
  
          if (leftAddress == null || rightAddress == null) {
              return false;
          }
  
          return isAddressInRange(client, leftAddress, rightAddress);
      }
focal_method.class_method_signature: ClientIpFilter.isAllowed(InetAddress client, AddressResolver addressResolver, String left, String right)
focal_method.full_signature: private static boolean isAllowed(InetAddress client, AddressResolver addressResolver, String left, String right)
focal_method.identifier: isAllowed
focal_method.invocations: resolve resolve isAddressInRange
focal_method.modifiers: private static
focal_method.parameters: (InetAddress client, AddressResolver addressResolver, String left, String right)
focal_method.return: boolean
focal_method.signature: boolean isAllowed(InetAddress client, AddressResolver addressResolver, String left, String right)