|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.rrt.lib.RecipientRewriteTableUtil
public class RecipientRewriteTableUtil
This helper class contains methods for the RecipientRewriteTable implementations
| Field Summary | |
|---|---|
static String |
QUERY
|
| Method Summary | |
|---|---|
static String |
CollectionToMapping(Collection<String> map)
Convert a Collection which holds mappings to a raw mapping String |
static Collection<String> |
getMappings(String rawMapping)
Deprecated. Use mappingToCollection(String rawMapping) |
static String |
getSeparator(String targetString)
Returns the character used to delineate multiple addresses. |
static String |
getTargetString(String user,
String domain,
Map<String,String> mappings)
Returns the real recipient given a virtual username and domain. |
static Map<String,String> |
getXMLMappings(String mapping)
Returns a Map which contains the mappings |
static ArrayList<String> |
mappingToCollection(String rawMapping)
Convert a raw mapping String to a Collection |
static String |
regexMap(org.apache.mailet.MailAddress address,
String targetString)
Processes regex virtual user mapping If a mapped target string begins with the prefix regex:, it must be formatted as regex: |
static String |
replaceParameters(String str,
Map<String,String> parameters)
Returns a named string, replacing parameters with the values set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String QUERY
| Method Detail |
|---|
public static String regexMap(org.apache.mailet.MailAddress address,
String targetString)
address - the MailAddress to be mappedtargetString - a String specifying the mapping
MalformedPatternException
public static String replaceParameters(String str,
Map<String,String> parameters)
str - the name of the String resource required.parameters - a map of parameters (name-value string pairs) which are
replaced where found in the input strings
public static String getTargetString(String user,
String domain,
Map<String,String> mappings)
user - the virtual userdomain - the virtual domain
null if no mapping
existspublic static String getSeparator(String targetString)
targetString - the string to parse
public static Map<String,String> getXMLMappings(String mapping)
mapping - A String which contains a list of mappings
public static Collection<String> getMappings(String rawMapping)
rawMapping - public static ArrayList<String> mappingToCollection(String rawMapping)
rawMapping - the mapping String
public static String CollectionToMapping(Collection<String> map)
map - the Collection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||