#include <IHeaderBlock.hpp>
Public Member Functions | |
virtual INamespace * | createNamespaceDecl (const AxisChar *prefix, const AxisChar *uri)=0 |
virtual BasicNode * | getFirstChild ()=0 |
virtual int | getNoOfChildren ()=0 |
virtual BasicNode * | createChild (NODE_TYPE eNODE_TYPE, AxisChar *pachLocalName, AxisChar *pachPrefix, AxisChar *pachUri, AxisChar *pachValue)=0 |
virtual BasicNode * | createImmediateChild (NODE_TYPE eNODE_TYPE, AxisChar *pachLocalName, AxisChar *pachPrefix, AxisChar *pachUri, AxisChar *pachValue)=0 |
virtual IAttribute * | createStdAttribute (HEADER_BLOCK_STD_ATTR_TYPE eStdAttrType, SOAP_VERSION eSOAP_VERSION)=0 |
virtual IAttribute * | createAttribute (const AxisChar *localname, const AxisChar *prefix, const AxisChar *uri, const AxisChar *value)=0 |
virtual IAttribute * | createAttribute (const AxisChar *localname, const AxisChar *prefix, const AxisChar *value)=0 |
virtual const AxisChar * | getAttributeValue (const AxisChar *localname, const AxisChar *prefix)=0 |
virtual const AxisChar * | getAttributeUri (const AxisChar *localname, const AxisChar *prefix)=0 |
virtual BasicNode * | createImmediateChild (NODE_TYPE eNODE_TYPE)=0 |
virtual BasicNode * | createChild (NODE_TYPE eNODE_TYPE)=0 |
virtual BasicNode * | getLastChild ()=0 |
virtual BasicNode * | getChild (int iChildPosition)=0 |
virtual int | addChild (BasicNode *pBasicNode)=0 |
virtual int | setLocalName (const AxisChar *localname)=0 |
virtual const AxisChar * | getLocalName ()=0 |
virtual int | setURI (const AxisChar *uri)=0 |
virtual int | setPrefix (const AxisChar *prefix)=0 |
virtual int | initializeForTesting ()=0 |
IHeaderBlock (const IHeaderBlock &rCopy) | |
virtual IHeaderBlock * | clone ()=0 |
virtual | ~IHeaderBlock () |
Samisa Abeysinghe (sabeysinghe@virtusa.com)
Susantha Kumara (susantha@opensource.lk, skumara@virtusa.com)
|
The Destructor. |
|
Adds a child node to the Header Block.
|
|
Creates and returns a clone of this Header Block.
|
|
Creates a Attribute and adds it to this Header Block. NOTE: No checking is done to see if this attribute creation applies to the xsd rules. We expect that the server side will fail. e.g. If creating more than one attribute with the same name the outcome is undefined
|
|
Creates a Attribute and adds it to this Header Block. NOTE: No checking is done to see if this attribute creation applies to the xsd rules. We expect that the server side will fail. e.g. If creating more than one attribute with the same name the outcome is undefined
|
|
Creates a child node depending on the given type. If the type is CHARACTER_NODE a CharacterElement is created. If the type is ELEMENT_NODE a ComplexElement is created. After creating the child it will not be added as a child to the header block. The user has to add the created child to the appropriate locaion as his wish.
|
|
Creates a child node depending on the given node type. i.e: if node type == CHARACTER_NODE then it creates a Character Element. if node type == ELEMENT_NODE then it creates a Complex Element. This method doesn't add the created child to this Header Block. If the user needs to add this created child then he has to use the addChild(BasicNode *pBasicNode) method after creating the child. If the node to be created is a CHARACTER_NODE then only the parameter pachValue will be usefull and for others you can provide NULL. If the node to be created is a ELEMENT_NODE then the parameters pachLocalName, pachPrefix, pachUri will be needed to provide and you can provide NULL for the pachValue.
|
|
Creates a child node depending on the given type. If the type is CHARACTER_NODE a CharacterElement is created. If the type is ELEMENT_NODE a ComplexElement is created. After creating the child it will be added as a immediate child to the header block.
|
|
Creates a child node depending on the given type. If the type is CHARACTER_NODE a CharacterElement is created. If the type is ELEMENT_NODE a ComplexElement is created. After creating the child it will be added as a immediate child to the header block. It is important to note that if the type is CHARACTER_NODE only the NODE_TYPE and value (pachValue) parameters will be usefull.If the type is ELEMENT_NODE the parameters NODE_TYPE, pachLocalName, pachPrefix, pachUri will be usefull.
|
|
Creates a Attribute and adds it to this Header Block as a namespace.
|
|
A user can use this method to create a standard HeaderBlock attribute. The types of HEADER_BLOCK_STD_ATTR_TYPE are: ROLE_NEXT : To create the role attribute to point to next. ROLE_NONE : To create the role attribute to point to none. ROLE_ULTIMATE_RECEIVER : To create the role attribute to point to ultimate receiver. ACTOR : To create the actor attribute to point to next. MUST_UNDERSTAND_TRUE : To create the mustUnderstand attribute to point to true. MUST_UNDERSTAND_FALSE : To create the mustUnderstand attribute to point to false. To use ROLE_NEXT, ROLE_NONE, ROLE_ULTIMATE_RECEIVER, MUST_UNDERSTAND_TRUE, MUST_UNDERSTAND_FALSE the user has to pass SOAP_VER_1_2 as the SOAP_VERSION. To use ACTOR, MUST_UNDERSTAND_TRUE, MUST_UNDERSTAND_FALSE the user has to pass SOAP_VER_1_1 as the SOAP_VERSION. NOTE: No checking is done to see if the attributs being created on the header are correct for SOAP. e.g. if two MUST_UNDERSTAND_TRUE headers are created then the SOAP message is invalid but it will still get sent across to the server. In such instances we expect most servers to respond with a server fault.
|
|
Gets an Attribute from the HeaderBlock.
|
|
Returns the child element at the given postion. The user has to check whether the method return NULL before proceding.
|
|
Returns the last child element. The user has to check whether the method return NULL before proceding.
|
|
Gets the local name of this Header Block. |
|
Returns the number of child elements of this HeaderBlock.
|
|
Initialized the Header Block for testing. |
|
Sets the local name of this Header Block.
|
|
Sets the prefix of this Header Block.
|
|
Sets the namespace uri of this Header Block.
|