Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.remoting.socketfactory
Class CreationListenerServerSocket

    java.lang.Object
      java.net.ServerSocket
          org.jboss.remoting.socketfactory.CreationListenerServerSocket

    public class CreationListenerServerSocket

extends java.net.ServerSocket

A CreationListenerServerSocket wraps a ServerSocket to which it delegates calls to accept(), and when the wrapped ServerSocket creates a Socket in accept(), a SocketCreationListener is notified before the Socket is returned.

Version:
  $Revision: 1866 $

  Copyright Jan 10, 2007

Author:
  Ron Sigal

Constructor Summary
`CreationListenerServerSocket(java.net.ServerSocket serverSocket, SocketCreationListener listener)`

Method Summary
`java.net.Socket` | `accept()`
`void` | `bind(java.net.SocketAddress endpoint)`
`void` | `bind(java.net.SocketAddress endpoint, int backlog)`
`void` | `close()`
`boolean` | `equals(java.lang.Object obj)`
`java.nio.channels.ServerSocketChannel` | `getChannel()`
`java.net.InetAddress` | `getInetAddress()`
`SocketCreationListener` | `getListener()`
`int` | `getLocalPort()`
`java.net.SocketAddress` | `getLocalSocketAddress()`
`int` | `getReceiveBufferSize()`
`boolean` | `getReuseAddress()`
`java.net.ServerSocket` | `getServerSocket()`
`int` | `getSoTimeout()`
`int` | `hashCode()`
`boolean` | `isBound()`
`boolean` | `isClosed()`
`void` | `setListener(SocketCreationListener listener)`
`void` | `setReceiveBufferSize(int size)`
`void` | `setReuseAddress(boolean on)`
`void` | `setServerSocket(java.net.ServerSocket serverSocket)`
`void` | `setSoTimeout(int timeout)`
`java.lang.String` | `toString()`

Methods inherited from class java.net.ServerSocket
`implAccept, setPerformancePreferences, setSocketFactory`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Constructor Detail

### CreationListenerServerSocket

    public CreationListenerServerSocket(java.net.ServerSocket serverSocket,
                                        SocketCreationListener listener)
                                 throws java.io.IOException

Throws:
  `java.io.IOException`

Method Detail

### getListener

    public SocketCreationListener getListener()

### getServerSocket

    public java.net.ServerSocket getServerSocket()

### setListener

    public void setListener(SocketCreationListener listener)

### setServerSocket

    public void setServerSocket(java.net.ServerSocket serverSocket)

### bind

    public void bind(java.net.SocketAddress endpoint)
              throws java.io.IOException

  Overrides:
    `bind` in class `java.net.ServerSocket`
  Throws:
    `java.io.IOException`

### bind

    public void bind(java.net.SocketAddress endpoint,
                     int backlog)
              throws java.io.IOException

  Overrides:
    `bind` in class `java.net.ServerSocket`
  Throws:
    `java.io.IOException`

### accept

    public java.net.Socket accept()
                           throws java.io.IOException

  Overrides:
    `accept` in class `java.net.ServerSocket`
  Throws:
    `java.io.IOException`

### close

    public void close()
               throws java.io.IOException

  Overrides:
    `close` in class `java.net.ServerSocket`
  Throws:
    `java.io.IOException`

### equals

    public boolean equals(java.lang.Object obj)

  Overrides:
    `equals` in class `java.lang.Object`

### getChannel

    public java.nio.channels.ServerSocketChannel getChannel()

  Overrides:
    `getChannel` in class `java.net.ServerSocket`

### getInetAddress

    public java.net.InetAddress getInetAddress()

  Overrides:
    `getInetAddress` in class `java.net.ServerSocket`

### getLocalPort

    public int getLocalPort()

  Overrides:
    `getLocalPort` in class `java.net.ServerSocket`

### getLocalSocketAddress

    public java.net.SocketAddress getLocalSocketAddress()

  Overrides:
    `getLocalSocketAddress` in class `java.net.ServerSocket`

### getReceiveBufferSize

    public int getReceiveBufferSize()
                             throws java.net.SocketException

  Overrides:
    `getReceiveBufferSize` in class `java.net.ServerSocket`
  Throws:
    `java.net.SocketException`

### getReuseAddress

    public boolean getReuseAddress()
                            throws java.net.SocketException

  Overrides:
    `getReuseAddress` in class `java.net.ServerSocket`
  Throws:
    `java.net.SocketException`

### getSoTimeout

    public int getSoTimeout()
                     throws java.io.IOException

  Overrides:
    `getSoTimeout` in class `java.net.ServerSocket`
  Throws:
    `java.io.IOException`

### hashCode

    public int hashCode()

  Overrides:
    `hashCode` in class `java.lang.Object`

### isBound

    public boolean isBound()

  Overrides:
    `isBound` in class `java.net.ServerSocket`

### isClosed

    public boolean isClosed()

  Overrides:
    `isClosed` in class `java.net.ServerSocket`

### setReceiveBufferSize

    public void setReceiveBufferSize(int size)
                              throws java.net.SocketException

  Overrides:
    `setReceiveBufferSize` in class `java.net.ServerSocket`
  Throws:
    `java.net.SocketException`

### setReuseAddress

    public void setReuseAddress(boolean on)
                         throws java.net.SocketException

  Overrides:
    `setReuseAddress` in class `java.net.ServerSocket`
  Throws:
    `java.net.SocketException`

### setSoTimeout

    public void setSoTimeout(int timeout)
                      throws java.net.SocketException

  Overrides:
    `setSoTimeout` in class `java.net.ServerSocket`
  Throws:
    `java.net.SocketException`

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.net.ServerSocket`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright ? 1998-2005 JBoss Inc . All Rights Reserved.