com.sun.jini.discovery.internal
Class EndpointBasedServer.PrearrangedServerSocketFactory

java.lang.Object
  extended by javax.net.ServerSocketFactory
      extended by com.sun.jini.discovery.internal.EndpointBasedServer.PrearrangedServerSocketFactory
Enclosing class:
EndpointBasedServer

private static class EndpointBasedServer.PrearrangedServerSocketFactory
extends ServerSocketFactory

Server socket factory that returns a PrearrangedServerSocket for a prearranged socket.


Field Summary
private  ServerSocket ssocket
           
 
Constructor Summary
EndpointBasedServer.PrearrangedServerSocketFactory(Socket socket)
           
 
Method Summary
 ServerSocket createServerSocket()
           
 ServerSocket createServerSocket(int port)
           
 ServerSocket createServerSocket(int port, int backlog)
           
 ServerSocket createServerSocket(int port, int backlog, InetAddress addr)
           
 
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
 

Field Detail

ssocket

private final ServerSocket ssocket
Constructor Detail

EndpointBasedServer.PrearrangedServerSocketFactory

EndpointBasedServer.PrearrangedServerSocketFactory(Socket socket)
                                             throws IOException
Throws:
IOException
Method Detail

createServerSocket

public ServerSocket createServerSocket()
                                throws IOException
Overrides:
createServerSocket in class ServerSocketFactory
Throws:
IOException

createServerSocket

public ServerSocket createServerSocket(int port)
                                throws IOException
Specified by:
createServerSocket in class ServerSocketFactory
Throws:
IOException

createServerSocket

public ServerSocket createServerSocket(int port,
                                       int backlog)
                                throws IOException
Specified by:
createServerSocket in class ServerSocketFactory
Throws:
IOException

createServerSocket

public ServerSocket createServerSocket(int port,
                                       int backlog,
                                       InetAddress addr)
                                throws IOException
Specified by:
createServerSocket in class ServerSocketFactory
Throws:
IOException


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.