org.apache.james.jspf.core
Class DNSRequest
java.lang.Object
org.apache.james.jspf.core.DNSRequest
public final class DNSRequest
- extends Object
Represent a DNSRequest
Field Summary |
static int |
A
The record types for the lookups |
static int |
AAAA
|
static int |
MX
|
static int |
PTR
|
static int |
SPF
|
static int |
TXT
|
A
public static final int A
- The record types for the lookups
- See Also:
- Constant Field Values
AAAA
public static final int AAAA
- See Also:
- Constant Field Values
MX
public static final int MX
- See Also:
- Constant Field Values
PTR
public static final int PTR
- See Also:
- Constant Field Values
TXT
public static final int TXT
- See Also:
- Constant Field Values
SPF
public static final int SPF
- See Also:
- Constant Field Values
DNSRequest
public DNSRequest(String hostname,
int recordType)
throws NoneException
- Throws:
NoneException
getHostname
public final String getHostname()
- Return the hostname to process the request for
- Returns:
- the hostname
getRecordType
public final int getRecordType()
- Return the RecordType which is use for this request
- Returns:
- the RecordType
toString
public String toString()
- Overrides:
toString
in class Object
- See Also:
Object.toString()
Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.