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

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
              extended by org.jboss.soa.esb.addressing.eprs.SFTPEpr

public class SFTPEpr
extends FTPEpr

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 CERTIFICATE_TAG
           
 
Fields inherited from class org.jboss.soa.esb.addressing.eprs.FTPEpr
PASSIVE_TAG, PASSWORD_TAG, USERNAME_TAG
 
Fields inherited from class org.jboss.soa.esb.addressing.eprs.FileEpr
ERROR_DEL_TAG, ERROR_DIR_TAG, ERROR_SUFFIX_TAG, INPUT_SUFFIX_TAG, POST_DEL_TAG, POST_DIR_TAG, POST_SUFFIX_TAG, URL_TAG, WORK_SUFFIX_TAG
 
Constructor Summary
SFTPEpr(EPR epr)
           
SFTPEpr(EPR epr, org.w3c.dom.Element header)
           
SFTPEpr(java.lang.String url, java.lang.String cert)
           
SFTPEpr(java.net.URL url)
           
SFTPEpr(java.net.URL url, java.net.URL cert)
           
 
Method Summary
 java.net.URL getCertificateURL()
           
 void setCertificateURL(java.net.URL cert)
          Set the Certificate URL for this endpoint.
static java.net.URI type()
           
 
Methods inherited from class org.jboss.soa.esb.addressing.eprs.FTPEpr
getPassive, getPassword, getURL, getUserName, setPassive, setPassword, setURL, setUserName
 
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 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

CERTIFICATE_TAG

public static final java.lang.String CERTIFICATE_TAG
See Also:
Constant Field Values
Constructor Detail

SFTPEpr

public SFTPEpr(EPR epr)

SFTPEpr

public SFTPEpr(EPR epr,
               org.w3c.dom.Element header)

SFTPEpr

public SFTPEpr(java.net.URL url)
        throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException

SFTPEpr

public SFTPEpr(java.net.URL url,
               java.net.URL cert)
        throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException

SFTPEpr

public SFTPEpr(java.lang.String url,
               java.lang.String cert)
        throws java.net.URISyntaxException,
               java.net.MalformedURLException
Throws:
java.net.URISyntaxException
java.net.MalformedURLException
Method Detail

setCertificateURL

public final void setCertificateURL(java.net.URL cert)
                             throws java.net.URISyntaxException
Set the Certificate URL for this endpoint.

Parameters:
url - the address.
Throws:
java.net.URISyntaxException - thrown if this EPR is malformed.

getCertificateURL

public final java.net.URL getCertificateURL()
                                     throws java.net.URISyntaxException,
                                            java.net.MalformedURLException
Returns:
the certificate URL for this EPR.
Throws:
java.net.URISyntaxException - thrown if this EPR is malformed.
java.net.MalformedURLException

type

public static java.net.URI type()