archaius-core/src/main/java/com/netflix/config/util/HttpVerbUriRegexPropertyValue.java
public static HttpVerbUriRegexPropertyValue getVerbUriRegex(String propValue) {
        HttpVerbUriRegexPropertyValue returnValue = null;
        if (propValue != null) {
            propValue = propValue.trim();
            int methodSeparatorIndex = propValue.indexOf(METHOD_SEPARATOR);
            String uriRegex = propValue; // to begin with
            Verb verb = Verb.ANY_VERB;
            if (methodSeparatorIndex != -1) {
                // user may have supplied a verb
                verb = getVerb(propValue.substring(0, methodSeparatorIndex));
                if (verb != Verb.ANY_VERB) {
                    // update uriRegex
                    uriRegex = propValue.substring(methodSeparatorIndex + 1);
                }
            }
            returnValue = new HttpVerbUriRegexPropertyValue(verb, uriRegex);
        }
        return returnValue;
    }
public static HttpVerbUriRegexPropertyValue getVerbUriRegex(String propValue) {
        HttpVerbUriRegexPropertyValue returnValue = null;
        if (propValue != null) {
            propValue = propValue.trim();
            int methodSeparatorIndex = propValue.indexOf(METHOD_SEPARATOR);
            String uriRegex = propValue; // to begin with
            Verb verb = Verb.ANY_VERB;
            if (methodSeparatorIndex != -1) {
                // user may have supplied a verb
                verb = getVerb(propValue.substring(0, methodSeparatorIndex));
                if (verb != Verb.ANY_VERB) {
                    // update uriRegex
                    uriRegex = propValue.substring(methodSeparatorIndex + 1);
                }
            }
            returnValue = new HttpVerbUriRegexPropertyValue(verb, uriRegex);
        }
        return returnValue;
    }
public static HttpVerbUriRegexPropertyValue getVerbUriRegex ( String propValue ) { HttpVerbUriRegexPropertyValue returnValue = null ; if ( propValue != null ) { propValue = propValue . trim ( ) ; int methodSeparatorIndex = propValue . indexOf ( METHOD_SEPARATOR ) ; String uriRegex = propValue ; // to begin with Verb verb = Verb . ANY_VERB ; if ( methodSeparatorIndex != - 1 ) { // user may have supplied a verb verb = getVerb ( propValue . substring ( 0 , methodSeparatorIndex ) ) ; if ( verb != Verb . ANY_VERB ) { // update uriRegex uriRegex = propValue . substring ( methodSeparatorIndex + 1 ) ; } } returnValue = new HttpVerbUriRegexPropertyValue ( verb , uriRegex ) ; } return returnValue ; }
Expects property value to be of the form &lt;uriRegex&gt; OR &lt;HTTP
Verb name&gt;&lt;space&gt;&lt;uriRegex&gt;

@param propValue
property value
@return {@link HttpVerbUriRegexPropertyValue} instance corresponding to
propValue if propValue is not null, null otherwise
Expects property value to be of the form &lt ; uriRegex&gt ; OR &lt ; HTTP Verb name&gt ; &lt ; space&gt ; &lt ; uriRegex&gt ;