public class SOAPHeaderImpl extends HandleChain implements SOAPHeader, CommonHandleChain
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
admData
Corresponds to ADM-DATA attribute.
|
private boolean |
deleted
Flag indicating if this resource was deleted or not.
|
private java.util.Map<java.lang.Object,org.w3c.dom.Node> |
entries
Mapping of each key of a header entry to a DOM XML Node.
|
private java.util.List<java.lang.Object> |
entryKeys
List allowing fast indexed access to the header entry keys.
|
private java.util.Set<SOAPHeaderEntryImpl> |
headers
All SOAP Header Entries linked with this SOAP Header.
|
private java.lang.Long |
uniqueID
Corresponds to UNIQUE-ID attribute.
|
name, nextSibling, prevSibling, wainstProc, pm| Constructor and Description |
|---|
SOAPHeaderImpl()
Implicit c'tor.
|
| Modifier and Type | Method and Description |
|---|---|
logical |
addHeaderEntry(handle entryRef)
Creates a new entry in a SOAP-header object's list of entries and associates the new entry
with the given SOAP-HEADER-ENTRY-REF object.
|
(package private) void |
addHeaderEntry(SOAPHeaderEntryImpl entry)
Creates a new entry in a SOAP-header object's list of entries and associates the new entry
with the given SOAP-HEADER-ENTRY-REF object.
|
java.lang.String |
asString()
Get the string representation of the XML payload associated with this soap header.
|
character |
getADMData()
Get the value of the ADM-DATA attribute.
|
logical |
getHeaderEntry(handle target,
int64 idx)
Get the header entry at the given index and assign it to the given handle.
|
logical |
getHeaderEntry(handle target,
integer idx)
Get the header entry at the given index and assign it to the given handle.
|
logical |
getHeaderEntry(handle target,
long idx)
Get the header entry at the given index and assign it to the given handle.
|
(package private) org.w3c.dom.Node |
getHeaderNode(java.lang.Object key)
Get the DOM XML node associated with the given key.
|
integer |
getNumHeaderEntries()
Returns the number of SOAP-HEADER-ENTRYREF object entries attached to the SOAP-HEADER
object.
|
integer |
getUniqueID()
Gets the the unique ID number associated to this object by the underlying system.
|
protected boolean |
hasNameReadOnly()
Check if this resource supports the NAME attribute in read-only mode.
|
protected boolean |
hasNextSibling()
Check if this resource supports the NEXT-SIBLING attribute.
|
protected boolean |
hasPrevSibling()
Check if this resource supports the PREV-SIBLING attribute.
|
(package private) void |
removeHeaderEntry(SOAPHeaderEntryImpl entry,
java.lang.Object key)
Removes the specified SOAP-Header object from the list of header entries.
|
protected boolean |
resourceDelete()
Delete the resource.
|
void |
setADMData(character value)
Set the value of the ADM-DATA attribute.
|
void |
setADMData(java.lang.String value)
Set the value of the ADM-DATA attribute.
|
(package private) void |
setHeaderNode(java.lang.Object key,
org.w3c.dom.Node node)
Associated a new DOM XML node with the given header entry key.
|
boolean |
valid()
Reports if this object is valid for use.
|
_name, delete, firstResource, firstResource, getHead, getNextSibling, getNextSibling, getPrevSibling, getPrevSibling, getPrivateData, getTail, hasName, hasNameConstraints, hasParent, hasPrivateData, interlink, isChained, lastResource, lastResource, moveInChain, name, name, name, readOnlyError, readOnlyError, resolveChainType, setHead, setNextSibling, setNextSibling, setPrevSibling, setPrevSibling, setPrivateData, setPrivateData, setPrivateData, validateName_instantiatingProcedure, addToPool, doDelete, equals, hashCode, id, id, implicitDeletion, incrementTrigger, instantiatingProcedure, invalidAttribute, processResource, registerResource, resourceType, setInstantiatingProcedure, toString, type, unableToAssignUnknown, unknownclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetNextSibling, getPrevSibling, getPrivateData, setPrivateData, setPrivateDatareadOnlyError, readOnlyError, resourceTypeid, id, unknownallowDeleteprivate java.lang.String admData
private java.lang.Long uniqueID
private final java.util.Set<SOAPHeaderEntryImpl> headers
private final java.util.Map<java.lang.Object,org.w3c.dom.Node> entries
private final java.util.List<java.lang.Object> entryKeys
private boolean deleted
public integer getNumHeaderEntries()
getNumHeaderEntries in interface SOAPHeaderpublic logical addHeaderEntry(handle entryRef)
addHeaderEntry in interface SOAPHeaderentryRef - The SOAP Header Entry.true if the operation was possible.public logical getHeaderEntry(handle target, long idx)
This method returns a logical even though the Progress 4GL documentation explicitly states otherwise. Actual working code has proven that the original documentation is incorrect. This implementation matches the actual runtime behavior of the 4GL.
getHeaderEntry in interface SOAPHeadertarget - The handle where the SOAP-HEADER-ENTRY instance will be saved.idx - The index of the SOAP-HEADER-ENTRY instance to retrieve. 4GL allows only integer
and int64 values to be passed to this parameter.true if the operation was possible.public logical getHeaderEntry(handle target, integer idx)
This method returns a logical even though the Progress 4GL documentation explicitly states otherwise. Actual working code has proven that the original documentation is incorrect. This implementation matches the actual runtime behavior of the 4GL.
getHeaderEntry in interface SOAPHeadertarget - The handle where the SOAP-HEADER-ENTRY instance will be saved.idx - The index of the SOAP-HEADER-ENTRY instance to retrieve. 4GL allows only integer
and int64 values to be passed to this parameter.true if the operation was possible.public logical getHeaderEntry(handle target, int64 idx)
This method returns a logical even though the Progress 4GL documentation explicitly states otherwise. Actual working code has proven that the original documentation is incorrect. This implementation matches the actual runtime behavior of the 4GL.
getHeaderEntry in interface SOAPHeadertarget - The handle where the SOAP-HEADER-ENTRY instance will be saved.idx - The index of the SOAP-HEADER-ENTRY instance to retrieve. 4GL allows only integer
and int64 values to be passed to this parameter.true if the operation was possible.public boolean valid()
valid in interface WrappedResourcetrue if we are valid (can be used).public character getADMData()
getADMData in interface ADMDatapublic void setADMData(java.lang.String value)
setADMData in interface ADMDatavalue - The new value.public void setADMData(character value)
setADMData in interface ADMDatavalue - The new value.public integer getUniqueID()
getUniqueID in interface UniqueIDprotected boolean resourceDelete()
resourceDelete in class HandleResourcetrue if the resource was deleted.protected boolean hasNextSibling()
hasNextSibling in class HandleChainfalse.protected boolean hasPrevSibling()
hasPrevSibling in class HandleChainfalse.protected boolean hasNameReadOnly()
hasNameReadOnly in class HandleChaintrue.void removeHeaderEntry(SOAPHeaderEntryImpl entry, java.lang.Object key)
entry - The SOAP Header Entry.key - The key to the DOM XML Node referenced by this header entry.void addHeaderEntry(SOAPHeaderEntryImpl entry)
entry - The SOAP Header Entry.public java.lang.String asString()
If there are no header entries, return null.
org.w3c.dom.Node getHeaderNode(java.lang.Object key)
void setHeaderNode(java.lang.Object key,
org.w3c.dom.Node node)