org.apache.jsieve.mail
Class AddressImpl

java.lang.Object
  extended by org.apache.jsieve.mail.AddressImpl
All Implemented Interfaces:
MailAdapter.Address

public final class AddressImpl
extends java.lang.Object
implements MailAdapter.Address

Simple immutable address implementation.


Constructor Summary
AddressImpl(java.lang.String localPart, java.lang.String domain)
          Constructs an address.
 
Method Summary
 java.lang.String getDomain()
          Gets the domain of the address.
 java.lang.String getLocalPart()
          Gets the local part of the address.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddressImpl

public AddressImpl(java.lang.String localPart,
                   java.lang.String domain)
Constructs an address.

Parameters:
localPart - the local part of the address
domain - the domain part of the address
Method Detail

getDomain

public java.lang.String getDomain()
Gets the domain of the address.

Specified by:
getDomain in interface MailAdapter.Address
Returns:
domain

getLocalPart

public java.lang.String getLocalPart()
Gets the local part of the address.

Specified by:
getLocalPart in interface MailAdapter.Address
Returns:
local part, not null


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