|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.ftp.SocketConnection
public class SocketConnection
Socket FTP connection.
Constructor Summary | |
---|---|
SocketConnection()
|
Method Summary | |
---|---|
void |
close()
Closes open connection. |
java.lang.String |
getHost()
Returns current host name. |
java.io.InputStream |
getInputStream()
Returns connection input stream. |
java.io.OutputStream |
getOutputStream()
Returns connection output stream. |
java.net.ServerSocket |
getServerSocket()
|
java.net.Socket |
getSocket()
|
boolean |
isOpen()
Checks if connection is open. |
void |
openIncoming(int timeout,
int linger)
Opens incoming connection. |
void |
openIncoming(int timeout,
int linger,
boolean keepAlive)
Opens incoming connection. |
void |
openOutgoing(java.lang.String host,
int port,
int timeout,
boolean keepAlive,
int linger,
java.lang.String proxyHost,
int proxyPort,
java.lang.String proxyUserId,
java.lang.String proxyPassword,
java.lang.String proxyType)
Opens outgoing connection. |
void |
openOutgoing(java.lang.String host,
int port,
int timeout,
int linger)
Opens outgoing connection. |
void |
openOutgoing(java.lang.String host,
int port,
int timeout,
int linger,
boolean keepAlive)
Opens outgoing connection. |
void |
openOutgoing(java.lang.String host,
int port,
int timeout,
int linger,
java.lang.String proxyHost,
int proxyPort,
java.lang.String proxyUserId,
java.lang.String proxyPassword,
java.lang.String proxyType)
Opens outgoing connection. |
void |
prepareIncoming(int dataPortStart,
int dataPortEnd,
int timeout)
Prepares incoming connection. |
void |
setCompression(boolean compression)
Sets whether the sockets stream will be wrapped into Deflatered and Inflatered streams. |
void |
setReceiveBufferSize(int receiveBufferSize)
Sets the receive buffer size option of the ftp connection. |
void |
setSendBufferSize(int sendBufferSize)
Sets the send buffer size option of the ftp connection. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SocketConnection()
Method Detail |
---|
public void prepareIncoming(int dataPortStart, int dataPortEnd, int timeout) throws FtpException
prepareIncoming
in interface FtpConnection
dataPortStart
- The start data port range.dataPortEnd
- The end data port range.timeout
- connection timeout.
FtpException
- if an I/O error occurs.public java.net.ServerSocket getServerSocket()
public java.net.Socket getSocket()
public void openIncoming(int timeout, int linger, boolean keepAlive) throws FtpException
timeout
- connection timeout.keepAlive
- keep alive.
FtpException
- if an I/O error occurs.public void openIncoming(int timeout, int linger) throws FtpException
openIncoming
in interface FtpConnection
timeout
- connection timeout.
FtpException
- if an I/O error occurs.public void openOutgoing(java.lang.String host, int port, int timeout, int linger, boolean keepAlive) throws FtpException
openOutgoing
in interface FtpConnection
host
- host to connectport
- port to connecttimeout
- connection timeoutkeepAlive
- keep alive
FtpException
- if an I/O error occurs.public void openOutgoing(java.lang.String host, int port, int timeout, int linger) throws FtpException
host
- host to connectport
- port to connecttimeout
- connection timeout
FtpException
- if an I/O error occurs.public void openOutgoing(java.lang.String host, int port, int timeout, boolean keepAlive, int linger, java.lang.String proxyHost, int proxyPort, java.lang.String proxyUserId, java.lang.String proxyPassword, java.lang.String proxyType) throws FtpException
openOutgoing
in interface FtpConnection
host
- host to connectport
- port to connecttimeout
- connection timeoutkeepAlive
- keep alivelinger
- how long to linger forproxyHost
- Proxy host serverproxyPort
- Proxy portproxyUserId
- Proxy user nameproxyPassword
- Proxy user passwordproxyType
- Valid proxy type: HTTP, SOCKS5
FtpException
- if an I/O error occurs.public void openOutgoing(java.lang.String host, int port, int timeout, int linger, java.lang.String proxyHost, int proxyPort, java.lang.String proxyUserId, java.lang.String proxyPassword, java.lang.String proxyType) throws FtpException
host
- host to connectport
- port to connecttimeout
- connection timeoutlinger
- how long to linger forproxyHost
- Proxy host serverproxyPort
- Proxy portproxyUserId
- Proxy user nameproxyPassword
- Proxy user passwordproxyType
- Valid proxy type: HTTP, SOCKS5
FtpException
- if an I/O error occurs.public void close()
close
in interface FtpConnection
public boolean isOpen()
isOpen
in interface FtpConnection
true
if connection is open.public java.io.InputStream getInputStream() throws FtpException
getInputStream
in interface FtpConnection
FtpException
- an I/O error occurs.public java.io.OutputStream getOutputStream() throws FtpException
getOutputStream
in interface FtpConnection
FtpException
- an I/O error occurs.public java.lang.String getHost()
getHost
in interface FtpConnection
public void setCompression(boolean compression)
setCompression
in interface FtpConnection
public void setSendBufferSize(int sendBufferSize)
setSendBufferSize
in interface FtpConnection
sendBufferSize
- Send buffer size.public void setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize
in interface FtpConnection
receiveBufferSize
- Receive buffer size.
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |