Java Globus API: Class GSIServerSocketFactory

org.globus.tomcat.catalina.net
Class GSIServerSocketFactory

org.globus.tomcat.catalina.net.GSIServerSocketFactory

public class GSIServerSocketFactory


Constructor Summary
GSIServerSocketFactory()
           
 
Method Summary
 ServerSocket createSocket(int port)
          Creates a secure server socket on a specified port with default user credentials.
 ServerSocket createSocket(int port, int backlog)
          Creates a secure server socket on a specified port with default user credentials.
 ServerSocket createSocket(int port, int backlog, InetAddress bindAddr)
          Creates a secure server socket on a specified port with default user credentials.
 String getCacertdir()
           
 String getCert()
           
 String getGridMap()
           
 String getKey()
           
 String getProxy()
           
 boolean getSslMode()
           
 void setCacertdir(String caCertDir)
           
 void setCert(String serverCert)
           
 void setGridMap(String file)
           
 void setKey(String serverKey)
           
 void setProxy(String serverProxy)
           
 void setSslMode(boolean sslMode)
           
 

Constructor Detail

GSIServerSocketFactory

public GSIServerSocketFactory()
Method Detail

setProxy

public void setProxy(String serverProxy)

getProxy

public String getProxy()

setCert

public void setCert(String serverCert)

getCert

public String getCert()

setKey

public void setKey(String serverKey)

getKey

public String getKey()

setCacertdir

public void setCacertdir(String caCertDir)

getCacertdir

public String getCacertdir()

setGridMap

public void setGridMap(String file)

getGridMap

public String getGridMap()

setSslMode

public void setSslMode(boolean sslMode)

getSslMode

public boolean getSslMode()

createSocket

public ServerSocket createSocket(int port)
                          throws IOException
Creates a secure server socket on a specified port with default user credentials. A port of 0 creates a socket on any free port or if the tcp.port.range system property is set it creates a socket within the specified port range.

The maximum queue length for incoming connection indications (a request to connect) is set to 50. If a connection indication arrives when the queue is full, the connection is refused.

Parameters:
port - the port number, or 0 to use any free port or if the tcp.port.range property set to use any available port within the specified port range.
Throws:
IOException - if an I/O error occurs when opening the socket.

createSocket

public ServerSocket createSocket(int port,
                                 int backlog)
                          throws IOException
Creates a secure server socket on a specified port with default user credentials. A port of 0 creates a socket on any free port or if the tcp.port.range system property is set it creates a socket within the specified port range.

The maximum queue length for incoming connection indications (a request to connect) is set to the backlog parameter. If a connection indication arrives when the queue is full, the connection is refused.

Parameters:
port - the port number, or 0 to use any free port or if the tcp.port.range property set to use any available port within the specified port range.
backlog - the maximum length of the queue.
Throws:
IOException - if an I/O error occurs when opening the socket.

createSocket

public ServerSocket createSocket(int port,
                                 int backlog,
                                 InetAddress bindAddr)
                          throws IOException
Creates a secure server socket on a specified port with default user credentials. A port of 0 creates a socket on any free port or if the tcp.port.range system property is set it creates a socket within the specified port range.

The maximum queue length for incoming connection indications (a request to connect) is set to the backlog parameter. If a connection indication arrives when the queue is full, the connection is refused.

Parameters:
port - the port number, or 0 to use any free port or if the tcp.port.range property set to use any available port within the specified port range.
backlog - the maximum length of the queue.
bindAddr - the local InetAddress the server will bind to.
Throws:
IOException - if an I/O error occurs when opening the socket.