All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.couchbase.client.core.deps.org.xbill.DNS.MBRecord Maven / Gradle / Ivy

There is a newer version: 3.7.2
Show newest version
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 1999-2004 Brian Wellington ([email protected])

package com.couchbase.client.core.deps.org.xbill.DNS;

/**
 * Mailbox Record - specifies a host containing a mailbox.
 *
 * @author Brian Wellington
 * @see RFC 883: Domain Names - Implementation and
 *     Specification
 */
public class MBRecord extends SingleNameBase {
  MBRecord() {}

  /**
   * Creates a new MB Record with the given data
   *
   * @param mailbox The host containing the mailbox for the domain.
   */
  public MBRecord(Name name, int dclass, long ttl, Name mailbox) {
    super(name, Type.MB, dclass, ttl, mailbox, "mailbox");
  }

  /** Gets the mailbox for the domain */
  public Name getMailbox() {
    return getSingleName();
  }

  @Override
  public Name getAdditionalName() {
    return getSingleName();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy