Package de.measite.minidns.record
Class MX
- java.lang.Object
-
- de.measite.minidns.record.MX
-
-
Constructor Summary
Constructors Constructor Description MX()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
The name of the target server.int
getPriority()
The priority of this service.Record.TYPE
getType()
The payload type.void
parse(java.io.DataInputStream dis, byte[] data, int length)
Parse this payload.void
setName(java.lang.String name)
Set the name of the target server.void
setPriority(int priority)
Set the priority of this service entry.byte[]
toByteArray()
Binary representation of this payload.java.lang.String
toString()
-
-
-
Method Detail
-
getPriority
public int getPriority()
The priority of this service. Lower values mean higher priority.- Returns:
- The priority.
-
setPriority
public void setPriority(int priority)
Set the priority of this service entry. Lower values have higher priority.- Parameters:
priority
- The new priority.
-
getName
public java.lang.String getName()
The name of the target server.- Returns:
- The target servers name.
-
setName
public void setName(java.lang.String name)
Set the name of the target server.- Parameters:
name
- The new target servers name.
-
toByteArray
public byte[] toByteArray()
Description copied from interface:Data
Binary representation of this payload.- Specified by:
toByteArray
in interfaceData
- Returns:
- The binary representation of this payload.
-
parse
public void parse(java.io.DataInputStream dis, byte[] data, int length) throws java.io.IOException
Description copied from interface:Data
Parse this payload.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getType
public Record.TYPE getType()
Description copied from interface:Data
The payload type.
-
-