aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp/src/main/java/com/juick/xmpp/helpers/JidConverter.java
blob: 253c50f8580abdcf104420fe5e4217fd0c97e641 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
package com.juick.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);
    }
}