public final class UrlMatcher extends Object
This class helps to extract parameters from URL. The expected URL structure is described in MATCHER_MESSAGE
.
Details:
Modifier and Type | Field and Description |
---|---|
static String |
MATCHER_MESSAGE
The expected URL.
|
Modifier and Type | Method and Description |
---|---|
String |
getNutName()
Gets the nut name.
|
String |
getVersionNumber()
Gets the version number.
|
String |
getWorkflowId()
Gets the workflow ID.
|
boolean |
matches()
Indicates if the URL matches.
|
public static final String MATCHER_MESSAGE
public boolean matches()
Indicates if the URL matches.
true
if URL matches, false
otherwisepublic String getWorkflowId() throws UnsupportedEncodingException
Gets the workflow ID.
UnsupportedEncodingException
- if UTF-8 is not supportedpublic String getNutName() throws UnsupportedEncodingException
Gets the nut name.
UnsupportedEncodingException
- if UTF-8 is not supportedpublic String getVersionNumber() throws UnsupportedEncodingException
Gets the version number.
null
if not setUnsupportedEncodingException
- if UTF-8 is not supportedCopyright © 2012-2015. All Rights Reserved.