package com.sun.xml.internal.messaging.saaj.soap.ver1_1;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.xml.namespace.QName;
import javax.xml.soap.*;
import com.sun.xml.internal.messaging.saaj.soap.SOAPDocument;
import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl;
import com.sun.xml.internal.messaging.saaj.soap.impl.HeaderImpl;
import com.sun.xml.internal.messaging.saaj.soap.name.NameImpl;
import com.sun.xml.internal.messaging.saaj.util.LogDomainConstants;
import org.w3c.dom.Element;
public class extends HeaderImpl {
protected static final Logger =
Logger.getLogger(LogDomainConstants.SOAP_VER1_1_DOMAIN,
"com.sun.xml.internal.messaging.saaj.soap.ver1_1.LocalStrings");
public (SOAPDocumentImpl ownerDocument, String prefix) {
super(ownerDocument, NameImpl.createHeader1_1Name(prefix));
}
public (SOAPDocumentImpl ownerDoc, Element domElement) {
super(ownerDoc, domElement);
}
@Override
protected NameImpl () {
log.log(
Level.SEVERE,
"SAAJ0301.ver1_1.hdr.op.unsupported.in.SOAP1.1",
new String[] { "getNotUnderstoodName" });
throw new UnsupportedOperationException("Not supported by SOAP 1.1");
}
@Override
protected NameImpl () {
return NameImpl.create(
"Upgrade",
getPrefix(),
SOAPConstants.URI_NS_SOAP_1_1_ENVELOPE);
}
@Override
protected NameImpl () {
return NameImpl.create(
"SupportedEnvelope",
getPrefix(),
SOAPConstants.URI_NS_SOAP_1_1_ENVELOPE);
}
@Override
public SOAPHeaderElement (QName name)
throws SOAPException {
log.log(
Level.SEVERE,
"SAAJ0301.ver1_1.hdr.op.unsupported.in.SOAP1.1",
new String[] { "addNotUnderstoodHeaderElement" });
throw new UnsupportedOperationException("Not supported by SOAP 1.1");
}
@Override
protected SOAPHeaderElement (Name name) {
return new HeaderElement1_1Impl(
((SOAPDocument) getOwnerDocument()).getDocument(),
name);
}
@Override
protected SOAPHeaderElement (QName name) {
return new HeaderElement1_1Impl(
((SOAPDocument) getOwnerDocument()).getDocument(),
name);
}
}