com.netflix.config.util
Class HttpVerbUriRegexPropertyValue

java.lang.Object
  extended by com.netflix.config.util.HttpVerbUriRegexPropertyValue

public class HttpVerbUriRegexPropertyValue
extends java.lang.Object

There are a few features in platform and allied libraries which need to parse a property of the form <uriRegex> OR <HTTP Verb name><space><uriRegex>. This class provides the functionality to represent such a property value including static methods to parse such property values.


Nested Class Summary
static class HttpVerbUriRegexPropertyValue.Verb
           
 
Constructor Summary
HttpVerbUriRegexPropertyValue(HttpVerbUriRegexPropertyValue.Verb verb, java.lang.String uriRegex)
           
 
Method Summary
static java.lang.String getMethodSeparator()
           
 java.lang.String getUriRegex()
           
 HttpVerbUriRegexPropertyValue.Verb getVerb()
           
static HttpVerbUriRegexPropertyValue getVerbUriRegex(java.lang.String propValue)
          Expects property value to be of the form <uriRegex> OR <HTTP Verb name><space><uriRegex>
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpVerbUriRegexPropertyValue

public HttpVerbUriRegexPropertyValue(HttpVerbUriRegexPropertyValue.Verb verb,
                                     java.lang.String uriRegex)
Method Detail

getVerbUriRegex

public static HttpVerbUriRegexPropertyValue getVerbUriRegex(java.lang.String propValue)
Expects property value to be of the form <uriRegex> OR <HTTP Verb name><space><uriRegex>

Parameters:
propValue - property value
Returns:
HttpVerbUriRegexPropertyValue instance corresponding to propValue if propValue is not null, null otherwise

getVerb

public HttpVerbUriRegexPropertyValue.Verb getVerb()

getUriRegex

public java.lang.String getUriRegex()

getMethodSeparator

public static java.lang.String getMethodSeparator()