Esri Geoportal Server
1.2.9

com.esri.gpt.framework.robots
Interface MatchingStrategy


public interface MatchingStrategy

Matching strategy.

It determines how and if path is matching a pattern.

See Also:
WinningStrategy

Field Summary
static MatchingStrategy PLAIN_STRING_STRATEGY
          This strategy only checks if path starts with pattern (case-sensitive).
static MatchingStrategy SIMPLE_PATTERN_STRATEGY
          This strategy recognizes (*) and ($) as wildcards.
 
Method Summary
 boolean matches(String pattern, String pathToTest)
          Matches given path with a pattern.
 

Field Detail

PLAIN_STRING_STRATEGY

static final MatchingStrategy PLAIN_STRING_STRATEGY
This strategy only checks if path starts with pattern (case-sensitive).


SIMPLE_PATTERN_STRATEGY

static final MatchingStrategy SIMPLE_PATTERN_STRATEGY
This strategy recognizes (*) and ($) as wildcards.

Method Detail

matches

boolean matches(String pattern,
                String pathToTest)
Matches given path with a pattern.

Parameters:
pattern - pattern
pathToTest - path to test
Returns:
true if match

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.