jSyncManager Simple Java Server

org.jSyncManager.SJS.Adapters.SMTPServer
Class Address

java.lang.Object
  extended by org.jSyncManager.SJS.Adapters.SMTPServer.Address

public class Address
extends java.lang.Object

A class which represents an address of some mail sender/receiver.

Author:
Torben Werner

Field Summary
protected  Domain domain
          Variable definition...
protected  User user
          Variable definition...
 
Constructor Summary
Address(java.lang.String address)
          General summary
Address(User user, Domain domain)
          Constructor, accepts a user and domain
 
Method Summary
 Domain getDomain()
          Returns the domain of the sender/receiver
 User getUser()
          Returns the username of the sender/receiver
 boolean isLocal()
          stuff
 java.lang.String toString()
          Returns a string representation of the Address object (i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

domain

protected Domain domain
Variable definition...


user

protected User user
Variable definition...

Constructor Detail

Address

public Address(java.lang.String address)
General summary

Parameters:
address - parameter value

Address

public Address(User user,
               Domain domain)
Constructor, accepts a user and domain

Parameters:
user -
domain -
Method Detail

getUser

public User getUser()
Returns the username of the sender/receiver

Returns:
the username of the sender/receiver

getDomain

public Domain getDomain()
Returns the domain of the sender/receiver

Returns:
the domain of the sender/receiver

isLocal

public boolean isLocal()
stuff

Returns:
returned

toString

public java.lang.String toString()
Returns a string representation of the Address object (i.e. "joe@example.com") for and Address representing a sender/receiver with the username "joe" at the domain "example.com"

Overrides:
toString in class java.lang.Object
Returns:
returned

jSyncManager Simple Java Server

Copyright (c) 2004 Brad BARCLAY. All Rights Reserved.