< prev index next >

test/java/net/httpclient/RequestBodyTest.java

Print this page




   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  * @test @bug 8087112
  26  * @library /lib/testlibrary/
  27  * @build jdk.testlibrary.SimpleSSLContext ProxyServer
  28  * @compile ../../../com/sun/net/httpserver/LogFilter.java
  29  * @compile ../../../com/sun/net/httpserver/FileServerHandler.java


  30  * @run main/othervm RequestBodyTest
  31  */
  32 
  33 import java.io.IOException;
  34 import java.net.URI;
  35 import java.net.URISyntaxException;
  36 import java.net.http.HttpClient;
  37 import java.net.http.HttpRequest;
  38 import java.net.http.HttpResponse;
  39 import java.nio.file.Path;
  40 import java.nio.file.Paths;
  41 import java.util.concurrent.Executors;
  42 import javax.net.ssl.SSLContext;
  43 
  44 public class RequestBodyTest {
  45 
  46     final static String STRING = "string";
  47     final static String BYTE_ARRAY = "byteArray";
  48     final static String BYTE_ARRAYS = "byteArrays";
  49     final static String BYTE_ARRAY_OFFSET = "byteArray_offset";




   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  * @test @bug 8087112
  26  * @library /lib/testlibrary/ /

  27  * @compile ../../../com/sun/net/httpserver/LogFilter.java
  28  * @compile ../../../com/sun/net/httpserver/FileServerHandler.java
  29  * @build LightWeightHttpServer
  30  * @build jdk.testlibrary.SimpleSSLContext ProxyServer
  31  * @run main/othervm RequestBodyTest
  32  */
  33 
  34 import java.io.IOException;
  35 import java.net.URI;
  36 import java.net.URISyntaxException;
  37 import java.net.http.HttpClient;
  38 import java.net.http.HttpRequest;
  39 import java.net.http.HttpResponse;
  40 import java.nio.file.Path;
  41 import java.nio.file.Paths;
  42 import java.util.concurrent.Executors;
  43 import javax.net.ssl.SSLContext;
  44 
  45 public class RequestBodyTest {
  46 
  47     final static String STRING = "string";
  48     final static String BYTE_ARRAY = "byteArray";
  49     final static String BYTE_ARRAYS = "byteArrays";
  50     final static String BYTE_ARRAY_OFFSET = "byteArray_offset";


< prev index next >