Codota Logo
TomcatFactoryRegistry.getProxyConnectorProvider
Code IndexAdd Codota to your IDE (free)

How to use
getProxyConnectorProvider
method
in
org.jboss.modcluster.container.tomcat.TomcatFactoryRegistry

Best Java code snippets using org.jboss.modcluster.container.tomcat.TomcatFactoryRegistry.getProxyConnectorProvider (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: modcluster/mod_cluster

@Override
public Connector getProxyConnector() {
  return this.registry.getProxyConnectorProvider().createProxyConnector(this.registry.getConnectorFactory(), this.engine);
}
origin: modcluster/mod_cluster

@Test
public void getProxyConnector() throws Exception {
  ProxyConnectorProvider provider = mock(ProxyConnectorProvider.class);
  Connector expected = mock(Connector.class);
  ConnectorFactory factory = mock(ConnectorFactory.class);
  when(this.registry.getProxyConnectorProvider()).thenReturn(provider);
  when(this.registry.getConnectorFactory()).thenReturn(factory);
  when(provider.createProxyConnector(factory, this.engine)).thenReturn(expected);
  Connector result = this.catalinaEngine.getProxyConnector();
  assertSame(expected, result);
}
origin: modcluster/mod_cluster

  protected void verifyCatalinaFactoryTypes(TomcatFactoryRegistry registry) {
    assertSame(TomcatServerFactory.class, registry.getServerFactory().getClass());
    assertSame(TomcatEngineFactory.class, registry.getEngineFactory().getClass());
    assertSame(TomcatHostFactory.class, registry.getHostFactory().getClass());
    assertSame(TomcatContextFactory.class, registry.getContextFactory().getClass());
    assertSame(TomcatConnectorFactory.class, registry.getConnectorFactory().getClass());
    assertSame(this.provider, registry.getProxyConnectorProvider());
  }
}
origin: modcluster/mod_cluster

@Test
public void testCatalinaFactoryRegistry() {
  TomcatFactoryRegistry registry = new ServiceLoaderTomcatFactory(this.serverFactory, this.engineFactory, this.hostFactory, this.contextFactory, this.connectorFactory, this.provider);
  assertSame(this.serverFactory, registry.getServerFactory());
  assertSame(this.engineFactory, registry.getEngineFactory());
  assertSame(this.hostFactory, registry.getHostFactory());
  assertSame(this.contextFactory, registry.getContextFactory());
  assertSame(this.connectorFactory, registry.getConnectorFactory());
  assertSame(this.provider, registry.getProxyConnectorProvider());
}
org.jboss.modcluster.container.tomcatTomcatFactoryRegistrygetProxyConnectorProvider

Popular methods of TomcatFactoryRegistry

  • getEngineFactory
  • getConnectorFactory
  • getContextFactory
  • getHostFactory
  • getServerFactory

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • getSystemService (Context)
  • orElseThrow (Optional)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now