org.jasen.core.parsers
Class ReceivedHeaderParserDataImpl

java.lang.Object
  extended byorg.jasen.core.parsers.ReceivedHeaderParserDataImpl
All Implemented Interfaces:
ReceivedHeaderParserData

public class ReceivedHeaderParserDataImpl
extends Object
implements ReceivedHeaderParserData

Default implementation of the ReceivedHeaderParserData interface.


Constructor Summary
ReceivedHeaderParserDataImpl()
           
 
Method Summary
 Date getDateReceived()
          Gets the date the message was recieved from the sending server
 String getReceiverHostName()
          Gets the host name of the receiving server
 String getSenderHostName()
          Gets the host name of the sending server
 String getSenderIPAddress()
          Gets the IP address of the sending server
 void setDateReceived(Date dateReceived)
           
 void setReceiverHostName(String receiverHostName)
           
 void setSenderHostName(String senderHostName)
           
 void setSenderIPAddress(String senderIPAddress)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReceivedHeaderParserDataImpl

public ReceivedHeaderParserDataImpl()
Method Detail

getSenderIPAddress

public String getSenderIPAddress()
Description copied from interface: ReceivedHeaderParserData
Gets the IP address of the sending server

Specified by:
getSenderIPAddress in interface ReceivedHeaderParserData
Returns:
The IP address of the server from which the email was sent

getSenderHostName

public String getSenderHostName()
Description copied from interface: ReceivedHeaderParserData
Gets the host name of the sending server

Specified by:
getSenderHostName in interface ReceivedHeaderParserData
Returns:
The host name provided in the HELO command from the sending server

getReceiverHostName

public String getReceiverHostName()
Description copied from interface: ReceivedHeaderParserData
Gets the host name of the receiving server

Specified by:
getReceiverHostName in interface ReceivedHeaderParserData
Returns:
The host name recorded for the receiving server

getDateReceived

public Date getDateReceived()
Description copied from interface: ReceivedHeaderParserData
Gets the date the message was recieved from the sending server

Specified by:
getDateReceived in interface ReceivedHeaderParserData
Returns:
The date recorded in the message header

setDateReceived

public void setDateReceived(Date dateReceived)

setReceiverHostName

public void setReceiverHostName(String receiverHostName)

setSenderHostName

public void setSenderHostName(String senderHostName)

setSenderIPAddress

public void setSenderIPAddress(String senderIPAddress)