public class UrlUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static char |
URL_PARAM_DELIM |
static char |
URL_PARAM_SEPARATOR |
| Constructor and Description |
|---|
UrlUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getShortName(String longName,
String containsShortNameRegex,
int shortNameRegexGroup)
Returns the short name representation of a long name.
|
public static final char URL_PARAM_DELIM
public static final char URL_PARAM_SEPARATOR
public static String getShortName(String longName, String containsShortNameRegex, int shortNameRegexGroup)
longName - containsShortNameRegex - the regex that identifies whether the long name contains a short name. This
regex should also contain
a group expression that can be use to capture for the short name (see the
Pattern class javadoc).shortNameRegexGroup - the index of the captured group that represents the short name (see the Pattern
class javadoc)PatternCopyright © 2018 CrafterCMS. All rights reserved.