org.apache.soap.transport.smtp
Class SMTPUtils

java.lang.Object
  |
  +--org.apache.soap.transport.smtp.SMTPUtils

public class SMTPUtils
extends java.lang.Object

Various SMTP utilities.

Author:
Sanjiva Weerawarana (sanjiva@watson.ibm.com)

Constructor Summary
SMTPUtils()
           
 
Method Summary
static java.lang.String getAddressFromAddressHeader(java.lang.String header)
          This method takes an SMTP header line like from say "To:" header and extracts the actual email address in there.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SMTPUtils

public SMTPUtils()
Method Detail

getAddressFromAddressHeader

public static java.lang.String getAddressFromAddressHeader(java.lang.String header)
This method takes an SMTP header line like from say "To:" header and extracts the actual email address in there. If there are multiple addresses there, then the first one is returned. This method should follow the RFC822 guidelines on how an email address is encoded.
Parameters:
header - the header line (without the header name - i.e., just the stuff after the first ':').
Returns:
the email address in the header or null if can't figure it out


Copyright © 2001 Apache XML Project. All Rights Reserved.