org.jclouds.dynect.v3.domain.rdata
Class MXData

java.lang.Object
  extended by com.google.common.collect.ForwardingObject
      extended by com.google.common.collect.ForwardingMap<String,Object>
          extended by org.jclouds.dynect.v3.domain.rdata.MXData
All Implemented Interfaces:
Map<String,Object>

public class MXData
extends com.google.common.collect.ForwardingMap<String,Object>

Corresponds to the binary representation of the MX (Mail Exchange) RData

Example

 import static org.jclouds.dynect.v3.domain.rdata.MXData.mx;
 ...
 MXData rdata = mx(1, "mail.jclouds.org");
 

See Also:
RFC 1035

Nested Class Summary
static class MXData.Builder
           
 
Nested classes/interfaces inherited from class com.google.common.collect.ForwardingMap
com.google.common.collect.ForwardingMap.StandardEntrySet, com.google.common.collect.ForwardingMap.StandardKeySet, com.google.common.collect.ForwardingMap.StandardValues
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Method Summary
static MXData.Builder builder()
           
protected  Map<String,Object> delegate()
           
 String getExchange()
          domain-name which specifies a host willing to act as a mail exchange for the owner name.
 int getPreference()
          specifies the preference given to this RR among others at the same owner.
static MXData mx(int preference, String exchange)
           
 MXData.Builder toBuilder()
           
 
Methods inherited from class com.google.common.collect.ForwardingMap
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, standardClear, standardContainsKey, standardContainsValue, standardEquals, standardHashCode, standardIsEmpty, standardPutAll, standardRemove, standardToString, values
 
Methods inherited from class com.google.common.collect.ForwardingObject
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getPreference

public int getPreference()
specifies the preference given to this RR among others at the same owner. Lower values are preferred.


getExchange

public String getExchange()
domain-name which specifies a host willing to act as a mail exchange for the owner name.


delegate

protected Map<String,Object> delegate()
Overrides:
delegate in class com.google.common.collect.ForwardingMap<String,Object>

mx

public static MXData mx(int preference,
                        String exchange)

builder

public static MXData.Builder builder()

toBuilder

public MXData.Builder toBuilder()


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.