325N/A * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 325N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 325N/A * This code is free software; you can redistribute it and/or modify it 325N/A * under the terms of the GNU General Public License version 2 only, as 325N/A * published by the Free Software Foundation. Oracle designates this 325N/A * particular file as subject to the "Classpath" exception as provided 325N/A * by Oracle in the LICENSE file that accompanied this code. 325N/A * This code is distributed in the hope that it will be useful, but WITHOUT 325N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 325N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 325N/A * version 2 for more details (a copy is included in the LICENSE file that 325N/A * accompanied this code). 325N/A * You should have received a copy of the GNU General Public License version 325N/A * 2 along with this work; if not, write to the Free Software Foundation, 325N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 325N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 325N/A * or visit www.oracle.com if you need additional information or have any 325N/A * This represents a "connection" to the simple HTTP-based provider. 325N/A * @author Anil Vijendran (akv@eng.sun.com) 325N/A * @author Rajiv Mordani (rajiv.mordani@sun.com) 325N/A * @author Manveen Kaur (manveen.kaur@sun.com) 325N/A //fallback to default SOAP 1.1 in this case for backward compatibility 325N/A //Do nothing. URLEndpoint is available only when JAXM is there. 325N/A // TBD -- exception chaining 325N/A // Will deal with https later. 325N/A +
" not supported in URL " 325N/A boolean hasAuth =
false;
// true if we find explicit Auth header 325N/A // let HTTP_INTERNAL_ERROR (500) through because it is used for SOAP faults 325N/A //else if (responseCode != HttpURLConnection.HTTP_OK) 325N/A //else if (!(responseCode >= HttpURLConnection.HTTP_OK && responseCode < 207)) 325N/A "SAAJ0008.p2p.bad.response",
325N/A // on JDK1.3.1_01, we end up here, but then getResponseCode() succeeds! 325N/A // Header field 0 is the status line so we skip it. 325N/A // If no reply message is returned, 325N/A // content-Length header field value is expected to be zero. 325N/A // Object identifies where the request should be sent. 325N/A // It is required to support objects of type String and java.net.URL. 325N/A //Do nothing. URLEndpoint is available only when JAXM is there. 325N/A /// Is https GET allowed?? 325N/A // Will deal with https later. 325N/A +
" not supported in URL " 325N/A // let HTTP_INTERNAL_ERROR (500) through because it is used for SOAP faults 325N/A "SAAJ0008.p2p.bad.response",
325N/A // on JDK1.3.1_01, we end up here, but then getResponseCode() succeeds! 325N/A // Header field 0 is the status line so we skip it. 325N/A // If no reply message is returned, 325N/A // content-Length header field value is expected to be zero. 325N/A // java SE 6 documentation says : 325N/A // available() : an estimate of the number of bytes that can be read 325N/A //(or skipped over) from this input stream without blocking 325N/A //or 0 when it reaches the end of the input stream. 325N/A "SAAJ0010.p2p.cannot.read.resp",
325N/A //private static String SSL_PKG = "com.sun.net.ssl.internal.www.protocol"; 325N/A //private static String SSL_PROVIDER = 325N/A // "com.sun.net.ssl.internal.ssl.Provider"; 325N/A //if not IBM VM default to Sun. 325N/A "SAAJ0053.p2p.providers",
325N/A "SAAJ0054.p2p.set.providers",
325N/A "SAAJ0055.p2p.added.ssl.provider",
325N/A //System.out.println("Added SSL_PROVIDER " + SSL_PROVIDER); 325N/A //System.out.println("UserInfo= " + userInfo ); 325N/A // concatenate user name and password bytes and encode them 325N/A "SAAJ0013.p2p.HttpSOAPConnection",