|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.james.impl.vut.VirtualUserTableUtil
public class VirtualUserTableUtil
This helper class contains methods for the VirtualUserTable implementations
Field Summary | |
---|---|
static java.lang.String |
QUERY
|
Method Summary | |
---|---|
static java.lang.String |
CollectionToMapping(java.util.Collection map)
Convert a Collection which holds mappings to a raw mapping String |
static java.util.Collection |
getMappings(java.lang.String rawMapping)
Deprecated. Use mappingToCollection(String rawMapping) |
static java.lang.String |
getSeparator(java.lang.String targetString)
Returns the character used to delineate multiple addresses. |
static java.lang.String |
getTargetString(java.lang.String user,
java.lang.String domain,
java.util.Map mappings)
Returns the real recipient given a virtual username and domain. |
static java.util.Map |
getXMLMappings(java.lang.String mapping)
Returns a Map which contains the mappings |
static java.util.ArrayList |
mappingToCollection(java.lang.String rawMapping)
Convert a raw mapping String to a Collection |
static java.lang.String |
regexMap(org.apache.mailet.MailAddress address,
java.lang.String targetString)
Processes regex virtual user mapping If a mapped target string begins with the prefix regex:, it must be formatted as regex: |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String QUERY
Method Detail |
---|
public static java.lang.String regexMap(org.apache.mailet.MailAddress address, java.lang.String targetString) throws org.apache.oro.text.regex.MalformedPatternException
address
- the MailAddress to be mappedtargetString
- a String specifying the mapping
org.apache.oro.text.regex.MalformedPatternException
public static java.lang.String getTargetString(java.lang.String user, java.lang.String domain, java.util.Map mappings)
user
- the virtual userdomain
- the virtual domain
null
if no mapping existspublic static java.lang.String getSeparator(java.lang.String targetString)
targetString
- the string to parse
public static java.util.Map getXMLMappings(java.lang.String mapping)
mapping
- A String which contains a list of mappings
public static java.util.Collection getMappings(java.lang.String rawMapping)
rawMapping
- public static java.util.ArrayList mappingToCollection(java.lang.String rawMapping)
rawMapping
- the mapping Strin
public static java.lang.String CollectionToMapping(java.util.Collection map)
map
- the Collection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |