Oracle® Application Server
XML Java API Reference
10g Release 3 (10.1.3)

B28238-01


org.apache.soap.transport.smtp
Class SMTPUtils

java.lang.Object
  extended byorg.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® Application Server
XML Java API Reference
10g Release 3 (10.1.3)

B28238-01


Copyright © 2001 The Apache Software Foundation. All rights reserved.