|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.Socket
com.enterprisedt.util.proxy.PlainSocket
public class PlainSocket
| Field Summary | |
|---|---|
protected java.lang.String |
remoteHostname
|
| Constructor Summary | |
|---|---|
PlainSocket()
Creates a new PlainSocket object. |
|
PlainSocket(java.net.InetAddress addr,
int port)
Creates a new PlainSocket object. |
|
PlainSocket(java.lang.String host,
int port)
Creates a new PlainSocket object. |
|
| Method Summary | |
|---|---|
static PlainSocket |
createPlainSocket(java.net.InetAddress host,
int port,
int timeout)
Create a connected socket, using a timeout if it is available. |
static PlainSocket |
createPlainSocket(java.lang.String host,
int port,
int timeout)
Create a connected socket, using a timeout if it is available. |
java.lang.String |
getDetail()
Get details about the socket |
java.lang.String |
getRemoteHost()
Get the actual hostname |
boolean |
isSecureMode()
Is this socket in secure mode? |
void |
setRemoteHost(java.lang.String remoteHost)
Set the remote hostname |
| Methods inherited from class java.net.Socket |
|---|
bind, close, connect, connect, getChannel, getInetAddress, getInputStream, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOutputStream, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.enterprisedt.util.proxy.StreamSocket |
|---|
close, getInetAddress, getInputStream, getLocalAddress, getLocalPort, getOutputStream, getReceiveBufferSize, getSendBufferSize, getSoTimeout, isConnected, setReceiveBufferSize, setSendBufferSize, setSoTimeout |
| Field Detail |
|---|
protected java.lang.String remoteHostname
| Constructor Detail |
|---|
public PlainSocket()
java.io.IOException
public PlainSocket(java.lang.String host,
int port)
throws java.io.IOException
host - port -
java.io.IOException
public PlainSocket(java.net.InetAddress addr,
int port)
throws java.io.IOException
addr - port -
java.io.IOException| Method Detail |
|---|
public boolean isSecureMode()
isSecureMode in interface StreamSocketpublic java.lang.String getRemoteHost()
getRemoteHost in interface StreamSocketpublic void setRemoteHost(java.lang.String remoteHost)
setRemoteHost in interface StreamSocketremoteHost - remote hostnamepublic java.lang.String getDetail()
StreamSocket
getDetail in interface StreamSocket
public static PlainSocket createPlainSocket(java.lang.String host,
int port,
int timeout)
throws java.io.IOException
host - remote host to connect toport - port on remote hosttimeout - timeout in milliseconds on
java.io.IOException
public static PlainSocket createPlainSocket(java.net.InetAddress host,
int port,
int timeout)
throws java.io.IOException
host - remote host to connect toport - port on remote hosttimeout - timeout in milliseconds on
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||