• 大小: 8KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-18
  • 语言: 其他
  • 标签: Http  

资源简介

实现HttpURLConnection,创建自己想要的HttpURLConnection连接

资源截图

代码片段和文件信息

package com.yzp.net.http;

import java.io.IOException;
import java.net.URL;
import java.security.cert.Certificate;

import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLPeerUnverifiedException;

public class HttpsURLConnectionImpl extends HttpsURLConnection{

protected HttpsURLConnectionImpl(URL url) {
super(url);

}

@Override
public String getCipherSuite() {
return null;
}

@Override
public Certificate[] getLocalCertificates() {

return null;
}

@Override
public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {

return null;
}

@Override
public void disconnect() {


}

@Override
public boolean usingProxy() {

return false;
}

@Override
public void connect() throws IOException {


}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        301  2016-04-08 20:30  CustomHttpURLConnectionImpl\.classpath

     文件        403  2016-04-08 20:30  CustomHttpURLConnectionImpl\.project

     文件        598  2016-04-08 20:30  CustomHttpURLConnectionImpl\.settings\org.eclipse.jdt.core.prefs

     文件       1016  2016-04-08 20:45  CustomHttpURLConnectionImpl\bin\com\yzp\net\http\HttpsURLConnectionImpl.class

     文件        610  2016-04-08 20:47  CustomHttpURLConnectionImpl\bin\com\yzp\net\http\HttpsURLStreamHandler.class

     文件        774  2016-04-08 21:03  CustomHttpURLConnectionImpl\bin\com\yzp\net\http\HttpURLConnectionImpl.class

     文件        606  2016-04-08 20:40  CustomHttpURLConnectionImpl\bin\com\yzp\net\http\HttpURLStreamHandler.class

     文件       1290  2016-04-08 21:26  CustomHttpURLConnectionImpl\bin\com\yzp\net\http\test\test.class

     文件        814  2016-04-08 21:22  CustomHttpURLConnectionImpl\bin\com\yzp\net\http\URLStreamHandlerFactoryImpl.class

     文件        826  2016-04-08 20:45  CustomHttpURLConnectionImpl\src\com\yzp\net\http\HttpsURLConnectionImpl.java

     文件        347  2016-04-08 20:47  CustomHttpURLConnectionImpl\src\com\yzp\net\http\HttpsURLStreamHandler.java

     文件        588  2016-04-08 21:03  CustomHttpURLConnectionImpl\src\com\yzp\net\http\HttpURLConnectionImpl.java

     文件        346  2016-04-08 20:40  CustomHttpURLConnectionImpl\src\com\yzp\net\http\HttpURLStreamHandler.java

     文件        976  2016-04-08 21:26  CustomHttpURLConnectionImpl\src\com\yzp\net\http\test\test.java

     文件        439  2016-04-08 21:22  CustomHttpURLConnectionImpl\src\com\yzp\net\http\URLStreamHandlerFactoryImpl.java

     目录          0  2016-04-08 21:29  CustomHttpURLConnectionImpl\bin\com\yzp\net\http\test

     目录          0  2016-04-08 21:29  CustomHttpURLConnectionImpl\src\com\yzp\net\http\test

     目录          0  2016-04-08 21:29  CustomHttpURLConnectionImpl\bin\com\yzp\net\http

     目录          0  2016-04-08 21:29  CustomHttpURLConnectionImpl\src\com\yzp\net\http

     目录          0  2016-04-08 21:29  CustomHttpURLConnectionImpl\bin\com\yzp\net

     目录          0  2016-04-08 21:29  CustomHttpURLConnectionImpl\src\com\yzp\net

     目录          0  2016-04-08 21:29  CustomHttpURLConnectionImpl\bin\com\yzp

     目录          0  2016-04-08 21:29  CustomHttpURLConnectionImpl\src\com\yzp

     目录          0  2016-04-08 21:29  CustomHttpURLConnectionImpl\bin\com

     目录          0  2016-04-08 21:29  CustomHttpURLConnectionImpl\src\com

     目录          0  2016-04-08 21:29  CustomHttpURLConnectionImpl\.settings

     目录          0  2016-04-08 21:29  CustomHttpURLConnectionImpl\bin

     目录          0  2016-04-08 21:29  CustomHttpURLConnectionImpl\src

     目录          0  2016-04-08 21:29  CustomHttpURLConnectionImpl

----------- ---------  ---------- -----  ----

............此处省略2个文件信息

评论

共有 条评论