org.nhindirect.stagent.mail.notifications
Class MdnGateway

java.lang.Object
  extended by org.nhindirect.stagent.mail.notifications.MdnGateway

public class MdnGateway
extends Object

Represents an MDN Gateway as specified by RFC 3798

From RFC 3798, 3.2.2, The MDN-Gateway field

mdn-gateway-field = "MDN-Gateway" ":" mta-name-type ";" mta-name
...
For gateways into Internet Mail, the MTA-name-type will normally be "smtp", and the mta-name will be the Internet domain name of the gateway.

Author:
Greg Meyer, Umesh Madan

Field Summary
static String DefaultGatewayType
          The gateway type for gateways to Internet Mail.
 
Constructor Summary
MdnGateway(String domain)
          Initializes an instance with the specified and the default type of "smtp"
MdnGateway(String domain, String type)
          Initializes an instance with the specified domain and type.
 
Method Summary
 String getDomain()
          Gets the gateway domain.
 String getType()
          Gets the gateway type.
 void setDomain(String domain)
          Sets the gateway domain.
 void setType(String type)
          Sets the gateway type.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DefaultGatewayType

public static final String DefaultGatewayType
The gateway type for gateways to Internet Mail.

See Also:
Constant Field Values
Constructor Detail

MdnGateway

public MdnGateway(String domain)
Initializes an instance with the specified and the default type of "smtp"

Parameters:
domain - The domain name of this MDN Gateway

MdnGateway

public MdnGateway(String domain,
                  String type)
Initializes an instance with the specified domain and type.

Parameters:
domain - The domain name of this MDN Gateway
type - The gateway type
Method Detail

getDomain

public String getDomain()
Gets the gateway domain.

Returns:
The gateway domain.

setDomain

public void setDomain(String domain)
Sets the gateway domain.

Parameters:
domain - The gateway domain.

getType

public String getType()
Gets the gateway type.

Returns:
The gateway type.

setType

public void setType(String type)
Sets the gateway type.

Parameters:
type - The gateway type.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010-2012 HNIN Direct. All Rights Reserved.