Package tigase.util.stringprep
Class XMPPStringPrepFactory
java.lang.Object
tigase.util.stringprep.XMPPStringPrepFactory
Created: Dec 28, 2009 10:02:31 PM
- Version:
- $Rev$
- Author:
- Artur Hefczyc
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic XMPPStringPrepIfc
Factory method for creating and returning stringprep implementation used by the Tigase server.static XMPPStringPrepIfc
Factory method for creating and returning stringprep implementation used by the Tigase server.static XMPPStringPrepIfc
Factory method for creating and returning stringprep implementation used by the Tigase server.static XMPPStringPrepIfc
Factory method for creating and returning stringprep implementation used by the Tigase server.static XMPPStringPrepIfc
getXMPPStringPrep
(String stringprepProcessor) static void
-
Field Details
-
STRINGPREP_PROCESSOR_PROP_KEY
- See Also:
-
STRINGPREP_PROCESSORS
-
STRINGPREP_PROCESSOR
-
-
Constructor Details
-
XMPPStringPrepFactory
public XMPPStringPrepFactory()
-
-
Method Details
-
getDefaultXMPPStringPrep
Factory method for creating and returning stringprep implementation used by the Tigase server. This factory allows for pluggable stringprep library usage and replacing the library used by default. The default stringprep processor uses LibIDN library. Very CPU demanding processing. Use with care in open, multi-lingual systems.- Returns:
- instance of XMPP Stringprep processor.
-
getEmptyXMPPStringPrep
Factory method for creating and returning stringprep implementation used by the Tigase server. This factory allows for pluggable stringprep library usage and replacing the library used by default. The empty stringprep processor does not perform any processing at all. It simply returns the string provided to the method. Recommended only in strictly controlled systems where there is no possibility of incorrectly formated JID getting to the system and the performance is the ke factor. uses simple JavaString
processing.- Returns:
- instance of XMPP Stringprep processor.
-
getLibIDNXMPPStringPrep
Factory method for creating and returning stringprep implementation used by the Tigase server. This factory allows for pluggable stringprep library usage and replacing the library used by default. The stringprep processor uses LibIDN library. Very CPU demanding processing. Use in open, multi-lingual systems.- Returns:
- instance of XMPP Stringprep processor.
-
getSimpleXMPPStringPrep
Factory method for creating and returning stringprep implementation used by the Tigase server. This factory allows for pluggable stringprep library usage and replacing the library used by default. The simple stringprep processor uses simple JavaString
processing. Recommended in relatively closed, single language systems where there is very low probability for in correct JIDs. Causes very low impact on performance.- Returns:
- instance of XMPP Stringprep processor.
-
getXMPPStringPrep
-
main
- Throws:
Exception
-