org.jboss.soa.esb.addressing.eprs
Class EmailEpr
java.lang.Object
org.jboss.soa.esb.addressing.EPR
org.jboss.soa.esb.addressing.eprs.EmailEpr
public class EmailEpr
- extends EPR
A helper class for using email style EPRs. Simply create and use instances of
this type.
- Author:
- marklittle
Fields inherited from class org.jboss.soa.esb.addressing.EPR |
_logger |
Constructor Summary |
EmailEpr(EPR epr)
|
EmailEpr(EPR epr,
org.w3c.dom.Element header)
|
EmailEpr(java.lang.String protocol,
java.lang.String host)
Create a new email EPR. |
EmailEpr(java.lang.String protocol,
java.lang.String host,
java.lang.String port,
java.lang.String username,
java.lang.String password)
Create a new email EPR. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
DEFAULT_PORT
public static final java.lang.String DEFAULT_PORT
- See Also:
- Constant Field Values
DEFAULT_USERNAME
public static final java.lang.String DEFAULT_USERNAME
- See Also:
- Constant Field Values
DEFAULT_PASSWORD
public static final java.lang.String DEFAULT_PASSWORD
- See Also:
- Constant Field Values
SMTP_PROTOCOL
public static final java.lang.String SMTP_PROTOCOL
- See Also:
- Constant Field Values
POP_PROTOCOL
public static final java.lang.String POP_PROTOCOL
- See Also:
- Constant Field Values
USERNAME_TAG
public static final java.lang.String USERNAME_TAG
- See Also:
- Constant Field Values
PASSWORD_TAG
public static final java.lang.String PASSWORD_TAG
- See Also:
- Constant Field Values
EmailEpr
public EmailEpr(EPR epr)
EmailEpr
public EmailEpr(EPR epr,
org.w3c.dom.Element header)
EmailEpr
public EmailEpr(java.lang.String protocol,
java.lang.String host)
- Create a new email EPR. The port number will be assumed to be 25,
and there are no values for username and password.
- Parameters:
protocol
- the protocol to use.host
- the host name.
EmailEpr
public EmailEpr(java.lang.String protocol,
java.lang.String host,
java.lang.String port,
java.lang.String username,
java.lang.String password)
- Create a new email EPR.
- Parameters:
protocol
- the protocol to use.host
- the host name.port
- the port to use.username
- the username for sending/receiving.password
- the password for sending/receiving.
getProtocol
public final java.lang.String getProtocol()
- Returns:
- the email protocol used.
getHost
public final java.lang.String getHost()
- Returns:
- the email host used.
getPort
public final int getPort()
- Returns:
- the email port used, or -1 if not specified.
getPassword
public final java.lang.String getPassword()
- Returns:
- the password for this EPR, or
null
if none is set.
getUserName
public final java.lang.String getUserName()
- Returns:
- the username for this EPR, or
null
if none is set.
toString
public java.lang.String toString()
- Overrides:
toString
in class EPR
copy
public EPR copy()
- Description copied from class:
EPR
- Return a copy of this EPR.
- Overrides:
copy
in class EPR
type
public static final java.net.URI type()