1 45 package org.exolab.jms.net.http; 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.socket.SocketRequestInfo; 55 import org.exolab.jms.net.uri.URI; 56 57 58 64 public class AbstractHTTPConnectionFactory extends AbstractConnectionFactory { 65 66 74 public AbstractHTTPConnectionFactory(String connectScheme, 75 String acceptScheme, 76 ManagedConnectionFactory factory, 77 ConnectionManager manager) { 78 super(connectScheme, acceptScheme, factory, manager); 79 } 80 81 92 protected ConnectionRequestInfo getConnectionRequestInfo(URI uri, 93 Map properties) 94 throws ResourceException { 95 HTTPRequestInfo info; 96 if (properties != null) { 97 info = new HTTPRequestInfo(uri, getProperties(properties)); 98 } else { 99 info = new HTTPRequestInfo(uri); 100 } 101 return info; 102 } 103 104 114 protected ConnectionRequestInfo getAcceptorRequestInfo(URI uri, 115 Map properties) 116 throws ResourceException { 117 SocketRequestInfo info; 118 if (properties != null) { 119 info = new SocketRequestInfo(uri, getProperties(properties)); 120 } else { 121 info = new SocketRequestInfo(uri); 122 } 123 return info; 124 } 125 } 126 | Popular Tags |