Conversations/src/main/java/eu/siacs/conversations/http/AesGcmURLStreamHandlerFacto...

16 lines
456 B
Java
Raw Normal View History

2017-02-07 19:31:54 +01:00
package eu.siacs.conversations.http;
2017-02-07 19:32:12 +01:00
import java.net.URLStreamHandler;
import java.net.URLStreamHandlerFactory;
2017-02-07 20:07:57 +01:00
public class AesGcmURLStreamHandlerFactory implements URLStreamHandlerFactory {
2017-02-07 19:32:12 +01:00
@Override
public URLStreamHandler createURLStreamHandler(String protocol) {
2017-02-07 20:07:57 +01:00
if (AesGcmURLStreamHandler.PROTOCOL_NAME.equals(protocol)) {
return new AesGcmURLStreamHandler();
2017-02-07 19:32:12 +01:00
} else {
return null;
}
}
2017-02-07 19:31:54 +01:00
}