org.jboss.remoting3.spi.ExternalConnectionProvider Maven / Gradle / Ivy
Go to download
This artifact provides a single jar that contains all classes required to use remote Jakarta Enterprise Beans and Jakarta Messaging, including
all dependencies. It is intended for use by those not using maven, maven users should just import the Jakarta Enterprise Beans and
Jakarta Messaging BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up
with different versions on classes on the class path).
package org.jboss.remoting3.spi;
import java.io.IOException;
import org.jboss.remoting3.security.ServerAuthenticationProvider;
import org.xnio.OptionMap;
import org.xnio.channels.ConnectedStreamChannel;
/**
* A provider interface that allows connections that have already been accepted to be converted to remoting
* connections.
*
* @author Stuart Douglas
*/
public interface ExternalConnectionProvider {
/**
* Create a network server.
*
* @param optionMap the server options
* @param authenticationProvider the authentication provider
* @return the channel adaptor
* @throws java.io.IOException if the adaptor could not be created
*/
ConnectionAdaptor createConnectionAdaptor(final OptionMap optionMap, ServerAuthenticationProvider authenticationProvider) throws IOException;
public interface ConnectionAdaptor {
void adapt(ConnectedStreamChannel channel);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy