|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.vysper.xmpp.addressing.stringprep.StringPrep
@SpecCompliant(spec="RFC3454") public class StringPrep
Use this class to prepare a String according to the Stringprep profile. The
methods buildMapping() and buildProhibitedSet() can be
overridden to modify the behavior of the Stringprep check.
see http://www.ietf.org/rfc/rfc3454.txt
| Constructor Summary | |
|---|---|
StringPrep()
Construct. |
|
| Method Summary | |
|---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
buildMapping()
Override this method and return a custom map of character mappings to alter the Stringprep behavior. |
protected java.util.Set<java.lang.String> |
buildProhibitedSet()
Override this method and return a custom set of prohibited characters to alter the Stringprep behavior. |
java.lang.String |
prepareString(java.lang.String str)
Prepares the given String according to the Stringprep
specification. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringPrep()
| Method Detail |
|---|
public java.lang.String prepareString(java.lang.String str)
throws StringPrepViolationException
String according to the Stringprep
specification.
str - the string to prepare
String
StringPrepViolationException - in case the String cannot be preparedprotected java.util.Map<java.lang.String,java.lang.String> buildMapping()
Map containing all character mappingsprotected java.util.Set<java.lang.String> buildProhibitedSet()
Set containing all characters that are
prohibited
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||