org.jasen.net
Class MXRecord

java.lang.Object
  extended byorg.jasen.net.MXRecord
All Implemented Interfaces:
Serializable

public class MXRecord
extends Object
implements Serializable

Represents a single MX Record.

Author:
Jason Polites
See Also:
Serialized Form

Constructor Summary
MXRecord()
           
 
Method Summary
 InetAddress getAddress()
           
 int getPreference()
           
 void setAddress(InetAddress address)
          Sets the InetAddress for this MX Record
 void setPreference(int i)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MXRecord

public MXRecord()
Method Detail

getAddress

public InetAddress getAddress()
Returns:
The InetAddress associated with this MXRecord

getPreference

public int getPreference()
Returns:
The preference (10, 20 etc)

setAddress

public void setAddress(InetAddress address)
Sets the InetAddress for this MX Record

Parameters:
address -

setPreference

public void setPreference(int i)
Parameters:
i -