1 45 46 package org.exolab.jms.server.net; 47 48 import org.exolab.jms.config.Configuration; 49 import org.exolab.jms.config.TcpConfigurationType; 50 import org.exolab.jms.config.types.SchemeType; 51 import org.exolab.jms.net.socket.SocketRequestInfo; 52 import org.exolab.jms.net.uri.URI; 53 import org.exolab.jms.net.util.Properties; 54 55 56 62 class AbstractTCPConnectorCfg extends SocketConnectorCfg { 63 64 71 public AbstractTCPConnectorCfg(SchemeType scheme, Configuration config, 72 TcpConfigurationType tcpConfig) { 73 super(scheme, config, tcpConfig); 74 } 75 76 81 protected void populateConnectProperties(Properties properties) { 82 super.populateConnectProperties(properties); 83 TcpConfigurationType config 84 = (TcpConfigurationType) getSocketConfiguration(); 85 if (config.getInternalHost() != null) { 86 URI exportURI = getURI(getExportURI()); 87 SocketRequestInfo info = new SocketRequestInfo(exportURI); 88 URI alternativeURI = getURI(getScheme().toString(), 89 config.getInternalHost(), 90 config.getPort()); 91 info.setAlternativeURI(alternativeURI); 92 info.export(properties); 93 } 94 95 } 96 } 97 | Popular Tags |