RPKI Engine
1.0
|
Public Member Functions | |
def | __str__ |
def | endElement |
def | is_query |
def | is_reply |
def | query |
def | reply |
def | startElement |
def | toXML |
Public Attributes | |
type | |
version |
Generic top-level PDU.
Definition at line 424 of file xml_utils.py.
def rpki::xml_utils::msg::__str__ | ( | self | ) |
Convert msg object to string.
Definition at line 450 of file xml_utils.py.
References rpki::up_down::certificate_elt::toXML(), rpki::xml_utils::base_elt::toXML(), rpki::publication::publication_object_elt::toXML(), rpki::up_down::class_elt::toXML(), rpki::xml_utils::text_elt::toXML(), rpki::up_down::list_pdu::toXML(), rpki::xml_utils::data_elt::toXML(), rpki::up_down::class_response_syntax::toXML(), rpki::up_down::issue_pdu::toXML(), toXML(), rpki::up_down::revoke_syntax::toXML(), rpki::up_down::error_response_pdu::toXML(), rpki::up_down::message_pdu::toXML(), and rpki::left_right::list_resources_elt::toXML().
def rpki::xml_utils::msg::endElement | ( | self, | |
stack, | |||
name, | |||
text | |||
) |
Handle top-level PDU.
Definition at line 442 of file xml_utils.py.
def rpki::xml_utils::msg::is_query | ( | self | ) |
Is this msg a query?
Definition at line 482 of file xml_utils.py.
References type, and rpki::up_down::message_pdu::type.
Referenced by rpki::publication::msg::serve_top_level().
def rpki::xml_utils::msg::is_reply | ( | self | ) |
Is this msg a reply?
Definition at line 488 of file xml_utils.py.
References type, and rpki::up_down::message_pdu::type.
def rpki::xml_utils::msg::query | ( | cls, | |
args | |||
) |
Create a query PDU.
Definition at line 465 of file xml_utils.py.
References type, and rpki::up_down::message_pdu::type.
def rpki::xml_utils::msg::reply | ( | cls, | |
args | |||
) |
Create a reply PDU.
Definition at line 474 of file xml_utils.py.
References type, and rpki::up_down::message_pdu::type.
def rpki::xml_utils::msg::startElement | ( | self, | |
stack, | |||
name, | |||
attrs | |||
) |
Handle top-level PDU.
Definition at line 429 of file xml_utils.py.
def rpki::xml_utils::msg::toXML | ( | self | ) |
Generate top-level PDU.
Definition at line 456 of file xml_utils.py.
References rpki::publication::publication_namespace::nsmap, rpki::left_right::left_right_namespace::nsmap, type, rpki::up_down::message_pdu::type, rpki::manifest::Manifest::version, rpki::roa::RouteOriginAttestation::version, rpki::http::http_message::version, rpki::publication::msg::version, rpki::publication::sax_handler::version, version, rpki::up_down::message_pdu::version, rpki::up_down::sax_handler::version, rpki::left_right::msg::version, rpki::left_right::sax_handler::version, rpki::publication::publication_namespace::xmlns, and rpki::left_right::left_right_namespace::xmlns.
Referenced by __str__().
Definition at line 431 of file xml_utils.py.
Referenced by is_query(), is_reply(), rpki::rootd::message_pdu::log_query(), query(), reply(), and toXML().
Reimplemented in rpki::left_right::msg, and rpki::publication::msg.
Definition at line 431 of file xml_utils.py.
Referenced by rpki::xml_utils::sax_handler::create_top_level(), rpki::http::http_request::format_first_line(), rpki::http::http_response::format_first_line(), and toXML().