1 45 package org.exolab.jms.net.socket; 46 47 import java.util.Map ; 48 49 import org.exolab.jms.net.connector.AbstractConnectionFactory; 50 import org.exolab.jms.net.connector.ConnectionManager; 51 import org.exolab.jms.net.connector.ConnectionRequestInfo; 52 import org.exolab.jms.net.connector.ManagedConnectionFactory; 53 import org.exolab.jms.net.connector.ResourceException; 54 import org.exolab.jms.net.uri.URI; 55 56 57 63 public abstract class SocketConnectionFactory 64 extends AbstractConnectionFactory { 65 66 67 75 public SocketConnectionFactory(String scheme, 76 ManagedConnectionFactory factory, 77 ConnectionManager manager) { 78 super(scheme, factory, manager); 79 } 80 81 89 public SocketConnectionFactory(String connectScheme, String acceptScheme, 90 ManagedConnectionFactory factory, 91 ConnectionManager manager) { 92 super(connectScheme, acceptScheme, factory, manager); 93 } 94 95 106 protected ConnectionRequestInfo getConnectionRequestInfo(URI uri, 107 Map properties) 108 throws ResourceException { 109 SocketRequestInfo info; 110 if (properties != null) { 111 info = new SocketRequestInfo(uri, getProperties(properties)); 112 } else { 113 info = new SocketRequestInfo(uri); 114 } 115 return info; 116 } 117 118 } 119 | Popular Tags |