blob: 42ae89e97038ebc83f5a809757b813c7a8e2d3c8 [file] [log] [blame]
/*
* Copyright 2004,2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ws.commons.soap.impl.llom.factory;
import org.apache.ws.commons.om.OMNamespace;
import org.apache.ws.commons.om.OMXMLParserWrapper;
import org.apache.ws.commons.om.impl.llom.factory.OMLinkedListImplFactory;
import org.apache.ws.commons.soap.SOAPBody;
import org.apache.ws.commons.soap.SOAPEnvelope;
import org.apache.ws.commons.soap.SOAPFactory;
import org.apache.ws.commons.soap.SOAPFault;
import org.apache.ws.commons.soap.SOAPFaultCode;
import org.apache.ws.commons.soap.SOAPFaultDetail;
import org.apache.ws.commons.soap.SOAPFaultNode;
import org.apache.ws.commons.soap.SOAPFaultReason;
import org.apache.ws.commons.soap.SOAPFaultRole;
import org.apache.ws.commons.soap.SOAPFaultSubCode;
import org.apache.ws.commons.soap.SOAPFaultText;
import org.apache.ws.commons.soap.SOAPFaultValue;
import org.apache.ws.commons.soap.SOAPHeader;
import org.apache.ws.commons.soap.SOAPHeaderBlock;
import org.apache.ws.commons.soap.SOAPMessage;
import org.apache.ws.commons.soap.SOAPProcessingException;
import org.apache.ws.commons.soap.impl.llom.SOAPEnvelopeImpl;
import org.apache.ws.commons.soap.impl.llom.SOAPMessageImpl;
public class SOAPLinkedListImplFactory extends OMLinkedListImplFactory implements SOAPFactory {
public String getSoapVersionURI() {
throw new UnsupportedOperationException();
}
public SOAPMessage createSOAPMessage(OMXMLParserWrapper builder) {
return new SOAPMessageImpl(builder);
}
public SOAPMessage createSOAPMessage(SOAPEnvelope envelope, OMXMLParserWrapper parserWrapper) {
return new SOAPMessageImpl(envelope, parserWrapper);
}
/**
* Eran Chinthaka (chinthaka@apache.org)
*/
public SOAPEnvelope createSOAPEnvelope(OMXMLParserWrapper builder) {
return new SOAPEnvelopeImpl(builder, this);
}
public SOAPEnvelope createSOAPEnvelope() {
throw new UnsupportedOperationException();
}
public SOAPHeader createSOAPHeader(SOAPEnvelope envelope) throws SOAPProcessingException {
throw new UnsupportedOperationException();
}
public SOAPHeader createSOAPHeader(SOAPEnvelope envelope,
OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
public SOAPHeaderBlock createSOAPHeaderBlock(String localName,
OMNamespace ns,
SOAPHeader parent) throws SOAPProcessingException {
throw new UnsupportedOperationException();
}
public SOAPHeaderBlock createSOAPHeaderBlock(String localName,
OMNamespace ns,
SOAPHeader parent,
OMXMLParserWrapper builder) throws SOAPProcessingException {
throw new UnsupportedOperationException();
}
public SOAPFault createSOAPFault(SOAPBody parent, Exception e) throws SOAPProcessingException {
throw new UnsupportedOperationException();
}
public SOAPFault createSOAPFault(SOAPBody parent) throws SOAPProcessingException {
throw new UnsupportedOperationException();
}
public SOAPFault createSOAPFault(SOAPBody parent,
OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
public SOAPBody createSOAPBody(SOAPEnvelope envelope) throws SOAPProcessingException {
throw new UnsupportedOperationException();
}
public SOAPBody createSOAPBody(SOAPEnvelope envelope,
OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
public SOAPFaultCode createSOAPFaultCode(SOAPFault parent) throws SOAPProcessingException {
throw new UnsupportedOperationException();
}
public SOAPFaultCode createSOAPFaultCode(SOAPFault parent,
OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent) throws SOAPProcessingException {
throw new UnsupportedOperationException();
}
public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent,
OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
//added
public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent) throws SOAPProcessingException {
throw new UnsupportedOperationException();
}
//added
public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent,
OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
//changed
public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent) throws SOAPProcessingException {
throw new UnsupportedOperationException();
}
//changed
public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent,
OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent) throws SOAPProcessingException {
throw new UnsupportedOperationException();
}
public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent,
OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
public SOAPFaultReason createSOAPFaultReason(SOAPFault parent) throws SOAPProcessingException {
throw new UnsupportedOperationException();
}
public SOAPFaultReason createSOAPFaultReason(SOAPFault parent,
OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent) throws SOAPProcessingException {
throw new UnsupportedOperationException();
}
public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent,
OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
public SOAPFaultNode createSOAPFaultNode(SOAPFault parent) throws SOAPProcessingException {
throw new UnsupportedOperationException();
}
public SOAPFaultNode createSOAPFaultNode(SOAPFault parent,
OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
public SOAPFaultRole createSOAPFaultRole(SOAPFault parent) throws SOAPProcessingException {
throw new UnsupportedOperationException();
}
public SOAPFaultRole createSOAPFaultRole(SOAPFault parent,
OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent) throws SOAPProcessingException {
throw new UnsupportedOperationException();
}
public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent,
OMXMLParserWrapper builder) {
throw new UnsupportedOperationException();
}
/**
* Method getDefaultEnvelope
*
* @return Returns SOAPEnvelope.
*/
public SOAPEnvelope getDefaultEnvelope() throws SOAPProcessingException {
throw new UnsupportedOperationException();
}
public SOAPEnvelope getDefaultFaultEnvelope() throws SOAPProcessingException {
SOAPEnvelope defaultEnvelope = getDefaultEnvelope();
SOAPFault fault = createSOAPFault(defaultEnvelope.getBody());
SOAPFaultCode faultCode = createSOAPFaultCode(fault);
SOAPFaultValue value = createSOAPFaultValue(faultCode);
SOAPFaultReason reason = createSOAPFaultReason(fault);
SOAPFaultText faultText = createSOAPFaultText(reason);
SOAPFaultNode faultNode = createSOAPFaultNode(fault);
SOAPFaultRole faultRole = createSOAPFaultRole(fault);
SOAPFaultDetail faultDetail = createSOAPFaultDetail(fault);
return defaultEnvelope;
}
}