org.jboss.soa.esb.addressing.eprs
Class FTPEpr
java.lang.Object
org.jboss.soa.esb.addressing.EPR
org.jboss.soa.esb.addressing.eprs.FileEpr
org.jboss.soa.esb.addressing.eprs.FTPEpr
- Direct Known Subclasses:
- DefaultFtpReplyToEpr, SFTPEpr
public class FTPEpr
- extends FileEpr
A helper class for using FTP style EPRs. Simply create instances of this
class instead of the base EPR. Since URLs can use FTP, we try to leverage
that as much as possible.
- Author:
- marklittle
Method Summary |
boolean |
getPassive()
|
java.lang.String |
getPassword()
|
java.net.URL |
getURL()
Get the URL address. |
java.lang.String |
getUserName()
|
void |
setPassive(boolean passive)
Passive FTP? |
void |
setPassword(java.lang.String password)
Set the password for this FTP EPR. |
void |
setURL(java.net.URL url)
Set the URL for this endpoint. |
void |
setUserName(java.lang.String username)
Set the username for this FTP EPR. |
static java.net.URI |
type()
|
Methods inherited from class org.jboss.soa.esb.addressing.eprs.FileEpr |
getErrorDelete, getErrorDirectory, getErrorSuffix, getInputSuffix, getPostDelete, getPostDirectory, getPostSuffix, getWorkSuffix, setErrorDelete, setErrorDirectory, setErrorSuffix, setInputSuffix, setPostDelete, setPostDirectory, setPostSuffix, setWorkSuffix |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
PASSIVE_TAG
public static final java.lang.String PASSIVE_TAG
- See Also:
- Constant Field Values
FTPEpr
public FTPEpr(EPR epr)
FTPEpr
public FTPEpr(EPR epr,
org.w3c.dom.Element header)
FTPEpr
public FTPEpr(java.net.URL url)
throws java.net.URISyntaxException
- Throws:
java.net.URISyntaxException
FTPEpr
public FTPEpr(java.lang.String url)
throws java.net.URISyntaxException
- Throws:
java.net.URISyntaxException
setURL
public final void setURL(java.net.URL url)
- Set the URL for this endpoint.
- Overrides:
setURL
in class FileEpr
- Parameters:
url
- the address.
getURL
public final java.net.URL getURL()
throws java.net.MalformedURLException,
java.net.URISyntaxException
- Get the URL address.
- Overrides:
getURL
in class FileEpr
- Returns:
- the address.
- Throws:
java.net.URISyntaxException
- thrown if the address is invalid.
java.net.MalformedURLException
setUserName
public final void setUserName(java.lang.String username)
throws java.net.URISyntaxException
- Set the username for this FTP EPR. In case it cannot be put in the URL.
- Parameters:
username
- the user's name.
- Throws:
java.net.URISyntaxException
- thrown if this EPR is malformed.
getUserName
public final java.lang.String getUserName()
throws java.net.URISyntaxException
- Returns:
- the user's name associated with this EPR.
- Throws:
java.net.URISyntaxException
- thrown if this EPR is malformed.
setPassword
public final void setPassword(java.lang.String password)
throws java.net.URISyntaxException
- Set the password for this FTP EPR.
- Parameters:
password
- the user's name.
- Throws:
java.net.URISyntaxException
- thrown if this EPR is malformed.
getPassword
public final java.lang.String getPassword()
throws java.net.URISyntaxException
- Returns:
- the password associated with this EPR.
- Throws:
java.net.URISyntaxException
- thrown if this EPR is malformed.
setPassive
public final void setPassive(boolean passive)
throws java.net.URISyntaxException
- Passive FTP?
- Parameters:
passive
- the value.
- Throws:
java.net.URISyntaxException
- thrown if this EPR is malformed.
getPassive
public final boolean getPassive()
throws java.net.URISyntaxException
- Returns:
- the passive value associated with this EPR.
- Throws:
java.net.URISyntaxException
- thrown if this EPR is malformed.
type
public static java.net.URI type()