anotherim/src/main/java/eu/siacs/conversations/http/OmemoURLStreamHandlerFactory.java

16 lines
425 B
Java
Raw Normal View History

2017-02-07 18:31:54 +00:00
package eu.siacs.conversations.http;
2017-02-07 18:32:12 +00:00
import java.net.URLStreamHandler;
import java.net.URLStreamHandlerFactory;
public class OmemoURLStreamHandlerFactory implements URLStreamHandlerFactory {
@Override
public URLStreamHandler createURLStreamHandler(String protocol) {
if ("omemo".equals(protocol)) {
return new OmemoURLStreamHandler();
} else {
return null;
}
}
2017-02-07 18:31:54 +00:00
}