mxrecord.java

来自「linux下建立JAVA虚拟机的源码KAFFE」· Java 代码 · 共 56 行

JAVA
56
字号
// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)package org.xbill.DNS;/** * Mail Exchange - specifies where mail to a domain is sent * * @author Brian Wellington */public class MXRecord extends U16NameBase {MXRecord() {}RecordgetObject() {	return new MXRecord();}/** * Creates an MX Record from the given data * @param priority The priority of this MX.  Records with lower priority * are preferred. * @param target The host that mail is sent to */publicMXRecord(Name name, int dclass, long ttl, int priority, Name target) {	super(name, Type.MX, dclass, ttl, priority, "priority",	      target, "target");}/** Returns the target of the MX record */public NamegetTarget() {	return getNameField();}/** Returns the priority of this MX record */public intgetPriority() {	return getU16Field();}voidrrToWire(DNSOutput out, Compression c, boolean canonical) {	out.writeU16(u16Field);	nameField.toWire(out, c, canonical);}public NamegetAdditionalName() {	return getNameField();}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?