public class ContentUriChecker extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ContentUriChecker.UriPlaceHolderReplacerListener |
| Modifier and Type | Field and Description |
|---|---|
protected static ContentUriChecker |
instance |
int |
pathSegmentIndex |
| Modifier and Type | Method and Description |
|---|---|
List<ContentUriPlaceHolder> |
extract(String input)
Extract all parameters from URI.
|
Map<String,ContentUriPlaceHolder> |
extractAsMap(String input)
Extract all parameters from URI as a map.
|
List<ContentUriPlaceHolder> |
extractFromPath(String input) |
static ContentUriChecker |
getInstance() |
String |
replace(String input,
ContentUriChecker.UriPlaceHolderReplacerListener listener)
Replace place holders from URI string
|
void |
verify(String input)
Verify content URI is syntactally correct, otherwise a
KriptonProcessorException will be thrown.
|
protected static ContentUriChecker instance
public int pathSegmentIndex
public static final ContentUriChecker getInstance()
public List<ContentUriPlaceHolder> extract(String input)
input - public Map<String,ContentUriPlaceHolder> extractAsMap(String input)
input - public List<ContentUriPlaceHolder> extractFromPath(String input)
input - public String replace(String input, ContentUriChecker.UriPlaceHolderReplacerListener listener)
Replace place holders from URI string
input - listener - public void verify(String input)
Verify content URI is syntactally correct, otherwise a KriptonProcessorException will be thrown.
input - Copyright © 2017. All rights reserved.