public class CarbonExtension extends 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.
|
| 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.
|
String |
getElementName()
Returns the root element name.
|
Forwarded |
getForwarded()
Get the forwarded packet.
|
String |
getNamespace()
Returns the root element XML namespace.
|
String |
toXML()
Returns the XML representation of the PacketExtension.
|
public static final 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 String getElementName()
PacketExtensiongetElementName in interface PacketExtensionpublic String getNamespace()
PacketExtensiongetNamespace in interface PacketExtensionpublic String toXML()
PacketExtensiontoXML in interface PacketExtension