congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Connector.isRunning
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: apache/cxf

/**
 * This call sets TLSServerParameters for a JettyHTTPServerEngine
 * that will be subsequently created. It will not alter an engine
 * that has already been created for that network port.
 * @param host       if not null, server will listen on this address/host,
 *                   otherwise, server will listen on all local addresses.
 * @param port       The network port number to bind to the engine.
 * @param tlsParams  The tls server parameters. Cannot be null.
 * @throws IOException
 * @throws GeneralSecurityException
 */
public void setTLSServerParametersForPort(
  String host,
  int port,
  TLSServerParameters tlsParams) throws GeneralSecurityException, IOException {
  if (tlsParams == null) {
    throw new IllegalArgumentException("tlsParams cannot be null");
  }
  JettyHTTPServerEngine ref = retrieveJettyHTTPServerEngine(port);
  if (null == ref) {
    getOrCreate(this, host, port, tlsParams);
  } else {
    if (ref.getConnector() != null && ref.getConnector().isRunning()) {
      throw new IOException("can't set the TLS params on the opened connector");
    }
    ref.setTlsServerParameters(tlsParams);
  }
}
origin: org.apache.cxf/cxf-rt-transports-http-jetty

/**
 * This call sets TLSServerParameters for a JettyHTTPServerEngine
 * that will be subsequently created. It will not alter an engine
 * that has already been created for that network port.
 * @param host       if not null, server will listen on this address/host,
 *                   otherwise, server will listen on all local addresses.
 * @param port       The network port number to bind to the engine.
 * @param tlsParams  The tls server parameters. Cannot be null.
 * @throws IOException
 * @throws GeneralSecurityException
 */
public void setTLSServerParametersForPort(
  String host,
  int port,
  TLSServerParameters tlsParams) throws GeneralSecurityException, IOException {
  if (tlsParams == null) {
    throw new IllegalArgumentException("tlsParams cannot be null");
  }
  JettyHTTPServerEngine ref = retrieveJettyHTTPServerEngine(port);
  if (null == ref) {
    getOrCreate(this, host, port, tlsParams);
  } else {
    if (ref.getConnector() != null && ref.getConnector().isRunning()) {
      throw new IOException("can't set the TLS params on the opened connector");
    }
    ref.setTlsServerParameters(tlsParams);
  }
}
origin: org.apache.cxf/cxf-bundle-jaxrs

/**
 * This call sets TLSServerParameters for a JettyHTTPServerEngine
 * that will be subsequently created. It will not alter an engine
 * that has already been created for that network port.
 * @param host       if not null, server will listen on this address/host, 
 *                   otherwise, server will listen on all local addresses.
 * @param port       The network port number to bind to the engine.
 * @param tlsParams  The tls server parameters. Cannot be null.
 * @throws IOException 
 * @throws GeneralSecurityException 
 */
public void setTLSServerParametersForPort(
  String host,
  int port, 
  TLSServerParameters tlsParams) throws GeneralSecurityException, IOException {
  if (tlsParams == null) {
    throw new IllegalArgumentException("tlsParams cannot be null");
  }
  JettyHTTPServerEngine ref = retrieveJettyHTTPServerEngine(port);
  if (null == ref) {
    getOrCreate(this, host, port, tlsParams);
  } else {
    if (ref.getConnector() != null && ref.getConnector().isRunning()) {
      throw new IOException("can't set the TLS params on the opened connector");
    }
    ref.setTlsServerParameters(tlsParams);            
  }
}
origin: jenkinsci/winstone

else if (getConnector().isRunning())
    if (getConnector().isRunning())
      LOG.warn(e);
    else
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server

else if (getConnector().isRunning())
    if (getConnector().isRunning())
      LOG.warn(e);
    else
origin: Nextdoor/bender

else if (getConnector().isRunning())
    if (getConnector().isRunning())
      LOG.warn(e);
    else
org.eclipse.jetty.serverConnectorisRunning

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,
  • getDefaultConnectionFactory

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Runner (org.openjdk.jmh.runner)
  • 21 Best Atom Packages for 2021
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