|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PropertiesParser
A parser to parse properties for a given input
Method Summary | |
---|---|
String |
parseProperty(String key,
String value,
Properties properties)
While parsing the uri using parseUri each
parsed property found invokes this callback. |
String |
parseUri(String text,
Properties properties,
String prefixToken,
String suffixToken)
Parses the string and replaces the property placeholders with values from the given properties. |
Method Detail |
---|
String parseUri(String text, Properties properties, String prefixToken, String suffixToken) throws IllegalArgumentException
text
- the text to be parsedproperties
- the properties resolved which values should be looked upprefixToken
- the prefix tokensuffixToken
- the suffix token
IllegalArgumentException
- if uri syntax is not valid or a property is not foundString parseProperty(String key, String value, Properties properties)
parseUri
each
parsed property found invokes this callback.
This strategy method allows you to hook into the parsing and do custom lookup and return the actual value to use.
key
- the keyvalue
- the valueproperties
- the properties resolved which values should be looked up
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |