Package org.apache.cxf.service.model
Class AbstractMessageContainer
java.lang.Object
org.apache.cxf.service.model.AbstractPropertiesHolder
org.apache.cxf.service.model.AbstractMessageContainer
- All Implemented Interfaces:
Extensible
,NamedItem
- Direct Known Subclasses:
FaultInfo
,MessageInfo
public abstract class AbstractMessageContainer
extends AbstractPropertiesHolder
implements NamedItem
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddMessagePart
(String name) addMessagePart
(QName name) Adds a message part to this container.void
Adds a message part to this container.addOutOfBandMessagePart
(QName name) boolean
getMessagePart
(int n) Returns the n'th message part.getMessagePart
(QName name) Returns the message part with the given name, if found.getMessagePartByIndex
(int i) int
getMessagePartQName
(String name) Returns all message parts for this message.int
getName()
Returns the operation of this container.int
hashCode()
void
removeMessagePart
(QName name) Removes an message part from this container.void
int
size()
Methods inherited from class org.apache.cxf.service.model.AbstractPropertiesHolder
addExtensionAttribute, addExtensor, containsExtensor, equals, getDocumentation, getExtensionAttribute, getExtensionAttributes, getExtensor, getExtensors, getExtensors, getProperties, getProperty, getProperty, getTraversedExtensor, hasProperty, removeProperty, setDelegate, setDocumentation, setExtensionAttributes, setProperty
-
Field Details
-
mName
-
-
Method Details
-
getMessageDocumentation
-
setMessageDocumentation
-
getName
-
getOperation
Returns the operation of this container.- Returns:
- the operation.
-
addMessagePart
Adds a message part to this container.- Parameters:
name
- the qualified name of the message part- Returns:
- name the newly created
MessagePartInfo
object
-
getMessagePartQName
-
addMessagePart
-
addMessagePart
Adds a message part to this container.- Parameters:
part
- the message part.
-
getMessagePartIndex
-
getMessagePartByIndex
-
removeMessagePart
Removes an message part from this container.- Parameters:
name
- the qualified message part name.
-
getMessagePart
Returns the message part with the given name, if found.- Parameters:
name
- the qualified name.- Returns:
- the message part; or
null
if not found.
-
getMessagePart
Returns the n'th message part.- Parameters:
n
- the n'th part to retrieve.- Returns:
- the message part; or
null
if not found.
-
addOutOfBandMessagePart
-
getMessageParts
Returns all message parts for this message.- Returns:
- all message parts.
-
getMessagePartsNumber
public int getMessagePartsNumber() -
getFirstMessagePart
-
getOutOfBandParts
-
size
public int size() -
hashCode
public int hashCode() -
equals
-