org.jboss.soa.esb.addressing.eprs
Class FTPEpr

java.lang.Object
  extended by org.jboss.soa.esb.addressing.EPR
      extended by org.jboss.soa.esb.addressing.eprs.FileEpr
          extended by org.jboss.soa.esb.addressing.eprs.FTPEpr

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

Field Summary
static java.lang.String PASSIVE_TAG
           
static java.lang.String PASSWORD_TAG
           
static java.lang.String USERNAME_TAG
           
 
Fields inherited from class org.jboss.soa.esb.addressing.eprs.FileEpr
INPUT_SUFFIX_TAG, POST_DEL_TAG, POST_DIR_TAG, POST_SUFFIX_TAG, WORK_SUFFIX_TAG
 
Constructor Summary
FTPEpr(EPR epr)
           
FTPEpr(java.lang.String url)
           
FTPEpr(java.net.URL url)
           
 
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
getInputSuffix, getPostDelete, getPostDirectory, getPostSuffix, getWorkSuffix, setInputSuffix, setPostDelete, setPostDirectory, setPostSuffix, setWorkSuffix
 
Methods inherited from class org.jboss.soa.esb.addressing.EPR
copy, equals, getAddr, setAddr, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

FTPEpr

public FTPEpr(EPR epr)

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
Method Detail

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.

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 final java.net.URI type()