public class CarbonExtension extends java.lang.Object implements PacketExtension
| Modifier and Type | Class and Description |
|---|---|
static class |
CarbonExtension.Direction
Defines the direction of a
CarbonExtension message. |
static class |
CarbonExtension.Private
Packet extension indicating that a message may not be carbon-copied.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAMESPACE |
| Constructor and Description |
|---|
CarbonExtension(CarbonExtension.Direction dir,
Forwarded fwd)
Construct a Carbon message extension.
|
| Modifier and Type | Method and Description |
|---|---|
CarbonExtension.Direction |
getDirection()
Get the direction (sent or received) of the carbon.
|
java.lang.String |
getElementName()
Returns the root element name.
|
Forwarded |
getForwarded()
Get the forwarded packet.
|
java.lang.String |
getNamespace()
Returns the root element XML namespace.
|
java.lang.String |
toXML()
Returns the XML representation of the PacketExtension.
|
public static final java.lang.String NAMESPACE
public CarbonExtension(CarbonExtension.Direction dir, Forwarded fwd)
dir - Determines if the carbon is being sent/receivedfwd - The forwarded message.public CarbonExtension.Direction getDirection()
CarbonExtension.Direction of the carbon.public Forwarded getForwarded()
Forwarded message contained in this Carbon.public java.lang.String getElementName()
PacketExtensiongetElementName in interface PacketExtensionpublic java.lang.String getNamespace()
PacketExtensiongetNamespace in interface PacketExtensionpublic java.lang.String toXML()
PacketExtensiontoXML in interface PacketExtension