aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp-ft/src/main/java/com/juick/components/url/JuickURLStreamHandlerFactory.java
blob: d7c9559ec08605671ff81e68ba0f6ace204f6928 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.juick.components.url;

import java.net.URLStreamHandler;
import java.net.URLStreamHandlerFactory;

/**
 * Created by vitalyster on 11.11.2016.
 */
public class JuickURLStreamHandlerFactory implements URLStreamHandlerFactory {
    @Override
    public URLStreamHandler createURLStreamHandler(String protocol) {
        if ("juick".equals(protocol)) {
            return new JuickURLStreamHandler();
        }
        return null;
    }
}