< prev index next >

test/java/net/httpclient/LightWeightHttpServer.java

Print this page




   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /**
  25  * @library /lib/testlibrary/
  26  * @build jdk.testlibrary.SimpleSSLContext ProxyServer
  27  * @compile ../../../com/sun/net/httpserver/LogFilter.java
  28  * @compile ../../../com/sun/net/httpserver/FileServerHandler.java
  29  */
  30 import com.sun.net.httpserver.Headers;
  31 import com.sun.net.httpserver.HttpContext;
  32 import com.sun.net.httpserver.HttpExchange;
  33 import com.sun.net.httpserver.HttpHandler;
  34 import com.sun.net.httpserver.HttpServer;
  35 import com.sun.net.httpserver.HttpsConfigurator;
  36 import com.sun.net.httpserver.HttpsServer;
  37 import java.io.IOException;
  38 import java.io.InputStream;
  39 import java.io.OutputStream;
  40 import java.net.InetSocketAddress;
  41 import java.nio.file.Path;
  42 import java.util.HashSet;
  43 import java.util.concurrent.BrokenBarrierException;
  44 import java.util.concurrent.CyclicBarrier;
  45 import java.util.concurrent.ExecutorService;
  46 import java.util.concurrent.Executors;
  47 import java.util.logging.ConsoleHandler;
  48 import java.util.logging.Level;




   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /**
  25  * library /lib/testlibrary/ /
  26  * build jdk.testlibrary.SimpleSSLContext ProxyServer EchoHandler
  27  * compile ../../../com/sun/net/httpserver/LogFilter.java
  28  * compile ../../../com/sun/net/httpserver/FileServerHandler.java
  29  */
  30 import com.sun.net.httpserver.Headers;
  31 import com.sun.net.httpserver.HttpContext;
  32 import com.sun.net.httpserver.HttpExchange;
  33 import com.sun.net.httpserver.HttpHandler;
  34 import com.sun.net.httpserver.HttpServer;
  35 import com.sun.net.httpserver.HttpsConfigurator;
  36 import com.sun.net.httpserver.HttpsServer;
  37 import java.io.IOException;
  38 import java.io.InputStream;
  39 import java.io.OutputStream;
  40 import java.net.InetSocketAddress;
  41 import java.nio.file.Path;
  42 import java.util.HashSet;
  43 import java.util.concurrent.BrokenBarrierException;
  44 import java.util.concurrent.CyclicBarrier;
  45 import java.util.concurrent.ExecutorService;
  46 import java.util.concurrent.Executors;
  47 import java.util.logging.ConsoleHandler;
  48 import java.util.logging.Level;


< prev index next >