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

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Menu (java.awt)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • 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