|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectietf.MxRecord
public class MxRecord
Represents a mail exchange (MX) record for a particular domain.
| Constructor Summary | |
|---|---|
MxRecord(int preference,
java.lang.String ipAddr)
Creates a new instance of MxRecord and initializes member variables to
the arguments received. |
|
| Method Summary | |
|---|---|
void |
display()
Displays the preference and IP address of this MX record. |
java.lang.String |
getIpAddress()
Retrieves the IP address corresponding to this MX record as obtained from its A record. |
int |
getPref()
Retrieves the preference of this mail exchange record. |
void |
setIpAddress(java.lang.String ipAddr)
Sets the ipAddress of this MX record to the argument ipAddr. |
void |
setPref(int preference)
Sets pref of this MX record to the preference argument. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MxRecord(int preference,
java.lang.String ipAddr)
MxRecord and initializes member variables to
the arguments received.
preference - the preference of this MX record.ipAddr - the IP address corresponding to this MX record.| Method Detail |
|---|
public int getPref()
public java.lang.String getIpAddress()
A record.
public void setPref(int preference)
pref of this MX record to the preference argument.
preference - the preference to assign to this MX record.public void setIpAddress(java.lang.String ipAddr)
ipAddress of this MX record to the argument ipAddr.
ipAddr - the IP address to assign to this MX record.public void display()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||