001 package railo.runtime.net.ftp; 002 003 /** 004 * represent a ftp connection 005 */ 006 public interface FTPConnection { 007 008 /** 009 * @return Returns the name. 010 */ 011 public abstract String getName(); 012 013 /** 014 * @return Returns the password. 015 */ 016 public abstract String getPassword(); 017 018 /** 019 * @return Returns the server. 020 */ 021 public abstract String getServer(); 022 023 /** 024 * @return Returns the username. 025 */ 026 public abstract String getUsername(); 027 028 /** 029 * @return returns if has logindata or not 030 */ 031 public abstract boolean hasLoginData(); 032 033 /** 034 * @return has name 035 */ 036 public abstract boolean hasName(); 037 038 /** 039 * @return Returns the port. 040 */ 041 public abstract int getPort(); 042 043 /** 044 * @return Returns the timeout. 045 */ 046 public abstract int getTimeout(); 047 048 /** 049 * @return Returns the transferMode. 050 */ 051 public abstract short getTransferMode(); 052 053 /** 054 * @return Returns the passive. 055 */ 056 public abstract boolean isPassive(); 057 058 /** 059 * @param conn 060 * @return has equal login 061 */ 062 public abstract boolean loginEquals(FTPConnection conn); 063 064 /** 065 * @return Returns the proxyserver. 066 */ 067 public String getProxyServer(); 068 069 public int getProxyPort(); 070 071 /** 072 * return the proxy username 073 * @return proxy username 074 */ 075 public String getProxyUser(); 076 077 078 /** 079 * return the proxy password 080 * @return proxy password 081 */ 082 public String getProxyPassword(); 083 084 }