org.nhindirect.stagent.mail.notifications
Class ReportingUserAgent

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

public class ReportingUserAgent
extends Object

Represents a Reporting-UA as specified by RFC 3798.

From RFC 3798, 3.2.2, The Reporting-UA field
reporting-ua-field = "Reporting-UA" ":" ua-name ";" ua-product For Internet Mail user agents, it is recommended that this field contain both: the DNS name of the particular instance of the MUA that generated the MDN and the name of the product

Author:
Greg Meyer, Umesh Madan

Constructor Summary
ReportingUserAgent(String name, String product)
          Initializes an instance with the specified user agent name and product name.
 
Method Summary
 String getName()
          Gets the user agent's domain name.
 String getProduct()
          Gets the user agent's product
 void setName(String name)
          Sets the user agent's domain name.
 void setProduct(String product)
          Sets the user agent's product.
 String toString()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReportingUserAgent

public ReportingUserAgent(String name,
                          String product)
Initializes an instance with the specified user agent name and product name.

Parameters:
name - The user agent name
product - The user agent product
Method Detail

getName

public String getName()
Gets the user agent's domain name.

Returns:
The user agent's domain name

setName

public void setName(String name)
Sets the user agent's domain name.

Parameters:
name - The user agent's domain name

getProduct

public String getProduct()
Gets the user agent's product

Returns:
The user agent's product

setProduct

public void setProduct(String product)
Sets the user agent's product.

Parameters:
product - The user agent's product

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2010-2013 NHIN Direct. All Rights Reserved.