1 45 package org.exolab.jms.net.multiplexer; 46 47 import org.exolab.jms.net.connector.Connection; 48 import org.exolab.jms.net.connector.Request; 49 import org.exolab.jms.net.connector.ResourceException; 50 import org.exolab.jms.net.connector.Response; 51 import org.exolab.jms.net.uri.URI; 52 53 54 62 class MultiplexedConnection implements Connection { 63 64 67 private MultiplexedManagedConnection _connection; 68 69 70 75 public MultiplexedConnection(MultiplexedManagedConnection connection) { 76 _connection = connection; 77 } 78 79 85 public Response invoke(Request request) { 86 return _connection.invoke(this, request); 87 } 88 89 95 public URI getRemoteURI() throws ResourceException { 96 return _connection.getRemoteURI(); 97 } 98 99 105 public URI getLocalURI() throws ResourceException { 106 return _connection.getLocalURI(); 107 } 108 109 } 110 | Popular Tags |