dnspython  1.16.0
About: dnspython is a DNS toolkit (for Python 2.x) that supports almost all record types.
  Fossies Dox: dnspython-1.16.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

dns.rdtypes.ANY.URI.URI Class Reference
Inheritance diagram for dns.rdtypes.ANY.URI.URI:
[legend]
Collaboration diagram for dns.rdtypes.ANY.URI.URI:
[legend]

Public Member Functions

def __init__ (self, rdclass, rdtype, priority, weight, target)
 
def to_text (self, origin=None, relativize=True, **kw)
 
def from_text (cls, rdclass, rdtype, tok, origin=None, relativize=True)
 
def to_wire (self, file, compress=None, origin=None)
 
def from_wire (cls, rdclass, rdtype, wire, current, rdlen, origin=None)
 
- Public Member Functions inherited from dns.rdata.Rdata
def __init__ (self, rdclass, rdtype)
 
def covers (self)
 
def extended_rdatatype (self)
 
def to_digestable (self, origin=None)
 
def validate (self)
 
def __repr__ (self)
 
def __str__ (self)
 
def __eq__ (self, other)
 
def __ne__ (self, other)
 
def __lt__ (self, other)
 
def __le__ (self, other)
 
def __ge__ (self, other)
 
def __gt__ (self, other)
 
def __hash__ (self)
 
def choose_relativity (self, origin=None, relativize=True)
 

Public Attributes

 priority
 
 weight
 
 target
 
- Public Attributes inherited from dns.rdata.Rdata
 rdclass
 
 rdtype
 

Static Private Attributes

list __slots__ = ['priority', 'weight', 'target']
 

Detailed Description

URI record

@ivar priority: the priority
@type priority: int
@ivar weight: the weight
@type weight: int
@ivar target: the target host
@type target: dns.name.Name object
@see: draft-faltstrom-uri-13

Definition at line 27 of file URI.py.

Constructor & Destructor Documentation

◆ __init__()

def dns.rdtypes.ANY.URI.URI.__init__ (   self,
  rdclass,
  rdtype,
  priority,
  weight,
  target 
)

Definition at line 41 of file URI.py.

Member Function Documentation

◆ from_text()

def dns.rdtypes.ANY.URI.URI.from_text (   cls,
  rdclass,
  rdtype,
  tok,
  origin = None,
  relativize = True 
)

Reimplemented from dns.rdata.Rdata.

Definition at line 57 of file URI.py.

◆ from_wire()

def dns.rdtypes.ANY.URI.URI.from_wire (   cls,
  rdclass,
  rdtype,
  wire,
  current,
  rdlen,
  origin = None 
)

Reimplemented from dns.rdata.Rdata.

Definition at line 72 of file URI.py.

◆ to_text()

def dns.rdtypes.ANY.URI.URI.to_text (   self,
  origin = None,
  relativize = True,
**  kw 
)
Convert an rdata to text format.

Returns a ``text``.

Reimplemented from dns.rdata.Rdata.

Definition at line 52 of file URI.py.

References dns.rdtypes.ANY.URI.URI.priority, dns.rdtypes.ANY.URI.URI.target, and dns.rdtypes.ANY.URI.URI.weight.

◆ to_wire()

def dns.rdtypes.ANY.URI.URI.to_wire (   self,
  file,
  compress = None,
  origin = None 
)
Convert an rdata to wire format.

Returns a ``binary``.

Reimplemented from dns.rdata.Rdata.

Definition at line 66 of file URI.py.

References dns.rdtypes.ANY.URI.URI.priority, dns.rdtypes.ANY.URI.URI.target, and dns.rdtypes.ANY.URI.URI.weight.

Member Data Documentation

◆ __slots__

list dns.rdtypes.ANY.URI.URI.__slots__ = ['priority', 'weight', 'target']
staticprivate

Definition at line 39 of file URI.py.

◆ priority

◆ target

◆ weight


The documentation for this class was generated from the following file: