Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2005-2010 the original author or authors.
   *
   * 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.springframework.ws.soap.saaj;
 
Forms a bridge between the SOAP class hierarchy and a specific version of SAAJ.

Author(s):
Arjen Poutsma
Since:
1.0.0
 
 abstract class SaajImplementation {
 
     /*
      * SOAPElement
      */

    
Returns the name of the given element.
 
     abstract QName getName(SOAPElement element);

    
Returns the readable Source of the given element.
 
     abstract Source getSource(SOAPElement element);

    
Returns the writable Result of the given element.
 
     abstract Result getResult(SOAPElement element);

    
Returns the text of the given element
 
     abstract String getText(SOAPElement element);

    
Returns the text of the given element
 
     abstract void setText(SOAPElement elementString contentthrows SOAPException;

    
Adds an attribute to the specified element.
 
     abstract void addAttribute(SOAPElement elementQName nameString valuethrows SOAPException;

    
Removes an attribute from the specified element.
 
     abstract void removeAttribute(SOAPElement elementQName namethrows SOAPException;

    
Returns the attribute value *
 
     abstract String getAttributeValue(SOAPElement elementQName namethrows SOAPException;

    
Returns all attributes as an iterator of QNames. *
 
     abstract Iterator<QNamegetAllAttributes(SOAPElement element);

    
Removes the contents (i.e. children) of the element.
 
     abstract void removeContents(SOAPElement element);

    
Returns an iterator over all the child elements with the specified name.
 
     abstract Iterator<SOAPElementgetChildElements(SOAPElement elementQName namethrows SOAPException;

    
Declares a namespace.
 
     abstract void addNamespaceDeclaration(SOAPElement elementString prefixString namespaceUrithrows SOAPException;
 
     /*
      * SOAPMessage
      */

    
Returns the envelope of the given message.
 
     abstract SOAPEnvelope getEnvelope(SOAPMessage messagethrows SOAPException;

    
Writes the given message to the given stream.
 
     abstract void writeTo(SOAPMessage messageOutputStream outputStreamthrows SOAPExceptionIOException;

    
Returns the MIME headers of the message.
 
     abstract MimeHeaders getMimeHeaders(SOAPMessage message);

    
Returns an iteration over all attachments in the message.
    abstract Iterator<AttachmentPartgetAttachments(SOAPMessage message);

    
Returns an iteration over all attachments in the message with the given headers.
    abstract Iterator<AttachmentPartgetAttachment(SOAPMessage messageMimeHeaders mimeHeaders);

    
Adds an attachment to the given message.
    abstract AttachmentPart addAttachmentPart(SOAPMessage messageDataHandler dataHandler);
    /*
     * SOAPEnvelope
     */

    
Returns the header of the given envelope.
    abstract SOAPHeader getHeader(SOAPEnvelope envelopethrows SOAPException;

    
Returns the body of the given envelope.
    abstract SOAPBody getBody(SOAPEnvelope envelopethrows SOAPException;
    /*
     * SOAPHeader
     */

    
Adds a header element to the given header.
    abstract SOAPHeaderElement addHeaderElement(SOAPHeader headerQName namethrows SOAPException;

    
Returns all header elements.
Returns all header elements for which the must understand attribute is true, given the actor or role.
    abstract Iterator<SOAPHeaderElementexamineMustUnderstandHeaderElements(SOAPHeader headerString actorOrRole);

    
Adds a not understood header element to the given header.
    abstract SOAPHeaderElement addNotUnderstoodHeaderElement(SOAPHeader headerQName namethrows SOAPException;

    
Adds a upgrade header element to the given header.
    abstract SOAPHeaderElement addUpgradeHeaderElement(SOAPHeader headerString[] supportedSoapUris)
            throws SOAPException;
    /*
     * SOAPHeaderElement
     */

    
Returns the SOAP 1.1 actor or SOAP 1.2 role attribute for the given header element.
    abstract String getActorOrRole(SOAPHeaderElement headerElement);

    
Sets the SOAP 1.1 actor or SOAP 1.2 role attribute for the given header element.
    abstract void setActorOrRole(SOAPHeaderElement headerElementString actorOrRole);

    
Gets the must understand attribute for the given header element.
    abstract boolean getMustUnderstand(SOAPHeaderElement headerElement);

    
Sets the must understand attribute for the given header element.
    abstract void setMustUnderstand(SOAPHeaderElement headerElementboolean mustUnderstand);
    /*
     * SOAPBody
     */

    
Returns true if the body has a fault, false otherwise.
    abstract boolean hasFault(SOAPBody body);

    
Returns the fault for the given body, if any.
    abstract SOAPFault getFault(SOAPBody body);

    
Adds a fault to the given body.
    abstract SOAPFault addFault(SOAPBody bodyQName faultCodeString faultStringLocale localethrows SOAPException;

    
Returns the first child element of the given body.
    abstract SOAPElement getFirstBodyElement(SOAPBody body);
    /*
     * SOAPFault
     */

    
Returns the fault code for the given fault.
    abstract QName getFaultCode(SOAPFault fault);

    
Returns the actor for the given fault.
    abstract String getFaultActor(SOAPFault fault);

    
Sets the actor for the given fault.
    abstract void setFaultActor(SOAPFault faultString actorOrRolethrows SOAPException;

    
Returns the fault string for the given fault.
    abstract String getFaultString(SOAPFault fault);

    
Returns the fault string language for the given fault.
    abstract Locale getFaultStringLocale(SOAPFault fault);

    
Returns the fault detail for the given fault.
    abstract Detail getFaultDetail(SOAPFault fault);

    
Adds a fault detail for the given fault.
    abstract Detail addFaultDetail(SOAPFault faultthrows SOAPException;

    
Returns the fault role.
    abstract String getFaultRole(SOAPFault fault);

    
Sets the fault role.
    abstract void setFaultRole(SOAPFault faultString rolethrows SOAPException;

    
Returns the fault sub code.
    abstract Iterator<QNamegetFaultSubcodes(SOAPFault fault);

    
Adds a fault sub code.
    abstract void appendFaultSubcode(SOAPFault faultQName subcodethrows SOAPException;

    
Returns the fault node.
    abstract String getFaultNode(SOAPFault fault);

    
Sets the fault node.
    abstract void setFaultNode(SOAPFault faultString urithrows SOAPException;

    
Returns the fault reason text.
    abstract String getFaultReasonText(SOAPFault faultLocale localethrows SOAPException;

    
Sets the fault reason text.
    abstract void setFaultReasonText(SOAPFault faultLocale localeString textthrows SOAPException;
    /*
     * Detail
     */

    
Adds a detail entry to the given detail.
    abstract DetailEntry addDetailEntry(Detail detailQName namethrows SOAPException;

    
Returns an iteration over all detail entries.
    abstract Iterator<DetailEntrygetDetailEntries(Detail detail);
    /*
     * DetailEntry
     */

    
Adds a text node to the given detail entry.
    abstract void addTextNode(DetailEntry detailEntryString textthrows SOAPException;
New to GrepCode? Check out our FAQ X