Public Member Functions | |
ForwardingEntry (ContentName prefixName, Integer faceID, Integer flags) | |
ForwardingEntry (ActionType action, ContentName prefixName, PublisherPublicKeyDigest ccndId, Integer faceID, Integer flags, Integer lifetime) | |
ForwardingEntry (byte[] raw) | |
ContentName | getPrefixName () |
Integer | getFaceID () |
void | setFaceID (Integer faceID) |
String | action () |
PublisherPublicKeyDigest | getccndId () |
void | setccndId (PublisherPublicKeyDigest id) |
Integer | getLifetime () |
String | toFormattedString () |
boolean | validateAction (String action) |
void | decode (XMLDecoder decoder) throws ContentDecodingException |
Used by NetworkObject to decode the object from a network stream. | |
void | encode (XMLEncoder encoder) throws ContentEncodingException |
Used by NetworkObject to encode the object to a network stream. | |
long | getElementLabel () |
Allow the encoder/decoder to retrieve the top-level element name programmatically. | |
boolean | validate () |
Make sure all of the necessary fields are filled in prior to attempting to encode. | |
int | hashCode () |
boolean | equals (Object obj) |
Protected Attributes | |
String | _action |
From the XML definitions: <xs:element name="ForwardingEntry" type="ForwardingEntryType"/> <xs:complexType name="ForwardingEntryType"> <xs:sequence> <xs:element name="Action" type="xs:string" minOccurs="0" maxOccurs="1"/> <xs:element name="Name" type="NameType" minOccurs="0" maxOccurs="1"/> <xs:element name="PublisherPublicKeyDigest" type="DigestType" minOccurs="0" maxOccurs="1"/> <xs:element name="FaceID" type="xs:nonNegativeInteger" minOccurs="0" maxOccurs="1"/> <xs:element name="ForwardingFlags" type="xs:nonNegativeInteger" minOccurs="0" maxOccurs="1"/> <xs:element name="FreshnessSeconds" type="xs:nonNegativeInteger" minOccurs="0" maxOccurs="1"/> </xs:sequence> </xs:complexType> | |
ContentName | _prefixName |
PublisherPublicKeyDigest | _ccndId |
Integer | _faceID |
Integer | _flags |
Integer | _lifetime |
void org.ccnx.ccn.profiles.ccnd.PrefixRegistrationManager.ForwardingEntry.decode | ( | XMLDecoder | decoder | ) | throws ContentDecodingException [virtual] |
Used by NetworkObject to decode the object from a network stream.
Implements org.ccnx.ccn.impl.encoding.GenericXMLEncodable.
void org.ccnx.ccn.profiles.ccnd.PrefixRegistrationManager.ForwardingEntry.encode | ( | XMLEncoder | encoder | ) | throws ContentEncodingException [virtual] |
Used by NetworkObject to encode the object to a network stream.
Implements org.ccnx.ccn.impl.encoding.GenericXMLEncodable.
long org.ccnx.ccn.profiles.ccnd.PrefixRegistrationManager.ForwardingEntry.getElementLabel | ( | ) | [virtual] |
Allow the encoder/decoder to retrieve the top-level element name programmatically.
This allows subclasses to rename elements without changing their encoder/decoders.
Implements org.ccnx.ccn.impl.encoding.GenericXMLEncodable.
Integer org.ccnx.ccn.profiles.ccnd.PrefixRegistrationManager.ForwardingEntry.getLifetime | ( | ) |
boolean org.ccnx.ccn.profiles.ccnd.PrefixRegistrationManager.ForwardingEntry.validate | ( | ) | [virtual] |
Make sure all of the necessary fields are filled in prior to attempting to encode.
All implementations of encode(XMLEncoder) should call this for their classes prior to encoding.
Implements org.ccnx.ccn.impl.encoding.GenericXMLEncodable.