Merge
This commit is contained in:
commit
076ac3ae62
@ -145,6 +145,7 @@ public interface JClassContainer {
|
||||
* newly created Annotation Type Declaration
|
||||
* @exception JClassAlreadyExistsException
|
||||
* When the specified class/interface was already created.
|
||||
|
||||
*/
|
||||
public JDefinedClass _annotationTypeDeclaration(String name) throws JClassAlreadyExistsException;
|
||||
|
||||
@ -156,6 +157,7 @@ public interface JClassContainer {
|
||||
* newly created Enum
|
||||
* @exception JClassAlreadyExistsException
|
||||
* When the specified class/interface was already created.
|
||||
|
||||
*/
|
||||
public JDefinedClass _enum (String name) throws JClassAlreadyExistsException;
|
||||
|
||||
|
@ -428,6 +428,7 @@ public class JDefinedClass
|
||||
* newly created Annotation Type Declaration
|
||||
* @exception JClassAlreadyExistsException
|
||||
* When the specified class/interface was already created.
|
||||
|
||||
*/
|
||||
public JDefinedClass _annotationTypeDeclaration(String name) throws JClassAlreadyExistsException {
|
||||
return _class (JMod.PUBLIC,name,ClassType.ANNOTATION_TYPE_DECL);
|
||||
|
@ -55,12 +55,19 @@ import com.sun.xml.internal.messaging.saaj.util.*;
|
||||
*/
|
||||
public class HttpSOAPConnection extends SOAPConnection {
|
||||
|
||||
protected static Logger log =
|
||||
public static final String vmVendor = System.getProperty("java.vendor.url");
|
||||
private static final String sunVmVendor = "http://java.sun.com/";
|
||||
private static final String ibmVmVendor = "http://www.ibm.com/";
|
||||
private static final boolean isSunVM = sunVmVendor.equals(vmVendor) ? true: false;
|
||||
private static final boolean isIBMVM = ibmVmVendor.equals(vmVendor) ? true : false;
|
||||
private static final String JAXM_URLENDPOINT="javax.xml.messaging.URLEndpoint";
|
||||
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(LogDomainConstants.HTTP_CONN_DOMAIN,
|
||||
"com.sun.xml.internal.messaging.saaj.client.p2p.LocalStrings");
|
||||
|
||||
public static String defaultProxyHost = null;
|
||||
public static int defaultProxyPort = -1;
|
||||
public static final String defaultProxyHost = null;
|
||||
public static final int defaultProxyPort = -1;
|
||||
|
||||
MessageFactory messageFactory = null;
|
||||
|
||||
@ -72,6 +79,9 @@ public class HttpSOAPConnection extends SOAPConnection {
|
||||
|
||||
try {
|
||||
messageFactory = MessageFactory.newInstance(SOAPConstants.DYNAMIC_SOAP_PROTOCOL);
|
||||
} catch (NoSuchMethodError ex) {
|
||||
//fallback to default SOAP 1.1 in this case for backward compatibility
|
||||
messageFactory = MessageFactory.newInstance();
|
||||
} catch (Exception ex) {
|
||||
log.log(Level.SEVERE, "SAAJ0001.p2p.cannot.create.msg.factory", ex);
|
||||
throw new SOAPExceptionImpl("Unable to create message factory", ex);
|
||||
@ -96,10 +106,15 @@ public class HttpSOAPConnection extends SOAPConnection {
|
||||
}
|
||||
|
||||
Class urlEndpointClass = null;
|
||||
ClassLoader loader = Thread.currentThread().getContextClassLoader();
|
||||
|
||||
try {
|
||||
urlEndpointClass = Class.forName("javax.xml.messaging.URLEndpoint");
|
||||
} catch (Exception ex) {
|
||||
if (loader != null) {
|
||||
urlEndpointClass = loader.loadClass(JAXM_URLENDPOINT);
|
||||
} else {
|
||||
urlEndpointClass = Class.forName(JAXM_URLENDPOINT);
|
||||
}
|
||||
} catch (ClassNotFoundException ex) {
|
||||
//Do nothing. URLEndpoint is available only when JAXM is there.
|
||||
log.finest("SAAJ0090.p2p.endpoint.available.only.for.JAXM");
|
||||
}
|
||||
@ -639,10 +654,23 @@ public class HttpSOAPConnection extends SOAPConnection {
|
||||
|
||||
return ret;
|
||||
}
|
||||
//private static String SSL_PKG = "com.sun.net.ssl.internal.www.protocol";
|
||||
//private static String SSL_PROVIDER =
|
||||
// "com.sun.net.ssl.internal.ssl.Provider";
|
||||
private static final String SSL_PKG;
|
||||
private static final String SSL_PROVIDER;
|
||||
|
||||
private static String SSL_PKG = "com.sun.net.ssl.internal.www.protocol";
|
||||
private static String SSL_PROVIDER =
|
||||
"com.sun.net.ssl.internal.ssl.Provider";
|
||||
|
||||
static {
|
||||
if (isIBMVM) {
|
||||
SSL_PKG ="com.ibm.net.ssl.internal.www.protocol";
|
||||
SSL_PROVIDER ="com.ibm.net.ssl.internal.ssl.Provider";
|
||||
} else {
|
||||
//if not IBM VM default to Sun.
|
||||
SSL_PKG = "com.sun.net.ssl.internal.www.protocol";
|
||||
SSL_PROVIDER ="com.sun.net.ssl.internal.ssl.Provider";
|
||||
}
|
||||
}
|
||||
private void initHttps() {
|
||||
//if(!setHttps) {
|
||||
String pkgs = System.getProperty("java.protocol.handler.pkgs");
|
||||
|
@ -70,7 +70,7 @@ import javax.xml.soap.*;
|
||||
*/
|
||||
public class AttachmentPartImpl extends AttachmentPart {
|
||||
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(LogDomainConstants.SOAP_DOMAIN,
|
||||
"com.sun.xml.internal.messaging.saaj.soap.LocalStrings");
|
||||
|
||||
|
@ -23,9 +23,9 @@
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: EnvelopeFactory.java,v 1.24 2006/01/27 12:49:26 vj135062 Exp $
|
||||
* $Revision: 1.24 $
|
||||
* $Date: 2006/01/27 12:49:26 $
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -55,7 +55,7 @@ import com.sun.xml.internal.messaging.saaj.util.transform.EfficientStreamingTran
|
||||
*/
|
||||
public class EnvelopeFactory {
|
||||
|
||||
protected static Logger
|
||||
protected static final Logger
|
||||
log = Logger.getLogger(LogDomainConstants.SOAP_DOMAIN,
|
||||
"com.sun.xml.internal.messaging.saaj.soap.LocalStrings");
|
||||
|
||||
|
@ -49,7 +49,7 @@ import com.sun.xml.internal.messaging.saaj.util.LogDomainConstants;
|
||||
public class ImageDataContentHandler extends Component
|
||||
implements DataContentHandler {
|
||||
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(LogDomainConstants.SOAP_DOMAIN,
|
||||
"com.sun.xml.internal.messaging.saaj.soap.LocalStrings");
|
||||
|
||||
|
@ -23,9 +23,9 @@
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: MessageFactoryImpl.java,v 1.23 2006/01/27 12:49:27 vj135062 Exp $
|
||||
* $Revision: 1.23 $
|
||||
* $Date: 2006/01/27 12:49:27 $
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -54,15 +54,15 @@ import com.sun.xml.internal.messaging.saaj.util.TeeInputStream;
|
||||
*/
|
||||
public class MessageFactoryImpl extends MessageFactory {
|
||||
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(LogDomainConstants.SOAP_DOMAIN,
|
||||
"com.sun.xml.internal.messaging.saaj.soap.LocalStrings");
|
||||
|
||||
protected static OutputStream listener;
|
||||
protected OutputStream listener;
|
||||
|
||||
protected boolean lazyAttachments = false;
|
||||
|
||||
public static OutputStream listen(OutputStream newListener) {
|
||||
public OutputStream listen(OutputStream newListener) {
|
||||
OutputStream oldListener = listener;
|
||||
listener = newListener;
|
||||
return oldListener;
|
||||
|
@ -23,9 +23,9 @@
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: MessageImpl.java,v 1.5 2006/12/12 10:16:33 kumarjayanti Exp $
|
||||
* $Revision: 1.5 $
|
||||
* $Date: 2006/12/12 10:16:33 $
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -69,7 +69,7 @@ public abstract class MessageImpl
|
||||
public static final String CONTENT_ID = "Content-ID";
|
||||
public static final String CONTENT_LOCATION = "Content-Location";
|
||||
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(LogDomainConstants.SOAP_DOMAIN,
|
||||
"com.sun.xml.internal.messaging.saaj.soap.LocalStrings");
|
||||
|
||||
|
@ -37,7 +37,7 @@ import com.sun.xml.internal.messaging.saaj.util.LogDomainConstants;
|
||||
|
||||
public class SAAJMetaFactoryImpl extends SAAJMetaFactory {
|
||||
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(LogDomainConstants.SOAP_DOMAIN,
|
||||
"com.sun.xml.internal.messaging.saaj.soap.LocalStrings");
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: SOAPDocumentImpl.java,v 1.15 2006/01/27 12:49:29 vj135062 Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -45,7 +45,7 @@ import com.sun.xml.internal.messaging.saaj.util.LogDomainConstants;
|
||||
|
||||
public class SOAPDocumentImpl extends DocumentImpl implements SOAPDocument {
|
||||
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(LogDomainConstants.SOAP_DOMAIN,
|
||||
"com.sun.xml.internal.messaging.saaj.soap.LocalStrings");
|
||||
|
||||
|
@ -23,9 +23,9 @@
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: SOAPFactoryImpl.java,v 1.21 2006/01/27 12:49:29 vj135062 Exp $
|
||||
* $Revision: 1.21 $
|
||||
* $Date: 2006/01/27 12:49:29 $
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -50,7 +50,7 @@ import org.w3c.dom.Attr;
|
||||
|
||||
public abstract class SOAPFactoryImpl extends SOAPFactory {
|
||||
|
||||
protected static Logger
|
||||
protected static final Logger
|
||||
log = Logger.getLogger(LogDomainConstants.SOAP_DOMAIN,
|
||||
"com.sun.xml.internal.messaging.saaj.soap.LocalStrings");
|
||||
|
||||
|
@ -23,9 +23,9 @@
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: SOAPPartImpl.java,v 1.1.1.1 2006/01/27 13:10:55 kumarjayanti Exp $
|
||||
* $Revision: 1.1.1.1 $
|
||||
* $Date: 2006/01/27 13:10:55 $
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -59,7 +59,7 @@ import javax.xml.transform.sax.SAXSource;
|
||||
* @author Anil Vijendran (anil@sun.com)
|
||||
*/
|
||||
public abstract class SOAPPartImpl extends SOAPPart implements SOAPDocument {
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(LogDomainConstants.SOAP_DOMAIN,
|
||||
"com.sun.xml.internal.messaging.saaj.soap.LocalStrings");
|
||||
|
||||
|
@ -23,9 +23,9 @@
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: CDATAImpl.java,v 1.19 2006/01/27 12:49:34 vj135062 Exp $
|
||||
* $Revision: 1.19 $
|
||||
* $Date: 2006/01/27 12:49:34 $
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@ public class CDATAImpl
|
||||
extends com.sun.org.apache.xerces.internal.dom.CDATASectionImpl
|
||||
implements javax.xml.soap.Text {
|
||||
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(LogDomainConstants.SOAP_IMPL_DOMAIN,
|
||||
"com.sun.xml.internal.messaging.saaj.soap.impl.LocalStrings");
|
||||
|
||||
|
@ -23,9 +23,9 @@
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: CommentImpl.java,v 1.17 2006/01/27 12:49:34 vj135062 Exp $
|
||||
* $Revision: 1.17 $
|
||||
* $Date: 2006/01/27 12:49:34 $
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ public class CommentImpl
|
||||
extends com.sun.org.apache.xerces.internal.dom.CommentImpl
|
||||
implements javax.xml.soap.Text, org.w3c.dom.Comment {
|
||||
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(LogDomainConstants.SOAP_IMPL_DOMAIN,
|
||||
"com.sun.xml.internal.messaging.saaj.soap.impl.LocalStrings");
|
||||
protected static ResourceBundle rb =
|
||||
|
@ -23,9 +23,9 @@
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: ElementImpl.java,v 1.6 2006/11/16 16:01:14 kumarjayanti Exp $
|
||||
* $Revision: 1.6 $
|
||||
* $Date: 2006/11/16 16:01:14 $
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -60,7 +60,7 @@ public class ElementImpl
|
||||
|
||||
protected QName elementQName;
|
||||
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(LogDomainConstants.SOAP_IMPL_DOMAIN,
|
||||
"com.sun.xml.internal.messaging.saaj.soap.impl.LocalStrings");
|
||||
|
||||
|
@ -23,9 +23,9 @@
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: TextImpl.java,v 1.19 2006/01/27 12:49:36 vj135062 Exp $
|
||||
* $Revision: 1.19 $
|
||||
* $Date: 2006/01/27 12:49:36 $
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@ public class TextImpl
|
||||
extends com.sun.org.apache.xerces.internal.dom.TextImpl
|
||||
implements javax.xml.soap.Text, org.w3c.dom.Text {
|
||||
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(LogDomainConstants.SOAP_IMPL_DOMAIN,
|
||||
"com.sun.xml.internal.messaging.saaj.soap.impl.LocalStrings");
|
||||
|
||||
|
@ -23,9 +23,9 @@
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: NameImpl.java,v 1.48 2006/01/27 12:49:38 vj135062 Exp $
|
||||
* $Revision: 1.48 $
|
||||
* $Date: 2006/01/27 12:49:38 $
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -63,7 +63,7 @@ public class NameImpl implements Name {
|
||||
protected String prefix = "";
|
||||
private String qualifiedName = null;
|
||||
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(LogDomainConstants.NAMING_DOMAIN,
|
||||
"com.sun.xml.internal.messaging.saaj.soap.name.LocalStrings");
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: Fault1_1Impl.java,v 1.1.1.1 2006/01/27 13:10:57 kumarjayanti Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -57,7 +57,7 @@ import com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl;
|
||||
|
||||
public class Fault1_1Impl extends FaultImpl {
|
||||
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(
|
||||
LogDomainConstants.SOAP_VER1_1_DOMAIN,
|
||||
"com.sun.xml.internal.messaging.saaj.soap.ver1_1.LocalStrings");
|
||||
|
@ -23,7 +23,7 @@
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: Header1_1Impl.java,v 1.29 2006/01/27 12:49:41 vj135062 Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -50,7 +50,7 @@ import com.sun.xml.internal.messaging.saaj.util.LogDomainConstants;
|
||||
|
||||
public class Header1_1Impl extends HeaderImpl {
|
||||
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(LogDomainConstants.SOAP_VER1_1_DOMAIN,
|
||||
"com.sun.xml.internal.messaging.saaj.soap.ver1_1.LocalStrings");
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: HeaderElement1_1Impl.java,v 1.29 2006/01/27 12:49:41 vj135062 Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -49,7 +49,7 @@ import com.sun.xml.internal.messaging.saaj.util.LogDomainConstants;
|
||||
|
||||
public class HeaderElement1_1Impl extends HeaderElementImpl {
|
||||
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(LogDomainConstants.SOAP_VER1_1_DOMAIN,
|
||||
"com.sun.xml.internal.messaging.saaj.soap.ver1_1.LocalStrings");
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: Message1_1Impl.java,v 1.24 2006/01/27 12:49:41 vj135062 Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -48,7 +48,7 @@ import com.sun.xml.internal.messaging.saaj.util.LogDomainConstants;
|
||||
|
||||
public class Message1_1Impl extends MessageImpl implements SOAPConstants {
|
||||
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(LogDomainConstants.SOAP_VER1_1_DOMAIN,
|
||||
"com.sun.xml.internal.messaging.saaj.soap.ver1_1.LocalStrings");
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: SOAPPart1_1Impl.java,v 1.1.1.1 2006/01/27 13:10:57 kumarjayanti Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -48,7 +48,7 @@ import com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser;
|
||||
|
||||
public class SOAPPart1_1Impl extends SOAPPartImpl implements SOAPConstants {
|
||||
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(LogDomainConstants.SOAP_VER1_1_DOMAIN,
|
||||
"com.sun.xml.internal.messaging.saaj.soap.ver1_1.LocalStrings");
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: Body1_2Impl.java,v 1.32 2006/01/27 12:49:44 vj135062 Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -50,7 +50,7 @@ import com.sun.xml.internal.messaging.saaj.soap.name.NameImpl;
|
||||
|
||||
public class Body1_2Impl extends BodyImpl {
|
||||
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(Body1_2Impl.class.getName(),
|
||||
"com.sun.xml.internal.messaging.saaj.soap.ver1_2.LocalStrings");
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: Detail1_2Impl.java,v 1.24 2006/01/27 12:49:45 vj135062 Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ import com.sun.xml.internal.messaging.saaj.soap.name.NameImpl;
|
||||
|
||||
public class Detail1_2Impl extends DetailImpl {
|
||||
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(Detail1_2Impl.class.getName(),
|
||||
"com.sun.xml.internal.messaging.saaj.soap.ver1_2.LocalStrings");
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: Envelope1_2Impl.java,v 1.26 2006/01/27 12:49:47 vj135062 Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ import com.sun.xml.internal.messaging.saaj.soap.name.NameImpl;
|
||||
|
||||
public class Envelope1_2Impl extends EnvelopeImpl {
|
||||
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(Envelope1_2Impl.class.getName(),
|
||||
"com.sun.xml.internal.messaging.saaj.soap.ver1_2.LocalStrings");
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: Fault1_2Impl.java,v 1.1.1.1 2006/01/27 13:10:57 kumarjayanti Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -51,7 +51,7 @@ import com.sun.xml.internal.messaging.saaj.util.LogDomainConstants;
|
||||
|
||||
public class Fault1_2Impl extends FaultImpl {
|
||||
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(
|
||||
LogDomainConstants.SOAP_VER1_2_DOMAIN,
|
||||
"com.sun.xml.internal.messaging.saaj.soap.ver1_2.LocalStrings");
|
||||
|
@ -23,7 +23,7 @@
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: Header1_2Impl.java,v 1.36 2006/01/27 12:49:48 vj135062 Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -53,7 +53,7 @@ import com.sun.xml.internal.messaging.saaj.util.LogDomainConstants;
|
||||
|
||||
public class Header1_2Impl extends HeaderImpl {
|
||||
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(
|
||||
LogDomainConstants.SOAP_VER1_2_DOMAIN,
|
||||
"com.sun.xml.internal.messaging.saaj.soap.ver1_2.LocalStrings");
|
||||
|
@ -23,7 +23,7 @@
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: HeaderElement1_2Impl.java,v 1.29 2006/01/27 12:49:48 vj135062 Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ import com.sun.xml.internal.messaging.saaj.soap.name.NameImpl;
|
||||
|
||||
public class HeaderElement1_2Impl extends HeaderElementImpl {
|
||||
|
||||
private static Logger log =
|
||||
private static final Logger log =
|
||||
Logger.getLogger(HeaderElement1_2Impl.class.getName(),
|
||||
"com.sun.xml.internal.messaging.saaj.soap.ver1_2.LocalStrings");
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: SOAPPart1_2Impl.java,v 1.1.1.1 2006/01/27 13:10:57 kumarjayanti Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ import com.sun.xml.internal.messaging.saaj.util.XMLDeclarationParser;
|
||||
|
||||
public class SOAPPart1_2Impl extends SOAPPartImpl implements SOAPConstants{
|
||||
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(SOAPPart1_2Impl.class.getName(),
|
||||
"com.sun.xml.internal.messaging.saaj.soap.ver1_2.LocalStrings");
|
||||
|
||||
|
@ -45,12 +45,12 @@ import org.xml.sax.helpers.AttributesImpl;
|
||||
* because they are not legal in SOAP. If the user of this class sets a
|
||||
* LexicalHandler, then it forwards events to that handler.
|
||||
*
|
||||
* $Id: RejectDoctypeSaxFilter.java,v 1.13 2006/01/27 12:49:52 vj135062 Exp $
|
||||
*
|
||||
* @author Edwin Goei
|
||||
*/
|
||||
|
||||
public class RejectDoctypeSaxFilter extends XMLFilterImpl implements XMLReader, LexicalHandler{
|
||||
protected static Logger log =
|
||||
protected static final Logger log =
|
||||
Logger.getLogger(LogDomainConstants.UTIL_DOMAIN,
|
||||
"com.sun.xml.internal.messaging.saaj.util.LocalStrings");
|
||||
|
||||
|
@ -62,12 +62,13 @@ import com.sun.xml.internal.messaging.saaj.util.FastInfosetReflection;
|
||||
public class EfficientStreamingTransformer
|
||||
extends javax.xml.transform.Transformer {
|
||||
|
||||
static final String version;
|
||||
static final String vendor;
|
||||
//static final String version;
|
||||
//static final String vendor;
|
||||
|
||||
protected static TransformerFactory transformerFactory = TransformerFactory.newInstance();
|
||||
protected static final TransformerFactory transformerFactory = TransformerFactory.newInstance();
|
||||
|
||||
static {
|
||||
//removing support for Java 1.4 and 1.3 : CR6658158
|
||||
/*static {
|
||||
version = System.getProperty("java.vm.version");
|
||||
vendor = System.getProperty("java.vm.vendor");
|
||||
if (vendor.startsWith("Sun") &&
|
||||
@ -76,6 +77,7 @@ public class EfficientStreamingTransformer
|
||||
new com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl();
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
/**
|
||||
* TransformerFactory instance.
|
||||
|
@ -25,6 +25,9 @@
|
||||
|
||||
package com.sun.xml.internal.txw2;
|
||||
|
||||
import java.util.AbstractList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import javax.xml.namespace.QName;
|
||||
|
||||
/**
|
||||
@ -53,8 +56,9 @@ public interface DatatypeWriter<DT> {
|
||||
*/
|
||||
void print(DT dt, NamespaceResolver resolver, StringBuilder buf);
|
||||
|
||||
static final List<DatatypeWriter<?>> BUILTIN = Collections.unmodifiableList(new AbstractList() {
|
||||
|
||||
static final DatatypeWriter<?>[] BUILDIN = new DatatypeWriter<?>[] {
|
||||
private DatatypeWriter<?>[] BUILTIN_ARRAY = new DatatypeWriter<?>[] {
|
||||
new DatatypeWriter<String>() {
|
||||
public Class<String> getType() {
|
||||
return String.class;
|
||||
@ -99,4 +103,13 @@ public interface DatatypeWriter<DT> {
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
public DatatypeWriter<?> get(int n) {
|
||||
return BUILTIN_ARRAY[n];
|
||||
}
|
||||
|
||||
public int size() {
|
||||
return BUILTIN_ARRAY.length;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ public final class Document {
|
||||
|
||||
Document(XmlSerializer out) {
|
||||
this.out = out;
|
||||
for( DatatypeWriter dw : DatatypeWriter.BUILDIN )
|
||||
for( DatatypeWriter dw : DatatypeWriter.BUILTIN )
|
||||
datatypeWriters.put(dw.getType(),dw);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user