FileDocCategorySizeDatePackage
ConnectionFactory.javaAPI DocGlassfish v2 API3335Fri May 04 22:36:22 BST 2007com.sun.enterprise.admin.jmx.remote.comm

ConnectionFactory

public class ConnectionFactory extends Object
A factory class to create new instances of {@link IConnection} interface.
author
Kedar Mhaswade
since
S1AS8.0
version
1.1

Fields Summary
Constructors Summary
private ConnectionFactory()

	
Methods Summary
public static IConnectioncreateConnection(HttpConnectorAddress h)
Returns the newly created connection (instance of {@link IConnection} to the servlet. Note that the Servlet has to be up and running. If the server/servlet does not respond, IOException results. Note that this is by default a connection to request a resource on server side. It is not guaranteed that the connection is kept alive after it is used to send the data. Clients are expected to create the instances of IConnection as and when required, by calling this method.

param
h an instance of {@link HttpConnectorAddress} that encapsulates the data required to create the connection
return
an instance of IConnection interface
throws
an instance of IOException if the attempt to connect fails

		return new ServletConnection(h);