conversations-classic/src/main/java/eu/siacs/conversations/http/AesGcmURLStreamHandlerFactory.java

16 lines
456 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;
2017-02-07 19:07:57 +00:00
public class AesGcmURLStreamHandlerFactory implements URLStreamHandlerFactory {
2017-02-07 18:32:12 +00:00
@Override
public URLStreamHandler createURLStreamHandler(String protocol) {
2017-02-07 19:07:57 +00:00
if (AesGcmURLStreamHandler.PROTOCOL_NAME.equals(protocol)) {
return new AesGcmURLStreamHandler();
2017-02-07 18:32:12 +00:00
} else {
return null;
}
}
2017-02-07 18:31:54 +00:00
}