|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.SocketImpl
ch.elca.el4j.util.socketstatistics.SocketImplLogger
public class SocketImplLogger
SocketImpl for use with SocketStatistics. Generates and returns modified InputStreams / OutputStreams with support logging. In other cases, it behaves just like the original java.net class
Field Summary |
---|
Fields inherited from class java.net.SocketImpl |
---|
address, fd, localport, port |
Fields inherited from interface java.net.SocketOptions |
---|
IP_MULTICAST_IF, IP_MULTICAST_IF2, IP_MULTICAST_LOOP, IP_TOS, SO_BINDADDR, SO_BROADCAST, SO_KEEPALIVE, SO_LINGER, SO_OOBINLINE, SO_RCVBUF, SO_REUSEADDR, SO_SNDBUF, SO_TIMEOUT, TCP_NODELAY |
Constructor Summary | |
---|---|
SocketImplLogger()
Constructor. creates a ReflectiveDelegator for delegation of method calls to java.net.SocksSocketImpl and a new ConnectionStatistics inside SocketStatistics |
Method Summary | |
---|---|
protected void |
accept(SocketImpl s)
|
protected int |
available()
|
protected void |
bind(InetAddress host,
int port)
|
protected void |
close()
Modified version of close(). |
protected void |
connect(InetAddress address,
int port)
|
protected void |
connect(SocketAddress address,
int timeout)
|
protected void |
connect(String host,
int port)
|
protected void |
create(boolean stream)
|
protected InputStream |
getInputStream()
Modified version of getInputStream(). |
Object |
getOption(int optID)
|
protected OutputStream |
getOutputStream()
Modified version of getOutputStream(). |
protected void |
listen(int backlog)
|
protected void |
sendUrgentData(int data)
|
void |
setOption(int optID,
Object value)
|
Methods inherited from class java.net.SocketImpl |
---|
getFileDescriptor, getInetAddress, getLocalPort, getPort, setPerformancePreferences, shutdownInput, shutdownOutput, supportsUrgentData, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SocketImplLogger()
Method Detail |
---|
protected void accept(SocketImpl s) throws IOException
accept
in class SocketImpl
IOException
protected int available() throws IOException
available
in class SocketImpl
IOException
protected void bind(InetAddress host, int port) throws IOException
bind
in class SocketImpl
IOException
protected void close() throws IOException
close
in class SocketImpl
IOException
protected void connect(String host, int port) throws IOException
connect
in class SocketImpl
IOException
protected void connect(InetAddress address, int port) throws IOException
connect
in class SocketImpl
IOException
protected void connect(SocketAddress address, int timeout) throws IOException
connect
in class SocketImpl
IOException
protected void create(boolean stream) throws IOException
create
in class SocketImpl
IOException
protected InputStream getInputStream() throws IOException
getInputStream
in class SocketImpl
IOException
protected OutputStream getOutputStream() throws IOException
getOutputStream
in class SocketImpl
IOException
protected void listen(int backlog) throws IOException
listen
in class SocketImpl
IOException
protected void sendUrgentData(int data) throws IOException
sendUrgentData
in class SocketImpl
IOException
public Object getOption(int optID) throws SocketException
SocketException
public void setOption(int optID, Object value) throws SocketException
SocketException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |