ServerSocketFactoryWrapper (Hyperic HQ Plugin API)
Keywords: org.hyperic.hq.transport.util.ServerSocketFactoryWrapper class

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hyperic.hq.transport.util
Class ServerSocketFactoryWrapper

    java.lang.Object
      javax.net.ServerSocketFactory
          org.hyperic.hq.transport.util.ServerSocketFactoryWrapper

    public class ServerSocketFactoryWrapper

extends javax.net.ServerSocketFactory

Wraps a server socket factory, allowing different socket options to be set before a bound server socket is returned.

Constructor Summary
`ServerSocketFactoryWrapper(javax.net.ServerSocketFactory wrapped)` Creates an instance wrapping a server socket factory.

Method Summary
`java.net.ServerSocket` | `createServerSocket()`
`java.net.ServerSocket` | `createServerSocket(int port)`
`java.net.ServerSocket` | `createServerSocket(int port, int backlog)`
`java.net.ServerSocket` | `createServerSocket(int port, int backlog, java.net.InetAddress ifAddress)`
`void` | `setReuseAddress(boolean reuseAddress)` Set all server sockets created by the factory to have their `SO_REUSEADDR` socket option set explicitly.

Methods inherited from class javax.net.ServerSocketFactory
`getDefault`

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

Constructor Detail

### ServerSocketFactoryWrapper

    public ServerSocketFactoryWrapper(javax.net.ServerSocketFactory wrapped)

  Creates an instance wrapping a server socket factory.

  Parameters:
    `wrapped` - The wrapped server socket factory.
  Throws:
    `java.lang.NullPointerException` - if the wrapped server socket factory is `null`.

Method Detail

### setReuseAddress

    public void setReuseAddress(boolean reuseAddress)

  Set all server sockets created by the factory to have their `SO_REUSEADDR` socket option set explicitly.

  Parameters:
    `reuseAddress` - `true` to reuse the address; `false` otherwise.

### createServerSocket

    public java.net.ServerSocket createServerSocket()
                                             throws java.io.IOException

  Overrides:
    `createServerSocket` in class `javax.net.ServerSocketFactory`
  Throws:
    `java.io.IOException`
  See Also:
    `ServerSocketFactory.createServerSocket()`

### createServerSocket

    public java.net.ServerSocket createServerSocket(int port)
                                             throws java.io.IOException

  Specified by:
    `createServerSocket` in class `javax.net.ServerSocketFactory`
  Throws:
    `java.io.IOException`
  See Also:
    `ServerSocketFactory.createServerSocket(int)`

### createServerSocket

    public java.net.ServerSocket createServerSocket(int port,
                                                    int backlog)
                                             throws java.io.IOException

  Specified by:
    `createServerSocket` in class `javax.net.ServerSocketFactory`
  Throws:
    `java.io.IOException`
  See Also:
    `ServerSocketFactory.createServerSocket(int, int)`

### createServerSocket

    public java.net.ServerSocket createServerSocket(int port,
                                                    int backlog,
                                                    java.net.InetAddress ifAddress)
                                             throws java.io.IOException

  Specified by:
    `createServerSocket` in class `javax.net.ServerSocketFactory`
  Throws:
    `java.io.IOException`
  See Also:
    `ServerSocketFactory.createServerSocket(int, int, java.net.InetAddress)`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.