org.jcoderz.commons.connector.http
Class HttpManagedConnectionFactoryImpl

java.lang.Object
  extended by org.jcoderz.commons.connector.http.HttpManagedConnectionFactoryImpl
All Implemented Interfaces:
Serializable, ManagedConnectionFactory

public final class HttpManagedConnectionFactoryImpl
extends Object
implements ManagedConnectionFactory

Managed Connection Factory used by the Application Server to create a non-managed factory and connection for the application.

See Also:
Serialized Form

Constructor Summary
HttpManagedConnectionFactoryImpl()
           
 
Method Summary
 Object createConnectionFactory()
          
 Object createConnectionFactory(ConnectionManager cm)
          
 ManagedConnection createManagedConnection(Subject subject, ConnectionRequestInfo cri)
          
 PrintWriter getLogWriter()
          
 Integer getMaxConnections()
          Gets the configuration parameter "MaxConnections".
 String getUrl()
          Gets the configuration parameter "Url".
 ManagedConnection matchManagedConnections(Set connectionSet, Subject subject, ConnectionRequestInfo cri)
          
 void setLogWriter(PrintWriter arg0)
          
 void setMaxConnections(Integer connections)
          Sets the configuration parameter "MaxConnections" defined in the deployment descriptor.
 void setUrl(String url)
          Set configuration parameter "Url" as defined in deployment descriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.resource.spi.ManagedConnectionFactory
equals, hashCode
 

Constructor Detail

HttpManagedConnectionFactoryImpl

public HttpManagedConnectionFactoryImpl()
Method Detail

createConnectionFactory

public Object createConnectionFactory(ConnectionManager cm)

Specified by:
createConnectionFactory in interface ManagedConnectionFactory

createConnectionFactory

public Object createConnectionFactory()

Specified by:
createConnectionFactory in interface ManagedConnectionFactory

createManagedConnection

public ManagedConnection createManagedConnection(Subject subject,
                                                 ConnectionRequestInfo cri)

Specified by:
createManagedConnection in interface ManagedConnectionFactory

matchManagedConnections

public ManagedConnection matchManagedConnections(Set connectionSet,
                                                 Subject subject,
                                                 ConnectionRequestInfo cri)

Specified by:
matchManagedConnections in interface ManagedConnectionFactory

setLogWriter

public void setLogWriter(PrintWriter arg0)

Specified by:
setLogWriter in interface ManagedConnectionFactory

getLogWriter

public PrintWriter getLogWriter()

Specified by:
getLogWriter in interface ManagedConnectionFactory

setMaxConnections

public void setMaxConnections(Integer connections)
Sets the configuration parameter "MaxConnections" defined in the deployment descriptor.

Parameters:
connections - max count of connections

getMaxConnections

public Integer getMaxConnections()
Gets the configuration parameter "MaxConnections".

Returns:
Long - the maximum number of connections

setUrl

public void setUrl(String url)
Set configuration parameter "Url" as defined in deployment descriptor.

Parameters:
url - the url connecting to

getUrl

public String getUrl()
Gets the configuration parameter "Url".

Returns:
String - the url connection to


Copyright 2007 The jCoderZ Project.