RPKI Engine  1.0
Public Member Functions | Static Public Attributes
rpki::publication::publication_object_elt Class Reference
Inheritance diagram for rpki::publication::publication_object_elt:
Inheritance graph
Collaboration diagram for rpki::publication::publication_object_elt:
Collaboration graph

List of all members.

Public Member Functions

def endElement
def make_publish
def make_withdraw
def raise_if_error
def serve_dispatch
def serve_publish
def serve_withdraw
def toXML
def uri_to_filename

Static Public Attributes

tuple attributes = ("action", "tag", "client_handle", "uri")
 XML attributes for this element.
 payload = None
 payload_type = None

Detailed Description

Virtual class for publishable objects.  These have very similar
syntax, differences lie in underlying datatype and methods.  XML
methods are a little different from the pattern used for objects
that support the create/set/get/list/destroy actions, but
publishable objects don't go in SQL either so these classes would be
different in any case.

Definition at line 148 of file publication.py.


Member Function Documentation

def rpki::publication::publication_object_elt::endElement (   self,
  stack,
  name,
  text 
)
def rpki::publication::publication_object_elt::make_publish (   cls,
  uri,
  obj,
  tag = None 
)
Construct a publication PDU.

Definition at line 250 of file publication.py.

def rpki::publication::publication_object_elt::make_withdraw (   cls,
  uri,
  obj,
  tag = None 
)
Construct a withdrawal PDU.

Definition at line 258 of file publication.py.

def rpki::publication::publication_object_elt::raise_if_error (   self)
No-op, since this is not a <report_error/> PDU.

Definition at line 265 of file publication.py.

def rpki::publication::publication_object_elt::serve_dispatch (   self,
  r_msg,
  cb,
  eb 
)
def rpki::publication::publication_object_elt::serve_publish (   self)
Publish an object.

Definition at line 205 of file publication.py.

References rpki::rpkid::child_cert_obj::uri(), rpki::rpkid::roa_obj::uri(), rpki::rpkid::ghostbuster_obj::uri(), and uri_to_filename().

Referenced by serve_dispatch().

Here is the call graph for this function:

Here is the caller graph for this function:

def rpki::publication::publication_object_elt::serve_withdraw (   self)
Withdraw an object.

Definition at line 220 of file publication.py.

References rpki::rpkid::child_cert_obj::uri(), rpki::rpkid::roa_obj::uri(), rpki::rpkid::ghostbuster_obj::uri(), and uri_to_filename().

Referenced by serve_dispatch().

Here is the call graph for this function:

Here is the caller graph for this function:

def rpki::publication::publication_object_elt::toXML (   self)
Generate XML element for publishable object.

Reimplemented from rpki::xml_utils::base_elt.

Definition at line 171 of file publication.py.

References rpki::up_down::base_elt::make_elt(), rpki::xml_utils::base_elt::make_elt(), and payload.

Referenced by rpki::xml_utils::base_elt::__str__(), rpki::xml_utils::msg::__str__(), and rpki::up_down::message_pdu::__str__().

Here is the call graph for this function:

Here is the caller graph for this function:

def rpki::publication::publication_object_elt::uri_to_filename (   self)

Member Data Documentation

tuple rpki::publication::publication_object_elt::attributes = ("action", "tag", "client_handle", "uri") [static]

XML attributes for this element.

Reimplemented from rpki::xml_utils::base_elt.

Definition at line 158 of file publication.py.

Referenced by irbe_cli::cmd_elt_mixin::client_getopt(), rpki::xml_utils::base_elt::make_elt(), and rpki::xml_utils::base_elt::read_attrs().

Definition at line 160 of file publication.py.

Referenced by endElement(), rpki::up_down::message_pdu::make_query(), and toXML().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties