org.apache.mailet
Class HostAddress

java.lang.Object
  extended by javax.mail.URLName
      extended by org.apache.mailet.HostAddress

public class HostAddress
extends javax.mail.URLName

A specialized subclass of javax.mail.URLName, which provides the name of a URL as well as its corresponding host name.

Since:
Mailet API v2.3

Field Summary
 
Fields inherited from class javax.mail.URLName
fullURL
 
Constructor Summary
HostAddress(java.lang.String hostname, java.lang.String url)
          Constructs a new host address with the given details.
 
Method Summary
 java.lang.String getHostName()
          Returns the host name corresponding to the url
 
Methods inherited from class javax.mail.URLName
equals, getFile, getHost, getPassword, getPort, getProtocol, getRef, getURL, getUsername, hashCode, parseString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HostAddress

public HostAddress(java.lang.String hostname,
                   java.lang.String url)
Constructs a new host address with the given details.

Parameters:
hostname - the hostname corresponding to the url
url - the url name
Method Detail

getHostName

public java.lang.String getHostName()
Returns the host name corresponding to the url

Returns:
the host name


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