aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/http/AesGcmURLStreamHandler.java
blob: 64188c5db5570cce749fd5daa9a3b659625e2c90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package de.pixart.messenger.http;

import java.io.IOException;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLStreamHandler;


public class AesGcmURLStreamHandler extends URLStreamHandler {

    public static final String PROTOCOL_NAME = "aesgcm";

    @Override
    protected URLConnection openConnection(URL url) throws IOException {
        return new URL("https"+url.toString().substring(url.getProtocol().length())).openConnection();
    }
}