org.apache.james.jspf.core
Class DNSRequest

java.lang.Object
  extended by org.apache.james.jspf.core.DNSRequest

public final class DNSRequest
extends java.lang.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
           
 
Constructor Summary
DNSRequest(java.lang.String hostname, int recordType)
           
 
Method Summary
 java.lang.String getHostname()
          Return the hostname to process the request for
 int getRecordType()
          Return the RecordType which is use for this request
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

DNSRequest

public DNSRequest(java.lang.String hostname,
                  int recordType)
           throws NoneException
Throws:
NoneException
Method Detail

getHostname

public final java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


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