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

List of all members.

Public Member Functions

def __str__
def log_query
def make_query
def serve_error
def serve_top_level
def startElement
def toXML

Public Attributes

 payload
 recipient
 sender
 type
 version

Static Public Attributes

dictionary name2type
tuple type2name = dict((v, k) for k, v in name2type.items())
int version = 1

Detailed Description

Up-Down protocol message wrapper PDU.

Definition at line 583 of file up_down.py.


Member Function Documentation

def rpki::up_down::message_pdu::__str__ (   self)
def rpki::up_down::message_pdu::log_query (   self,
  child 
)
Log query we're handling.  Separate method so rootd can override.

Reimplemented in rpki::rootd::message_pdu.

Definition at line 656 of file up_down.py.

References recipient, sender, and type.

Referenced by serve_top_level().

Here is the caller graph for this function:

def rpki::up_down::message_pdu::make_query (   cls,
  payload,
  sender,
  recipient 
)
def rpki::up_down::message_pdu::serve_error (   self,
  exception 
)
Generate an error_response message PDU.

Definition at line 662 of file up_down.py.

References recipient, sender, type, rpki::rootd::message_pdu::type2name, and type2name.

Referenced by serve_top_level().

Here is the caller graph for this function:

def rpki::up_down::message_pdu::serve_top_level (   self,
  child,
  callback 
)
Serve one message request PDU.

Definition at line 631 of file up_down.py.

References rpki::rootd::message_pdu::log_query(), log_query(), recipient, sender, serve_error(), type, rpki::rootd::message_pdu::type2name, and type2name.

Here is the call graph for this function:

def rpki::up_down::message_pdu::startElement (   self,
  stack,
  name,
  attrs 
)
Handle message PDU.

Payload of the <message/> element varies depending on the "type"
attribute, so after some basic checks we have to instantiate the
right class object to handle whatever kind of PDU this is.

Reimplemented from rpki::up_down::base_elt.

Definition at line 609 of file up_down.py.

Referenced by rpki::xml_utils::sax_handler::startElementNS().

Here is the caller graph for this function:

def rpki::up_down::message_pdu::toXML (   self)
Generate payload of message PDU.

Definition at line 601 of file up_down.py.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Initial value:
{
    "list"            : list_pdu,
    "list_response"   : list_response_pdu,
    "issue"           : issue_pdu,
    "issue_response"  : issue_response_pdu,
    "revoke"          : revoke_pdu,
    "revoke_response" : revoke_response_pdu,
    "error_response"  : error_response_pdu }

Reimplemented in rpki::rootd::message_pdu.

Definition at line 590 of file up_down.py.

Definition at line 615 of file up_down.py.

Referenced by make_query().

Definition at line 615 of file up_down.py.

Referenced by log_query(), make_query(), serve_error(), and serve_top_level().

Definition at line 615 of file up_down.py.

Referenced by log_query(), make_query(), serve_error(), and serve_top_level().

tuple rpki::up_down::message_pdu::type2name = dict((v, k) for k, v in name2type.items()) [static]

Reimplemented in rpki::rootd::message_pdu.

Definition at line 599 of file up_down.py.

Referenced by make_query(), serve_error(), and serve_top_level().


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