diff options
author | 2018-04-25 13:54:25 +0300 | |
---|---|---|
committer | 2018-04-25 19:04:07 +0300 | |
commit | 2bf63fc8d2a4b84e051d28e670c7c74b039e2545 (patch) | |
tree | afceff82288a45649156b0a8428999a00464ba59 /juick-server/src/main/java/com/juick/server/xmpp/JidConverter.java | |
parent | 003ff7221782c4f0cf4a5660832e40c7ac386618 (diff) |
www: no more xmpp
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/xmpp/JidConverter.java')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/xmpp/JidConverter.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/juick-server/src/main/java/com/juick/server/xmpp/JidConverter.java b/juick-server/src/main/java/com/juick/server/xmpp/JidConverter.java new file mode 100644 index 00000000..e9a9707e --- /dev/null +++ b/juick-server/src/main/java/com/juick/server/xmpp/JidConverter.java @@ -0,0 +1,13 @@ +package com.juick.server.xmpp; + +import org.springframework.core.convert.converter.Converter; +import org.springframework.lang.Nullable; +import rocks.xmpp.addr.Jid; + +public class JidConverter implements Converter<String, Jid> { + @Nullable + @Override + public Jid convert(String jidStr) { + return Jid.of(jidStr); + } +} |