blob: ca25c4b8b8d764ad7ceaab20efe0b1171508fe52 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
package com.juick.server.xmpp.helpers;
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);
}
}
|