Spring Web Services Framework

org.springframework.ws.soap.soap12
Interface Soap12Header

All Superinterfaces:
SoapElement, SoapHeader

public interface Soap12Header
extends SoapHeader

Subinterface of SoapHeader that exposes SOAP 1.2 functionality.

Since:
1.0.0
Author:
Arjen Poutsma

Method Summary
 SoapHeaderElement addNotUnderstoodHeaderElement(QName headerName)
          Adds a new NotUnderstood SoapHeaderElement this header.
 SoapHeaderElement addUpgradeHeaderElement(String[] supportedSoapUris)
          Adds a new Upgrade SoapHeaderElement this header.
 Iterator<SoapHeaderElement> examineHeaderElementsToProcess(String[] roles, boolean isUltimateReceiver)
          Returns an Iterator over all the header elements that should be processed for the given roles.
 
Methods inherited from interface org.springframework.ws.soap.SoapHeader
addHeaderElement, examineAllHeaderElements, examineHeaderElements, examineMustUnderstandHeaderElements, getResult, removeHeaderElement
 
Methods inherited from interface org.springframework.ws.soap.SoapElement
addAttribute, addNamespaceDeclaration, getAllAttributes, getAttributeValue, getName, getSource, removeAttribute
 

Method Detail

addNotUnderstoodHeaderElement

SoapHeaderElement addNotUnderstoodHeaderElement(QName headerName)
Adds a new NotUnderstood SoapHeaderElement this header.

Parameters:
headerName - the qualified name of the header that was not understood
Returns:
the created SoapHeaderElement
Throws:
SoapHeaderException - if the header cannot be created

addUpgradeHeaderElement

SoapHeaderElement addUpgradeHeaderElement(String[] supportedSoapUris)
Adds a new Upgrade SoapHeaderElement this header.

Parameters:
supportedSoapUris - an array of the URIs of SOAP versions supported
Returns:
the created SoapHeaderElement
Throws:
SoapHeaderException - if the header cannot be created

examineHeaderElementsToProcess

Iterator<SoapHeaderElement> examineHeaderElementsToProcess(String[] roles,
                                                           boolean isUltimateReceiver)
                                                           throws SoapHeaderException
Returns an Iterator over all the header elements that should be processed for the given roles. Headers target to the "next" role will always be included, and those targeted to "none" will never be included.

Parameters:
roles - an array of roles to search for
isUltimateReceiver - whether to search for headers for the ultimate receiver
Returns:
an iterator over all the header elements that contain the specified roles
Throws:
SoapHeaderException - if the headers cannot be returned
See Also:
SoapHeaderElement

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.