资源简介

JAVA HTTP 发送 接收 com.sun.net.httpserver包 demo JAVA HTTP 发送 接收 com.sun.net.httpserver包 demo

资源截图

代码片段和文件信息

package erpserver;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.net.HttpURLConnection;
import java.net.InetSocketAddress;

import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpHandler;
import com.sun.net.httpserver.HttpServer;
import com.sun.net.httpserver.spi.HttpServerProvider;

import net.sf.json.JSONobject;


public class HttpReveive {
private int PROT;
private reveiveWindows Pwindows;
private HttpServer server;
/**
 * 构造函数 
 * @param port
 * @param pwindows
 */
public HttpReveive(int port reveiveWindows pwindows) {
this.PROT = port;
this.Pwindows = pwindows;
}

/**

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

     文件       1066  2017-11-21 08:55  ERPHttpServer\.classpath

     文件        389  2017-10-14 11:05  ERPHttpServer\.project

     文件        598  2017-10-14 08:30  ERPHttpServer\.settings\org.eclipse.jdt.core.prefs

     文件       2554  2017-11-21 08:55  ERPHttpServer\bin\erpserver\HttpReveive$DyanHttpHandler.class

     文件       1889  2017-11-21 08:55  ERPHttpServer\bin\erpserver\HttpReveive$DyanHttpHandler2.class

     文件       1959  2017-11-21 08:55  ERPHttpServer\bin\erpserver\HttpReveive.class

     文件       2664  2017-11-21 08:55  ERPHttpServer\bin\erpserver\HttpSend.class

     文件        826  2017-11-21 08:55  ERPHttpServer\bin\erpserver\reveiveWindows$1.class

     文件       2066  2017-11-21 08:55  ERPHttpServer\bin\erpserver\reveiveWindows$buttonlistener.class

     文件       2458  2017-11-21 08:55  ERPHttpServer\bin\erpserver\reveiveWindows.class

     文件        816  2017-11-21 08:56  ERPHttpServer\bin\erpserver\sendWindows$1.class

     文件       1812  2017-11-21 08:56  ERPHttpServer\bin\erpserver\sendWindows$buttonlistener.class

     文件       2671  2017-11-21 08:56  ERPHttpServer\bin\erpserver\sendWindows.class

     文件     188671  2010-04-27 15:31  ERPHttpServer\jsonlib\commons-beanutils-1.7.0.jar

     文件     571259  2010-04-27 15:36  ERPHttpServer\jsonlib\commons-collections-3.2.jar

     文件     175426  2010-04-27 15:34  ERPHttpServer\jsonlib\commons-collections.jar

     文件     279781  2010-04-27 15:31  ERPHttpServer\jsonlib\commons-httpclient-3.0.1.jar

     文件     261809  2010-04-27 15:31  ERPHttpServer\jsonlib\commons-lang-2.4.jar

     文件      38015  2006-01-28 06:13  ERPHttpServer\jsonlib\commons-logging-1.0.4.jar

     文件      77826  2010-04-27 15:38  ERPHttpServer\jsonlib\ezmorph-1.0.3.jar

     文件     148490  2010-04-27 15:38  ERPHttpServer\jsonlib\json-lib-2.2.3-jdk15.jar

     文件     151390  2010-03-25 20:52  ERPHttpServer\jsonlib\json-lib-2.3-jdk13.jar

     文件        915  2009-10-13 16:29  ERPHttpServer\jsonlib\toJson.txt

     文件       4681  2017-11-21 08:53  ERPHttpServer\src\erpserver\HttpReveive.java

     文件       2336  2017-10-14 10:43  ERPHttpServer\src\erpserver\HttpSend.java

     文件       2864  2017-10-14 09:31  ERPHttpServer\src\erpserver\reveiveWindows.java

     文件       2811  2017-11-21 08:56  ERPHttpServer\src\erpserver\sendWindows.java

     目录          0  2017-11-21 08:55  ERPHttpServer\bin\erpserver

     目录          0  2017-11-21 08:43  ERPHttpServer\src\erpserver

     目录          0  2017-11-21 08:43  ERPHttpServer\.settings

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

评论

共有 条评论