Oracle® XML Java API Reference
Release 1 (10.1)

B12024-01

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.


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

Oracle® XML Java API Reference
Release 1 (10.1)

B12024-01