congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Connector.getDefaultConnectionFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
getDefaultConnectionFactory
method
in
org.eclipse.jetty.server.Connector

Best Java code snippets using org.eclipse.jetty.server.Connector.getDefaultConnectionFactory (Showing top 9 results out of 315)

origin: apache/cxf

private boolean isSsl() {
  if (connector == null) {
    return false;
  }
  try {
    return "https".equalsIgnoreCase(connector.getDefaultConnectionFactory().getProtocol());
  } catch (Exception ex) {
    //ignore
  }
  return false;
}
origin: org.apache.cxf/cxf-rt-transports-http-jetty

private boolean isSsl() {
  if (connector == null) {
    return false;
  }
  try {
    return "https".equalsIgnoreCase(connector.getDefaultConnectionFactory().getProtocol());
  } catch (Exception ex) {
    //ignore
  }
  return false;
}
origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.2.RELEASE

@SuppressWarnings("unchecked")
static <T> Collection<T> connectorConnectionFactories(final Connector connector,
 final Class<T> ofType) {
 final Collection<T> connectionFactories = newLinkedHashSet();
 final ConnectionFactory defaultConnectionFactory = connector.getDefaultConnectionFactory();
 if (defaultConnectionFactory != null
  && ofType.isAssignableFrom(defaultConnectionFactory.getClass())) {
  connectionFactories.add((T) defaultConnectionFactory);
 }
 connectionFactories.addAll(connector.getConnectionFactories().stream()
  .filter(connectionFactory -> ofType.isAssignableFrom(connectionFactory.getClass()))
  .map(connectionFactory -> (T) connectionFactory).collect(toList()));
 return connectionFactories;
}
origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.1.RELEASE

@SuppressWarnings("unchecked")
static <T> Collection<T> connectorConnectionFactories(final Connector connector,
 final Class<T> ofType) {
 final Collection<T> connectionFactories = newLinkedHashSet();
 final ConnectionFactory defaultConnectionFactory = connector.getDefaultConnectionFactory();
 if (defaultConnectionFactory != null
  && ofType.isAssignableFrom(defaultConnectionFactory.getClass())) {
  connectionFactories.add((T) defaultConnectionFactory);
 }
 connectionFactories.addAll(connector.getConnectionFactories().stream()
  .filter(connectionFactory -> ofType.isAssignableFrom(connectionFactory.getClass()))
  .map(connectionFactory -> (T) connectionFactory).collect(toList()));
 return connectionFactories;
}
origin: eclipse-jetty/eclipse-jetty-plugin

/**
 * {@inheritDoc}
 * 
 * @see net.sourceforge.eclipsejetty.starter.common.ServerAdapter#getPorts()
 */
@Override
public Collection<Integer> getPorts()
{
  Collection<Integer> results = new LinkedHashSet<Integer>();
  Connector[] connectors = server.getConnectors();
  if (connectors != null)
  {
    for (Connector connector : connectors)
    {
      if (!(connector.getDefaultConnectionFactory().getClass().getSimpleName().toLowerCase().contains("ssl")))
      {
        results.add(((AbstractNetworkConnector) connector).getPort());
      }
    }
  }
  return results;
}
origin: eclipse-jetty/eclipse-jetty-plugin

/**
 * {@inheritDoc}
 * 
 * @see net.sourceforge.eclipsejetty.starter.common.ServerAdapter#getSecurePorts()
 */
@Override
public Collection<Integer> getSecurePorts()
{
  Collection<Integer> results = new LinkedHashSet<Integer>();
  Connector[] connectors = server.getConnectors();
  if (connectors != null)
  {
    for (Connector connector : connectors)
    {
      if ((connector.getDefaultConnectionFactory().getClass().getSimpleName().toLowerCase().contains("ssl")))
      {
        results.add(((AbstractNetworkConnector) connector).getPort());
      }
    }
  }
  return results;
}
origin: eclipse-jetty/eclipse-jetty-plugin

/**
 * {@inheritDoc}
 * 
 * @see net.sourceforge.eclipsejetty.starter.common.ServerAdapter#getSecurePorts()
 */
@Override
public Collection<Integer> getSecurePorts()
{
  Collection<Integer> results = new LinkedHashSet<Integer>();
  Connector[] connectors = server.getConnectors();
  if (connectors != null)
  {
    for (Connector connector : connectors)
    {
      if ((connector.getDefaultConnectionFactory().getClass().getSimpleName().toLowerCase().contains("ssl")))
      {
        results.add(((AbstractNetworkConnector) connector).getPort());
      }
    }
  }
  return results;
}
origin: eclipse-jetty/eclipse-jetty-plugin

/**
 * {@inheritDoc}
 * 
 * @see net.sourceforge.eclipsejetty.starter.common.ServerAdapter#getPorts()
 */
@Override
public Collection<Integer> getPorts()
{
  Collection<Integer> results = new LinkedHashSet<Integer>();
  Connector[] connectors = server.getConnectors();
  if (connectors != null)
  {
    for (Connector connector : connectors)
    {
      if (!(connector.getDefaultConnectionFactory().getClass().getSimpleName().toLowerCase().contains("ssl")))
      {
        results.add(((AbstractNetworkConnector) connector).getPort());
      }
    }
  }
  return results;
}
origin: tech.rsqn.useful-things/embedded-jetty

ConnectionFactory connectionFactory = connector.getDefaultConnectionFactory();
if(connectionFactory instanceof HttpConnectionFactory) {
  HttpConnectionFactory defaultConnectionFactory = (HttpConnectionFactory) connectionFactory;
org.eclipse.jetty.serverConnectorgetDefaultConnectionFactory

Popular methods of Connector

  • setPort
  • stop
  • getLocalPort
  • getName
  • start
  • getServer
  • setHost
    Set the hostname of the interface to bind to.
  • getConnectionFactories
  • getPort
  • getConnectionFactory
  • getExecutor
  • getHost
  • getExecutor,
  • getHost,
  • getByteBufferPool,
  • close,
  • getProtocols,
  • getScheduler,
  • isConfidential,
  • isIntegral,
  • shutdown

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • addToBackStack (FragmentTransaction)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JButton (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now