| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (11.0.6) on Fri May 22 12:37:48 EDT 2020 --> |
| <title>ServerConnector (Jetty :: Project 9.4.29.v20200521 API)</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <meta name="dc.created" content="2020-05-22"> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style"> |
| <script type="text/javascript" src="../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script> |
| <!--[if IE]> |
| <script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script> |
| <![endif]--> |
| <script type="text/javascript" src="../../../../jquery/jquery-3.3.1.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jquery-migrate-3.0.1.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="ServerConnector (Jetty :: Project 9.4.29.v20200521 API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":42,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":42}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| var pathtoroot = "../../../../"; |
| var useModuleDirectories = false; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <header role="banner"> |
| <nav role="navigation"> |
| <div class="fixedNav"> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a id="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/ServerConnector.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <ul class="navListSearch"> |
| <li><label for="search">SEARCH:</label> |
| <input type="text" id="search" value="search" disabled="disabled"> |
| <input type="reset" id="reset" value="reset" disabled="disabled"> |
| </li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li><a href="#nested.class.summary">Nested</a> | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a id="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| </div> |
| <div class="navPadding"> </div> |
| <script type="text/javascript"><!-- |
| $('.navPadding').css('padding-top', $('.fixedNav').css("height")); |
| //--> |
| </script> |
| </nav> |
| </header> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <main role="main"> |
| <div class="header"> |
| <div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">org.eclipse.jetty.server</a></div> |
| <h2 title="Class ServerConnector" class="title">Class ServerConnector</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../util/component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">org.eclipse.jetty.util.component.AbstractLifeCycle</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../util/component/ContainerLifeCycle.html" title="class in org.eclipse.jetty.util.component">org.eclipse.jetty.util.component.ContainerLifeCycle</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="AbstractConnector.html" title="class in org.eclipse.jetty.server">org.eclipse.jetty.server.AbstractConnector</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="AbstractNetworkConnector.html" title="class in org.eclipse.jetty.server">org.eclipse.jetty.server.AbstractNetworkConnector</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.eclipse.jetty.server.ServerConnector</li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><code>java.io.Closeable</code>, <code>java.lang.AutoCloseable</code>, <code><a href="Connector.html" title="interface in org.eclipse.jetty.server">Connector</a></code>, <code><a href="NetworkConnector.html" title="interface in org.eclipse.jetty.server">NetworkConnector</a></code>, <code><a href="../util/component/Container.html" title="interface in org.eclipse.jetty.util.component">Container</a></code>, <code><a href="../util/component/Destroyable.html" title="interface in org.eclipse.jetty.util.component">Destroyable</a></code>, <code><a href="../util/component/Dumpable.html" title="interface in org.eclipse.jetty.util.component">Dumpable</a></code>, <code><a href="../util/component/Graceful.html" title="interface in org.eclipse.jetty.util.component">Graceful</a></code>, <code><a href="../util/component/LifeCycle.html" title="interface in org.eclipse.jetty.util.component">LifeCycle</a></code></dd> |
| </dl> |
| <dl> |
| <dt>Direct Known Subclasses:</dt> |
| <dd><code><a href="NetworkTrafficServerConnector.html" title="class in org.eclipse.jetty.server">NetworkTrafficServerConnector</a></code></dd> |
| </dl> |
| <hr> |
| <pre><a href="../util/annotation/ManagedObject.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedObject</a>("HTTP connector using NIO ByteChannels and Selectors") |
| public class <span class="typeNameLabel">ServerConnector</span> |
| extends <a href="AbstractNetworkConnector.html" title="class in org.eclipse.jetty.server">AbstractNetworkConnector</a></pre> |
| <div class="block">This <a href="Connector.html" title="interface in org.eclipse.jetty.server"><code>Connector</code></a> implementation is the primary connector for the |
| Jetty server over TCP/IP. By the use of various <a href="ConnectionFactory.html" title="interface in org.eclipse.jetty.server"><code>ConnectionFactory</code></a> instances it is able |
| to accept connections for HTTP, HTTP/2 and WebSocket, either directly or over SSL. |
| <p> |
| The connector is a fully asynchronous NIO based implementation that by default will |
| use all the commons services (eg <code>Executor</code>, <a href="../util/thread/Scheduler.html" title="interface in org.eclipse.jetty.util.thread"><code>Scheduler</code></a>) of the |
| passed <a href="Server.html" title="class in org.eclipse.jetty.server"><code>Server</code></a> instance, but all services may also be constructor injected |
| into the connector so that it may operate with dedicated or otherwise shared services. |
| </p> |
| <h2>Connection Factories</h2> |
| <p> |
| Various convenience constructors are provided to assist with common configurations of |
| ConnectionFactories, whose generic use is described in <a href="AbstractConnector.html" title="class in org.eclipse.jetty.server"><code>AbstractConnector</code></a>. |
| If no connection factories are passed, then the connector will |
| default to use a <a href="HttpConnectionFactory.html" title="class in org.eclipse.jetty.server"><code>HttpConnectionFactory</code></a>. If an non null <a href="../util/ssl/SslContextFactory.html" title="class in org.eclipse.jetty.util.ssl"><code>SslContextFactory</code></a> |
| instance is passed, then this used to instantiate a <a href="SslConnectionFactory.html" title="class in org.eclipse.jetty.server"><code>SslConnectionFactory</code></a> which is |
| prepended to the other passed or default factories. |
| </p> |
| <h2>Selectors</h2> |
| <p> |
| The default number of selectors is equal to half of the number of processors available to the JVM, |
| which should allow optimal performance even if all the connections used are performing |
| significant non-blocking work in the callback tasks. |
| </p></div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="nested.class.summary"> |
| <!-- --> |
| </a> |
| <h3>Nested Class Summary</h3> |
| <table class="memberSummary"> |
| <caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Class</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected class </code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="ServerConnector.ServerConnectorManager.html" title="class in org.eclipse.jetty.server">ServerConnector.ServerConnectorManager</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a id="nested.classes.inherited.from.class.org.eclipse.jetty.util.component.AbstractLifeCycle"> |
| <!-- --> |
| </a> |
| <h3>Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.<a href="../util/component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle</a></h3> |
| <code><a href="../util/component/AbstractLifeCycle.AbstractLifeCycleListener.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle.AbstractLifeCycleListener</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="nested.classes.inherited.from.class.org.eclipse.jetty.util.component.Container"> |
| <!-- --> |
| </a> |
| <h3>Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.<a href="../util/component/Container.html" title="interface in org.eclipse.jetty.util.component">Container</a></h3> |
| <code><a href="../util/component/Container.InheritedListener.html" title="interface in org.eclipse.jetty.util.component">Container.InheritedListener</a>, <a href="../util/component/Container.Listener.html" title="interface in org.eclipse.jetty.util.component">Container.Listener</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="nested.classes.inherited.from.class.org.eclipse.jetty.util.component.Graceful"> |
| <!-- --> |
| </a> |
| <h3>Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.<a href="../util/component/Graceful.html" title="interface in org.eclipse.jetty.util.component">Graceful</a></h3> |
| <code><a href="../util/component/Graceful.Shutdown.html" title="class in org.eclipse.jetty.util.component">Graceful.Shutdown</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="nested.classes.inherited.from.class.org.eclipse.jetty.util.component.LifeCycle"> |
| <!-- --> |
| </a> |
| <h3>Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.<a href="../util/component/LifeCycle.html" title="interface in org.eclipse.jetty.util.component">LifeCycle</a></h3> |
| <code><a href="../util/component/LifeCycle.Listener.html" title="interface in org.eclipse.jetty.util.component">LifeCycle.Listener</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <ul class="blockList"> |
| <li class="blockList"><a id="fields.inherited.from.class.org.eclipse.jetty.server.AbstractConnector"> |
| <!-- --> |
| </a> |
| <h3>Fields inherited from class org.eclipse.jetty.server.<a href="AbstractConnector.html" title="class in org.eclipse.jetty.server">AbstractConnector</a></h3> |
| <code><a href="AbstractConnector.html#LOG">LOG</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="fields.inherited.from.class.org.eclipse.jetty.util.component.AbstractLifeCycle"> |
| <!-- --> |
| </a> |
| <h3>Fields inherited from class org.eclipse.jetty.util.component.<a href="../util/component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle</a></h3> |
| <code><a href="../util/component/AbstractLifeCycle.html#FAILED">FAILED</a>, <a href="../util/component/AbstractLifeCycle.html#RUNNING">RUNNING</a>, <a href="../util/component/AbstractLifeCycle.html#STARTED">STARTED</a>, <a href="../util/component/AbstractLifeCycle.html#STARTING">STARTING</a>, <a href="../util/component/AbstractLifeCycle.html#STOPPED">STOPPED</a>, <a href="../util/component/AbstractLifeCycle.html#STOPPING">STOPPING</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="fields.inherited.from.class.org.eclipse.jetty.util.component.Dumpable"> |
| <!-- --> |
| </a> |
| <h3>Fields inherited from interface org.eclipse.jetty.util.component.<a href="../util/component/Dumpable.html" title="interface in org.eclipse.jetty.util.component">Dumpable</a></h3> |
| <code><a href="../util/component/Dumpable.html#KEY">KEY</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Constructor</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr class="altColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(org.eclipse.jetty.server.Server)">ServerConnector</a></span>​(<a href="Server.html" title="class in org.eclipse.jetty.server">Server</a> server)</code></th> |
| <td class="colLast"> |
| <div class="block">Construct a ServerConnector with a private instance of <a href="HttpConnectionFactory.html" title="class in org.eclipse.jetty.server"><code>HttpConnectionFactory</code></a> as the only factory.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(org.eclipse.jetty.server.Server,int,int)">ServerConnector</a></span>​(<a href="Server.html" title="class in org.eclipse.jetty.server">Server</a> server, |
| int acceptors, |
| int selectors)</code></th> |
| <td class="colLast"> |
| <div class="block">Construct a ServerConnector with a private instance of <a href="HttpConnectionFactory.html" title="class in org.eclipse.jetty.server"><code>HttpConnectionFactory</code></a> as the only factory.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(org.eclipse.jetty.server.Server,int,int,org.eclipse.jetty.server.ConnectionFactory...)">ServerConnector</a></span>​(<a href="Server.html" title="class in org.eclipse.jetty.server">Server</a> server, |
| int acceptors, |
| int selectors, |
| <a href="ConnectionFactory.html" title="interface in org.eclipse.jetty.server">ConnectionFactory</a>... factories)</code></th> |
| <td class="colLast"> |
| <div class="block">Construct a ServerConnector with a private instance of <a href="HttpConnectionFactory.html" title="class in org.eclipse.jetty.server"><code>HttpConnectionFactory</code></a> as the only factory.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(org.eclipse.jetty.server.Server,int,int,org.eclipse.jetty.util.ssl.SslContextFactory)">ServerConnector</a></span>​(<a href="Server.html" title="class in org.eclipse.jetty.server">Server</a> server, |
| int acceptors, |
| int selectors, |
| <a href="../util/ssl/SslContextFactory.html" title="class in org.eclipse.jetty.util.ssl">SslContextFactory</a> sslContextFactory)</code></th> |
| <td class="colLast"> |
| <div class="block">Construct a ServerConnector with a private instance of <a href="HttpConnectionFactory.html" title="class in org.eclipse.jetty.server"><code>HttpConnectionFactory</code></a> as the primary protocol</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(org.eclipse.jetty.server.Server,java.util.concurrent.Executor,org.eclipse.jetty.util.thread.Scheduler,org.eclipse.jetty.io.ByteBufferPool,int,int,org.eclipse.jetty.server.ConnectionFactory...)">ServerConnector</a></span>​(<a href="Server.html" title="class in org.eclipse.jetty.server">Server</a> server, |
| java.util.concurrent.Executor executor, |
| <a href="../util/thread/Scheduler.html" title="interface in org.eclipse.jetty.util.thread">Scheduler</a> scheduler, |
| <a href="../io/ByteBufferPool.html" title="interface in org.eclipse.jetty.io">ByteBufferPool</a> bufferPool, |
| int acceptors, |
| int selectors, |
| <a href="ConnectionFactory.html" title="interface in org.eclipse.jetty.server">ConnectionFactory</a>... factories)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(org.eclipse.jetty.server.Server,org.eclipse.jetty.server.ConnectionFactory...)">ServerConnector</a></span>​(<a href="Server.html" title="class in org.eclipse.jetty.server">Server</a> server, |
| <a href="ConnectionFactory.html" title="interface in org.eclipse.jetty.server">ConnectionFactory</a>... factories)</code></th> |
| <td class="colLast"> |
| <div class="block">Construct a Server Connector with the passed Connection factories.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(org.eclipse.jetty.server.Server,org.eclipse.jetty.util.ssl.SslContextFactory)">ServerConnector</a></span>​(<a href="Server.html" title="class in org.eclipse.jetty.server">Server</a> server, |
| <a href="../util/ssl/SslContextFactory.html" title="class in org.eclipse.jetty.util.ssl">SslContextFactory</a> sslContextFactory)</code></th> |
| <td class="colLast"> |
| <div class="block">Construct a ServerConnector with a private instance of <a href="HttpConnectionFactory.html" title="class in org.eclipse.jetty.server"><code>HttpConnectionFactory</code></a> as the primary protocol</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(org.eclipse.jetty.server.Server,org.eclipse.jetty.util.ssl.SslContextFactory,org.eclipse.jetty.server.ConnectionFactory...)">ServerConnector</a></span>​(<a href="Server.html" title="class in org.eclipse.jetty.server">Server</a> server, |
| <a href="../util/ssl/SslContextFactory.html" title="class in org.eclipse.jetty.util.ssl">SslContextFactory</a> sslContextFactory, |
| <a href="ConnectionFactory.html" title="interface in org.eclipse.jetty.server">ConnectionFactory</a>... factories)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </section> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#accept(int)">accept</a></span>​(int acceptorID)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#close()">close</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Performs the activities needed to close the network communication |
| (for example, to stop accepting network connections).</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#configure(java.net.Socket)">configure</a></span>​(java.net.Socket socket)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#doStart()">doStart</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Starts the managed lifecycle beans in the order they were added.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#doStop()">doStop</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Stops the managed lifecycle beans in the reverse order they were added.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAcceptedReceiveBufferSize()">getAcceptedReceiveBufferSize</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAcceptedSendBufferSize()">getAcceptedSendBufferSize</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAcceptedTcpNoDelay()">getAcceptedTcpNoDelay</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAcceptQueueSize()">getAcceptQueueSize</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLocalPort()">getLocalPort</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getReuseAddress()">getReuseAddress</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code><a href="../io/SelectorManager.html" title="class in org.eclipse.jetty.io">SelectorManager</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSelectorManager()">getSelectorManager</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSoLingerTime()">getSoLingerTime</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> |
| <div class="deprecationComment">don't use as socket close linger time has undefined behavior for non-blocking sockets</div> |
| </div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>java.lang.Object</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTransport()">getTransport</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isInheritChannel()">isInheritChannel</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isOpen()">isOpen</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">A Connector may be opened and not started (to reserve a port) |
| or closed and running (to allow graceful shutdown of existing connections)</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>protected <a href="../io/ChannelEndPoint.html" title="class in org.eclipse.jetty.io">ChannelEndPoint</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newEndPoint(java.nio.channels.SocketChannel,org.eclipse.jetty.io.ManagedSelector,java.nio.channels.SelectionKey)">newEndPoint</a></span>​(java.nio.channels.SocketChannel channel, |
| <a href="../io/ManagedSelector.html" title="class in org.eclipse.jetty.io">ManagedSelector</a> selectSet, |
| java.nio.channels.SelectionKey key)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>protected <a href="../io/SelectorManager.html" title="class in org.eclipse.jetty.io">SelectorManager</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newSelectorManager(java.util.concurrent.Executor,org.eclipse.jetty.util.thread.Scheduler,int)">newSelectorManager</a></span>​(java.util.concurrent.Executor executor, |
| <a href="../util/thread/Scheduler.html" title="interface in org.eclipse.jetty.util.thread">Scheduler</a> scheduler, |
| int selectors)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#open()">open</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Performs the activities needed to open the network communication |
| (for example, to start accepting incoming network connections).</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#open(java.nio.channels.ServerSocketChannel)">open</a></span>​(java.nio.channels.ServerSocketChannel acceptChannel)</code></th> |
| <td class="colLast"> |
| <div class="block">Open the connector using the passed ServerSocketChannel.</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>protected java.nio.channels.ServerSocketChannel</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#openAcceptChannel()">openAcceptChannel</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Called by <a href="#open()"><code>open()</code></a> to obtain the accepting channel.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setAcceptedReceiveBufferSize(int)">setAcceptedReceiveBufferSize</a></span>​(int receiveBufferSize)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setAcceptedSendBufferSize(int)">setAcceptedSendBufferSize</a></span>​(int sendBufferSize)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setAcceptedTcpNoDelay(boolean)">setAcceptedTcpNoDelay</a></span>​(boolean tcpNoDelay)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setAccepting(boolean)">setAccepting</a></span>​(boolean accepting)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i25" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setAcceptQueueSize(int)">setAcceptQueueSize</a></span>​(int acceptQueueSize)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i26" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setInheritChannel(boolean)">setInheritChannel</a></span>​(boolean inheritChannel)</code></th> |
| <td class="colLast"> |
| <div class="block">Sets whether this connector uses a channel inherited from the JVM.</div> |
| </td> |
| </tr> |
| <tr id="i27" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setReuseAddress(boolean)">setReuseAddress</a></span>​(boolean reuseAddress)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i28" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setSoLingerTime(int)">setSoLingerTime</a></span>​(int lingerTime)</code></th> |
| <td class="colLast"> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> |
| <div class="deprecationComment">don't use as socket close linger time has undefined behavior for non-blocking sockets</div> |
| </div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.org.eclipse.jetty.server.AbstractNetworkConnector"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.eclipse.jetty.server.<a href="AbstractNetworkConnector.html" title="class in org.eclipse.jetty.server">AbstractNetworkConnector</a></h3> |
| <code><a href="AbstractNetworkConnector.html#getHost()">getHost</a>, <a href="AbstractNetworkConnector.html#getPort()">getPort</a>, <a href="AbstractNetworkConnector.html#handleAcceptFailure(java.lang.Throwable)">handleAcceptFailure</a>, <a href="AbstractNetworkConnector.html#setHost(java.lang.String)">setHost</a>, <a href="AbstractNetworkConnector.html#setPort(int)">setPort</a>, <a href="AbstractNetworkConnector.html#shutdown()">shutdown</a>, <a href="AbstractNetworkConnector.html#toString()">toString</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.org.eclipse.jetty.server.AbstractConnector"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.eclipse.jetty.server.<a href="AbstractConnector.html" title="class in org.eclipse.jetty.server">AbstractConnector</a></h3> |
| <code><a href="AbstractConnector.html#addConnectionFactory(org.eclipse.jetty.server.ConnectionFactory)">addConnectionFactory</a>, <a href="AbstractConnector.html#addFirstConnectionFactory(org.eclipse.jetty.server.ConnectionFactory)">addFirstConnectionFactory</a>, <a href="AbstractConnector.html#addIfAbsentConnectionFactory(org.eclipse.jetty.server.ConnectionFactory)">addIfAbsentConnectionFactory</a>, <a href="AbstractConnector.html#clearConnectionFactories()">clearConnectionFactories</a>, <a href="AbstractConnector.html#getAcceptorPriorityDelta()">getAcceptorPriorityDelta</a>, <a href="AbstractConnector.html#getAcceptors()">getAcceptors</a>, <a href="AbstractConnector.html#getByteBufferPool()">getByteBufferPool</a>, <a href="AbstractConnector.html#getConnectedEndPoints()">getConnectedEndPoints</a>, <a href="AbstractConnector.html#getConnectionFactories()">getConnectionFactories</a>, <a href="AbstractConnector.html#getConnectionFactory(java.lang.Class)">getConnectionFactory</a>, <a href="AbstractConnector.html#getConnectionFactory(java.lang.String)">getConnectionFactory</a>, <a href="AbstractConnector.html#getDefaultConnectionFactory()">getDefaultConnectionFactory</a>, <a href="AbstractConnector.html#getDefaultProtocol()">getDefaultProtocol</a>, <a href="AbstractConnector.html#getExecutor()">getExecutor</a>, <a href="AbstractConnector.html#getHttpChannelListeners()">getHttpChannelListeners</a>, <a href="AbstractConnector.html#getIdleTimeout()">getIdleTimeout</a>, <a href="AbstractConnector.html#getName()">getName</a>, <a href="AbstractConnector.html#getProtocols()">getProtocols</a>, <a href="AbstractConnector.html#getScheduler()">getScheduler</a>, <a href="AbstractConnector.html#getServer()">getServer</a>, <a href="AbstractConnector.html#interruptAcceptors()">interruptAcceptors</a>, <a href="AbstractConnector.html#isAccepting()">isAccepting</a>, <a href="AbstractConnector.html#isShutdown()">isShutdown</a>, <a href="AbstractConnector.html#join()">join</a>, <a href="AbstractConnector.html#join(long)">join</a>, <a href="AbstractConnector.html#onEndPointClosed(org.eclipse.jetty.io.EndPoint)">onEndPointClosed</a>, <a href="AbstractConnector.html#onEndPointOpened(org.eclipse.jetty.io.EndPoint)">onEndPointOpened</a>, <a href="AbstractConnector.html#removeConnectionFactory(java.lang.String)">removeConnectionFactory</a>, <a href="AbstractConnector.html#setAcceptorPriorityDelta(int)">setAcceptorPriorityDelta</a>, <a href="AbstractConnector.html#setConnectionFactories(java.util.Collection)">setConnectionFactories</a>, <a href="AbstractConnector.html#setDefaultProtocol(java.lang.String)">setDefaultProtocol</a>, <a href="AbstractConnector.html#setIdleTimeout(long)">setIdleTimeout</a>, <a href="AbstractConnector.html#setName(java.lang.String)">setName</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.org.eclipse.jetty.util.component.ContainerLifeCycle"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.eclipse.jetty.util.component.<a href="../util/component/ContainerLifeCycle.html" title="class in org.eclipse.jetty.util.component">ContainerLifeCycle</a></h3> |
| <code><a href="../util/component/ContainerLifeCycle.html#addBean(java.lang.Object)">addBean</a>, <a href="../util/component/ContainerLifeCycle.html#addBean(java.lang.Object,boolean)">addBean</a>, <a href="../util/component/ContainerLifeCycle.html#addEventListener(org.eclipse.jetty.util.component.Container.Listener)">addEventListener</a>, <a href="../util/component/ContainerLifeCycle.html#addManaged(org.eclipse.jetty.util.component.LifeCycle)">addManaged</a>, <a href="../util/component/ContainerLifeCycle.html#contains(java.lang.Object)">contains</a>, <a href="../util/component/ContainerLifeCycle.html#destroy()">destroy</a>, <a href="../util/component/ContainerLifeCycle.html#dump()">dump</a>, <a href="../util/component/ContainerLifeCycle.html#dump(java.lang.Appendable)">dump</a>, <a href="../util/component/ContainerLifeCycle.html#dump(java.lang.Appendable,java.lang.String)">dump</a>, <a href="../util/component/ContainerLifeCycle.html#dump(java.lang.Appendable,java.lang.String,java.util.Collection...)">dump</a>, <a href="../util/component/ContainerLifeCycle.html#dump(org.eclipse.jetty.util.component.Dumpable)">dump</a>, <a href="../util/component/ContainerLifeCycle.html#dumpBeans(java.lang.Appendable,java.lang.String,java.util.Collection...)">dumpBeans</a>, <a href="../util/component/ContainerLifeCycle.html#dumpObject(java.lang.Appendable,java.lang.Object)">dumpObject</a>, <a href="../util/component/ContainerLifeCycle.html#dumpObjects(java.lang.Appendable,java.lang.String,java.lang.Object...)">dumpObjects</a>, <a href="../util/component/ContainerLifeCycle.html#dumpStdErr()">dumpStdErr</a>, <a href="../util/component/ContainerLifeCycle.html#dumpThis(java.lang.Appendable)">dumpThis</a>, <a href="../util/component/ContainerLifeCycle.html#getBean(java.lang.Class)">getBean</a>, <a href="../util/component/ContainerLifeCycle.html#getBeans()">getBeans</a>, <a href="../util/component/ContainerLifeCycle.html#getBeans(java.lang.Class)">getBeans</a>, <a href="../util/component/ContainerLifeCycle.html#getContainedBeans(java.lang.Class)">getContainedBeans</a>, <a href="../util/component/ContainerLifeCycle.html#getContainedBeans(java.lang.Class,java.util.Collection)">getContainedBeans</a>, <a href="../util/component/ContainerLifeCycle.html#isAuto(java.lang.Object)">isAuto</a>, <a href="../util/component/ContainerLifeCycle.html#isManaged(java.lang.Object)">isManaged</a>, <a href="../util/component/ContainerLifeCycle.html#isUnmanaged(java.lang.Object)">isUnmanaged</a>, <a href="../util/component/ContainerLifeCycle.html#manage(java.lang.Object)">manage</a>, <a href="../util/component/ContainerLifeCycle.html#removeBean(java.lang.Object)">removeBean</a>, <a href="../util/component/ContainerLifeCycle.html#removeBeans()">removeBeans</a>, <a href="../util/component/ContainerLifeCycle.html#removeEventListener(org.eclipse.jetty.util.component.Container.Listener)">removeEventListener</a>, <a href="../util/component/ContainerLifeCycle.html#setBeans(java.util.Collection)">setBeans</a>, <a href="../util/component/ContainerLifeCycle.html#setStopTimeout(long)">setStopTimeout</a>, <a href="../util/component/ContainerLifeCycle.html#start(org.eclipse.jetty.util.component.LifeCycle)">start</a>, <a href="../util/component/ContainerLifeCycle.html#stop(org.eclipse.jetty.util.component.LifeCycle)">stop</a>, <a href="../util/component/ContainerLifeCycle.html#unmanage(java.lang.Object)">unmanage</a>, <a href="../util/component/ContainerLifeCycle.html#updateBean(java.lang.Object,java.lang.Object)">updateBean</a>, <a href="../util/component/ContainerLifeCycle.html#updateBean(java.lang.Object,java.lang.Object,boolean)">updateBean</a>, <a href="../util/component/ContainerLifeCycle.html#updateBeans(java.lang.Object%5B%5D,java.lang.Object%5B%5D)">updateBeans</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.org.eclipse.jetty.util.component.AbstractLifeCycle"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.eclipse.jetty.util.component.<a href="../util/component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle</a></h3> |
| <code><a href="../util/component/AbstractLifeCycle.html#addLifeCycleListener(org.eclipse.jetty.util.component.LifeCycle.Listener)">addLifeCycleListener</a>, <a href="../util/component/AbstractLifeCycle.html#getState()">getState</a>, <a href="../util/component/AbstractLifeCycle.html#getState(org.eclipse.jetty.util.component.LifeCycle)">getState</a>, <a href="../util/component/AbstractLifeCycle.html#getStopTimeout()">getStopTimeout</a>, <a href="../util/component/AbstractLifeCycle.html#isFailed()">isFailed</a>, <a href="../util/component/AbstractLifeCycle.html#isRunning()">isRunning</a>, <a href="../util/component/AbstractLifeCycle.html#isStarted()">isStarted</a>, <a href="../util/component/AbstractLifeCycle.html#isStarting()">isStarting</a>, <a href="../util/component/AbstractLifeCycle.html#isStopped()">isStopped</a>, <a href="../util/component/AbstractLifeCycle.html#isStopping()">isStopping</a>, <a href="../util/component/AbstractLifeCycle.html#removeLifeCycleListener(org.eclipse.jetty.util.component.LifeCycle.Listener)">removeLifeCycleListener</a>, <a href="../util/component/AbstractLifeCycle.html#start()">start</a>, <a href="../util/component/AbstractLifeCycle.html#stop()">stop</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.Object</h3> |
| <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.org.eclipse.jetty.server.Connector"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface org.eclipse.jetty.server.<a href="Connector.html" title="interface in org.eclipse.jetty.server">Connector</a></h3> |
| <code><a href="Connector.html#getByteBufferPool()">getByteBufferPool</a>, <a href="Connector.html#getConnectedEndPoints()">getConnectedEndPoints</a>, <a href="Connector.html#getConnectionFactories()">getConnectionFactories</a>, <a href="Connector.html#getConnectionFactory(java.lang.Class)">getConnectionFactory</a>, <a href="Connector.html#getConnectionFactory(java.lang.String)">getConnectionFactory</a>, <a href="Connector.html#getDefaultConnectionFactory()">getDefaultConnectionFactory</a>, <a href="Connector.html#getExecutor()">getExecutor</a>, <a href="Connector.html#getIdleTimeout()">getIdleTimeout</a>, <a href="Connector.html#getName()">getName</a>, <a href="Connector.html#getProtocols()">getProtocols</a>, <a href="Connector.html#getScheduler()">getScheduler</a>, <a href="Connector.html#getServer()">getServer</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.org.eclipse.jetty.util.component.Container"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface org.eclipse.jetty.util.component.<a href="../util/component/Container.html" title="interface in org.eclipse.jetty.util.component">Container</a></h3> |
| <code><a href="../util/component/Container.html#addBean(java.lang.Object)">addBean</a>, <a href="../util/component/Container.html#addBean(java.lang.Object,boolean)">addBean</a>, <a href="../util/component/Container.html#addEventListener(org.eclipse.jetty.util.component.Container.Listener)">addEventListener</a>, <a href="../util/component/Container.html#getBean(java.lang.Class)">getBean</a>, <a href="../util/component/Container.html#getBeans()">getBeans</a>, <a href="../util/component/Container.html#getBeans(java.lang.Class)">getBeans</a>, <a href="../util/component/Container.html#getContainedBeans(java.lang.Class)">getContainedBeans</a>, <a href="../util/component/Container.html#isManaged(java.lang.Object)">isManaged</a>, <a href="../util/component/Container.html#manage(java.lang.Object)">manage</a>, <a href="../util/component/Container.html#removeBean(java.lang.Object)">removeBean</a>, <a href="../util/component/Container.html#removeEventListener(org.eclipse.jetty.util.component.Container.Listener)">removeEventListener</a>, <a href="../util/component/Container.html#unmanage(java.lang.Object)">unmanage</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.org.eclipse.jetty.util.component.Dumpable"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface org.eclipse.jetty.util.component.<a href="../util/component/Dumpable.html" title="interface in org.eclipse.jetty.util.component">Dumpable</a></h3> |
| <code><a href="../util/component/Dumpable.html#dump()">dump</a>, <a href="../util/component/Dumpable.html#dump(java.lang.Appendable,java.lang.String)">dump</a>, <a href="../util/component/Dumpable.html#dumpSelf()">dumpSelf</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.org.eclipse.jetty.util.component.Graceful"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface org.eclipse.jetty.util.component.<a href="../util/component/Graceful.html" title="interface in org.eclipse.jetty.util.component">Graceful</a></h3> |
| <code><a href="../util/component/Graceful.html#isShutdown()">isShutdown</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.org.eclipse.jetty.util.component.LifeCycle"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface org.eclipse.jetty.util.component.<a href="../util/component/LifeCycle.html" title="interface in org.eclipse.jetty.util.component">LifeCycle</a></h3> |
| <code><a href="../util/component/LifeCycle.html#addLifeCycleListener(org.eclipse.jetty.util.component.LifeCycle.Listener)">addLifeCycleListener</a>, <a href="../util/component/LifeCycle.html#isFailed()">isFailed</a>, <a href="../util/component/LifeCycle.html#isRunning()">isRunning</a>, <a href="../util/component/LifeCycle.html#isStarted()">isStarted</a>, <a href="../util/component/LifeCycle.html#isStarting()">isStarting</a>, <a href="../util/component/LifeCycle.html#isStopped()">isStopped</a>, <a href="../util/component/LifeCycle.html#isStopping()">isStopping</a>, <a href="../util/component/LifeCycle.html#removeLifeCycleListener(org.eclipse.jetty.util.component.LifeCycle.Listener)">removeLifeCycleListener</a>, <a href="../util/component/LifeCycle.html#start()">start</a>, <a href="../util/component/LifeCycle.html#stop()">stop</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a id="<init>(org.eclipse.jetty.server.Server)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ServerConnector</h4> |
| <pre>public ServerConnector​(<a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("server") |
| <a href="Server.html" title="class in org.eclipse.jetty.server">Server</a> server)</pre> |
| <div class="block"><p>Construct a ServerConnector with a private instance of <a href="HttpConnectionFactory.html" title="class in org.eclipse.jetty.server"><code>HttpConnectionFactory</code></a> as the only factory.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>server</code> - The <a href="Server.html" title="class in org.eclipse.jetty.server"><code>Server</code></a> this connector will accept connection for.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="<init>(org.eclipse.jetty.server.Server,int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ServerConnector</h4> |
| <pre>public ServerConnector​(<a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("server") |
| <a href="Server.html" title="class in org.eclipse.jetty.server">Server</a> server, |
| <a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("acceptors") |
| int acceptors, |
| <a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("selectors") |
| int selectors)</pre> |
| <div class="block"><p>Construct a ServerConnector with a private instance of <a href="HttpConnectionFactory.html" title="class in org.eclipse.jetty.server"><code>HttpConnectionFactory</code></a> as the only factory.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>server</code> - The <a href="Server.html" title="class in org.eclipse.jetty.server"><code>Server</code></a> this connector will accept connection for.</dd> |
| <dd><code>acceptors</code> - the number of acceptor threads to use, or -1 for a default value. Acceptors accept new TCP/IP connections. If 0, then |
| the selector threads are used to accept connections.</dd> |
| <dd><code>selectors</code> - the number of selector threads, or <=0 for a default value. Selectors notice and schedule established connection that can make IO progress.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="<init>(org.eclipse.jetty.server.Server,int,int,org.eclipse.jetty.server.ConnectionFactory...)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ServerConnector</h4> |
| <pre>public ServerConnector​(<a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("server") |
| <a href="Server.html" title="class in org.eclipse.jetty.server">Server</a> server, |
| <a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("acceptors") |
| int acceptors, |
| <a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("selectors") |
| int selectors, |
| <a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("factories") |
| <a href="ConnectionFactory.html" title="interface in org.eclipse.jetty.server">ConnectionFactory</a>... factories)</pre> |
| <div class="block"><p>Construct a ServerConnector with a private instance of <a href="HttpConnectionFactory.html" title="class in org.eclipse.jetty.server"><code>HttpConnectionFactory</code></a> as the only factory.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>server</code> - The <a href="Server.html" title="class in org.eclipse.jetty.server"><code>Server</code></a> this connector will accept connection for.</dd> |
| <dd><code>acceptors</code> - the number of acceptor threads to use, or -1 for a default value. Acceptors accept new TCP/IP connections. If 0, then |
| the selector threads are used to accept connections.</dd> |
| <dd><code>selectors</code> - the number of selector threads, or <=0 for a default value. Selectors notice and schedule established connection that can make IO progress.</dd> |
| <dd><code>factories</code> - Zero or more <a href="ConnectionFactory.html" title="interface in org.eclipse.jetty.server"><code>ConnectionFactory</code></a> instances used to create and configure connections.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="<init>(org.eclipse.jetty.server.Server,org.eclipse.jetty.server.ConnectionFactory...)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ServerConnector</h4> |
| <pre>public ServerConnector​(<a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("server") |
| <a href="Server.html" title="class in org.eclipse.jetty.server">Server</a> server, |
| <a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("factories") |
| <a href="ConnectionFactory.html" title="interface in org.eclipse.jetty.server">ConnectionFactory</a>... factories)</pre> |
| <div class="block"><p>Construct a Server Connector with the passed Connection factories.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>server</code> - The <a href="Server.html" title="class in org.eclipse.jetty.server"><code>Server</code></a> this connector will accept connection for.</dd> |
| <dd><code>factories</code> - Zero or more <a href="ConnectionFactory.html" title="interface in org.eclipse.jetty.server"><code>ConnectionFactory</code></a> instances used to create and configure connections.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="<init>(org.eclipse.jetty.server.Server,org.eclipse.jetty.util.ssl.SslContextFactory)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ServerConnector</h4> |
| <pre>public ServerConnector​(<a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("server") |
| <a href="Server.html" title="class in org.eclipse.jetty.server">Server</a> server, |
| <a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("sslContextFactory") |
| <a href="../util/ssl/SslContextFactory.html" title="class in org.eclipse.jetty.util.ssl">SslContextFactory</a> sslContextFactory)</pre> |
| <div class="block"><p>Construct a ServerConnector with a private instance of <a href="HttpConnectionFactory.html" title="class in org.eclipse.jetty.server"><code>HttpConnectionFactory</code></a> as the primary protocol</p>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>server</code> - The <a href="Server.html" title="class in org.eclipse.jetty.server"><code>Server</code></a> this connector will accept connection for.</dd> |
| <dd><code>sslContextFactory</code> - If non null, then a <a href="SslConnectionFactory.html" title="class in org.eclipse.jetty.server"><code>SslConnectionFactory</code></a> is instantiated and prepended to the |
| list of HTTP Connection Factory.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="<init>(org.eclipse.jetty.server.Server,int,int,org.eclipse.jetty.util.ssl.SslContextFactory)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ServerConnector</h4> |
| <pre>public ServerConnector​(<a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("server") |
| <a href="Server.html" title="class in org.eclipse.jetty.server">Server</a> server, |
| <a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("acceptors") |
| int acceptors, |
| <a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("selectors") |
| int selectors, |
| <a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("sslContextFactory") |
| <a href="../util/ssl/SslContextFactory.html" title="class in org.eclipse.jetty.util.ssl">SslContextFactory</a> sslContextFactory)</pre> |
| <div class="block"><p>Construct a ServerConnector with a private instance of <a href="HttpConnectionFactory.html" title="class in org.eclipse.jetty.server"><code>HttpConnectionFactory</code></a> as the primary protocol</p>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>server</code> - The <a href="Server.html" title="class in org.eclipse.jetty.server"><code>Server</code></a> this connector will accept connection for.</dd> |
| <dd><code>sslContextFactory</code> - If non null, then a <a href="SslConnectionFactory.html" title="class in org.eclipse.jetty.server"><code>SslConnectionFactory</code></a> is instantiated and prepended to the |
| list of HTTP Connection Factory.</dd> |
| <dd><code>acceptors</code> - the number of acceptor threads to use, or -1 for a default value. Acceptors accept new TCP/IP connections. If 0, then |
| the selector threads are used to accept connections.</dd> |
| <dd><code>selectors</code> - the number of selector threads, or <=0 for a default value. Selectors notice and schedule established connection that can make IO progress.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="<init>(org.eclipse.jetty.server.Server,org.eclipse.jetty.util.ssl.SslContextFactory,org.eclipse.jetty.server.ConnectionFactory...)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ServerConnector</h4> |
| <pre>public ServerConnector​(<a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("server") |
| <a href="Server.html" title="class in org.eclipse.jetty.server">Server</a> server, |
| <a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("sslContextFactory") |
| <a href="../util/ssl/SslContextFactory.html" title="class in org.eclipse.jetty.util.ssl">SslContextFactory</a> sslContextFactory, |
| <a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("factories") |
| <a href="ConnectionFactory.html" title="interface in org.eclipse.jetty.server">ConnectionFactory</a>... factories)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>server</code> - The <a href="Server.html" title="class in org.eclipse.jetty.server"><code>Server</code></a> this connector will accept connection for.</dd> |
| <dd><code>sslContextFactory</code> - If non null, then a <a href="SslConnectionFactory.html" title="class in org.eclipse.jetty.server"><code>SslConnectionFactory</code></a> is instantiated and prepended to the |
| list of ConnectionFactories, with the first factory being the default protocol for the SslConnectionFactory.</dd> |
| <dd><code>factories</code> - Zero or more <a href="ConnectionFactory.html" title="interface in org.eclipse.jetty.server"><code>ConnectionFactory</code></a> instances used to create and configure connections.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="<init>(org.eclipse.jetty.server.Server,java.util.concurrent.Executor,org.eclipse.jetty.util.thread.Scheduler,org.eclipse.jetty.io.ByteBufferPool,int,int,org.eclipse.jetty.server.ConnectionFactory...)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>ServerConnector</h4> |
| <pre>public ServerConnector​(<a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("server") |
| <a href="Server.html" title="class in org.eclipse.jetty.server">Server</a> server, |
| <a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("executor") |
| java.util.concurrent.Executor executor, |
| <a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("scheduler") |
| <a href="../util/thread/Scheduler.html" title="interface in org.eclipse.jetty.util.thread">Scheduler</a> scheduler, |
| <a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("bufferPool") |
| <a href="../io/ByteBufferPool.html" title="interface in org.eclipse.jetty.io">ByteBufferPool</a> bufferPool, |
| <a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("acceptors") |
| int acceptors, |
| <a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("selectors") |
| int selectors, |
| <a href="../util/annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("factories") |
| <a href="ConnectionFactory.html" title="interface in org.eclipse.jetty.server">ConnectionFactory</a>... factories)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>server</code> - The server this connector will be accept connection for.</dd> |
| <dd><code>executor</code> - An executor used to run tasks for handling requests, acceptors and selectors. |
| If null then use the servers executor</dd> |
| <dd><code>scheduler</code> - A scheduler used to schedule timeouts. If null then use the servers scheduler</dd> |
| <dd><code>bufferPool</code> - A ByteBuffer pool used to allocate buffers. If null then create a private pool with default configuration.</dd> |
| <dd><code>acceptors</code> - the number of acceptor threads to use, or -1 for a default value. Acceptors accept new TCP/IP connections. If 0, then |
| the selector threads are used to accept connections.</dd> |
| <dd><code>selectors</code> - the number of selector threads, or <=0 for a default value. Selectors notice and schedule established connection that can make IO progress.</dd> |
| <dd><code>factories</code> - Zero or more <a href="ConnectionFactory.html" title="interface in org.eclipse.jetty.server"><code>ConnectionFactory</code></a> instances used to create and configure connections.</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| <!-- ============ METHOD DETAIL ========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a id="newSelectorManager(java.util.concurrent.Executor,org.eclipse.jetty.util.thread.Scheduler,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>newSelectorManager</h4> |
| <pre class="methodSignature">protected <a href="../io/SelectorManager.html" title="class in org.eclipse.jetty.io">SelectorManager</a> newSelectorManager​(java.util.concurrent.Executor executor, |
| <a href="../util/thread/Scheduler.html" title="interface in org.eclipse.jetty.util.thread">Scheduler</a> scheduler, |
| int selectors)</pre> |
| </li> |
| </ul> |
| <a id="doStart()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>doStart</h4> |
| <pre class="methodSignature">protected void doStart() |
| throws java.lang.Exception</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../util/component/ContainerLifeCycle.html#doStart()">ContainerLifeCycle</a></code></span></div> |
| <div class="block">Starts the managed lifecycle beans in the order they were added.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="AbstractNetworkConnector.html#doStart()">doStart</a></code> in class <code><a href="AbstractNetworkConnector.html" title="class in org.eclipse.jetty.server">AbstractNetworkConnector</a></code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="doStop()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>doStop</h4> |
| <pre class="methodSignature">protected void doStop() |
| throws java.lang.Exception</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../util/component/ContainerLifeCycle.html#doStop()">ContainerLifeCycle</a></code></span></div> |
| <div class="block">Stops the managed lifecycle beans in the reverse order they were added.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="AbstractNetworkConnector.html#doStop()">doStop</a></code> in class <code><a href="AbstractNetworkConnector.html" title="class in org.eclipse.jetty.server">AbstractNetworkConnector</a></code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="isOpen()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isOpen</h4> |
| <pre class="methodSignature">public boolean isOpen()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="NetworkConnector.html#isOpen()">NetworkConnector</a></code></span></div> |
| <div class="block">A Connector may be opened and not started (to reserve a port) |
| or closed and running (to allow graceful shutdown of existing connections)</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>True if the connector is Open.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="isInheritChannel()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isInheritChannel</h4> |
| <pre class="methodSignature">public boolean isInheritChannel()</pre> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>whether this connector uses a channel inherited from the JVM.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>System.inheritedChannel()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="setInheritChannel(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setInheritChannel</h4> |
| <pre class="methodSignature">public void setInheritChannel​(boolean inheritChannel)</pre> |
| <div class="block"><p>Sets whether this connector uses a channel inherited from the JVM.</p> |
| <p>If true, the connector first tries to inherit from a channel provided by the system. |
| If there is no inherited channel available, or if the inherited channel is not usable, |
| then it will fall back using <code>ServerSocketChannel</code>.</p> |
| <p>Use it with xinetd/inetd, to launch an instance of Jetty on demand. The port |
| used to access pages on the Jetty instance is the same as the port used to |
| launch Jetty.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>inheritChannel</code> - whether this connector uses a channel inherited from the JVM.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="#openAcceptChannel()"><code>openAcceptChannel()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="open(java.nio.channels.ServerSocketChannel)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>open</h4> |
| <pre class="methodSignature">public void open​(java.nio.channels.ServerSocketChannel acceptChannel) |
| throws java.io.IOException</pre> |
| <div class="block">Open the connector using the passed ServerSocketChannel. |
| This open method can be called before starting the connector to pass it a ServerSocketChannel |
| that will be used instead of one returned from <a href="#openAcceptChannel()"><code>openAcceptChannel()</code></a></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>acceptChannel</code> - the channel to use</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.io.IOException</code> - if the server channel is not bound</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="open()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>open</h4> |
| <pre class="methodSignature">public void open() |
| throws java.io.IOException</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="NetworkConnector.html#open()">NetworkConnector</a></code></span></div> |
| <div class="block"><p>Performs the activities needed to open the network communication |
| (for example, to start accepting incoming network connections).</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="NetworkConnector.html#open()">open</a></code> in interface <code><a href="NetworkConnector.html" title="interface in org.eclipse.jetty.server">NetworkConnector</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="AbstractNetworkConnector.html#open()">open</a></code> in class <code><a href="AbstractNetworkConnector.html" title="class in org.eclipse.jetty.server">AbstractNetworkConnector</a></code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.io.IOException</code> - if this connector cannot be opened</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="NetworkConnector.html#close()"><code>NetworkConnector.close()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="openAcceptChannel()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>openAcceptChannel</h4> |
| <pre class="methodSignature">protected java.nio.channels.ServerSocketChannel openAcceptChannel() |
| throws java.io.IOException</pre> |
| <div class="block">Called by <a href="#open()"><code>open()</code></a> to obtain the accepting channel.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>ServerSocketChannel used to accept connections.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.io.IOException</code> - if unable to obtain or configure the server channel</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="close()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>close</h4> |
| <pre class="methodSignature">public void close()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="NetworkConnector.html#close()">NetworkConnector</a></code></span></div> |
| <div class="block"><p>Performs the activities needed to close the network communication |
| (for example, to stop accepting network connections).</p> |
| Once a connector has been closed, it cannot be opened again without first |
| calling <a href="../util/component/LifeCycle.html#stop()"><code>LifeCycle.stop()</code></a> and it will not be active again until a subsequent call to <a href="../util/component/LifeCycle.html#start()"><code>LifeCycle.start()</code></a></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code>close</code> in interface <code>java.lang.AutoCloseable</code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code>close</code> in interface <code>java.io.Closeable</code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="NetworkConnector.html#close()">close</a></code> in interface <code><a href="NetworkConnector.html" title="interface in org.eclipse.jetty.server">NetworkConnector</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="AbstractNetworkConnector.html#close()">close</a></code> in class <code><a href="AbstractNetworkConnector.html" title="class in org.eclipse.jetty.server">AbstractNetworkConnector</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="accept(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>accept</h4> |
| <pre class="methodSignature">public void accept​(int acceptorID) |
| throws java.io.IOException</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="AbstractConnector.html#accept(int)">accept</a></code> in class <code><a href="AbstractConnector.html" title="class in org.eclipse.jetty.server">AbstractConnector</a></code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.io.IOException</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="configure(java.net.Socket)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>configure</h4> |
| <pre class="methodSignature">protected void configure​(java.net.Socket socket)</pre> |
| </li> |
| </ul> |
| <a id="getSelectorManager()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSelectorManager</h4> |
| <pre class="methodSignature"><a href="../util/annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("The Selector Manager") |
| public <a href="../io/SelectorManager.html" title="class in org.eclipse.jetty.io">SelectorManager</a> getSelectorManager()</pre> |
| </li> |
| </ul> |
| <a id="getTransport()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getTransport</h4> |
| <pre class="methodSignature">public java.lang.Object getTransport()</pre> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the underlying socket, channel, buffer etc. for the connector.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getLocalPort()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLocalPort</h4> |
| <pre class="methodSignature"><a href="../util/annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("local port") |
| public int getLocalPort()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="NetworkConnector.html#getLocalPort()">getLocalPort</a></code> in interface <code><a href="NetworkConnector.html" title="interface in org.eclipse.jetty.server">NetworkConnector</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="AbstractNetworkConnector.html#getLocalPort()">getLocalPort</a></code> in class <code><a href="AbstractNetworkConnector.html" title="class in org.eclipse.jetty.server">AbstractNetworkConnector</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The actual port the connector is listening on, or |
| -1 if it has not been opened, or -2 if it has been closed.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="newEndPoint(java.nio.channels.SocketChannel,org.eclipse.jetty.io.ManagedSelector,java.nio.channels.SelectionKey)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>newEndPoint</h4> |
| <pre class="methodSignature">protected <a href="../io/ChannelEndPoint.html" title="class in org.eclipse.jetty.io">ChannelEndPoint</a> newEndPoint​(java.nio.channels.SocketChannel channel, |
| <a href="../io/ManagedSelector.html" title="class in org.eclipse.jetty.io">ManagedSelector</a> selectSet, |
| java.nio.channels.SelectionKey key) |
| throws java.io.IOException</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.io.IOException</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getSoLingerTime()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSoLingerTime</h4> |
| <pre class="methodSignature"><a href="../util/annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>(<a href="../util/annotation/ManagedAttribute.html#value()">value</a>="Socket close linger time. Deprecated, always returns -1", |
| <a href="../util/annotation/ManagedAttribute.html#readonly()">readonly</a>=true) |
| @Deprecated |
| public int getSoLingerTime()</pre> |
| <div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span> |
| <div class="deprecationComment">don't use as socket close linger time has undefined behavior for non-blocking sockets</div> |
| </div> |
| <div class="block">Returns the socket close linger time.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>-1 as the socket close linger time is always disabled.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>StandardSocketOptions.SO_LINGER</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="setSoLingerTime(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSoLingerTime</h4> |
| <pre class="methodSignature">@Deprecated |
| public void setSoLingerTime​(int lingerTime)</pre> |
| <div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span> |
| <div class="deprecationComment">don't use as socket close linger time has undefined behavior for non-blocking sockets</div> |
| </div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>lingerTime</code> - the socket close linger time; use -1 to disable.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>StandardSocketOptions.SO_LINGER</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getAcceptQueueSize()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAcceptQueueSize</h4> |
| <pre class="methodSignature"><a href="../util/annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("Accept Queue size") |
| public int getAcceptQueueSize()</pre> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the accept queue size</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="setAcceptQueueSize(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setAcceptQueueSize</h4> |
| <pre class="methodSignature">public void setAcceptQueueSize​(int acceptQueueSize)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>acceptQueueSize</code> - the accept queue size (also known as accept backlog)</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getReuseAddress()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getReuseAddress</h4> |
| <pre class="methodSignature"><a href="../util/annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("Server Socket SO_REUSEADDR") |
| public boolean getReuseAddress()</pre> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>whether the server socket reuses addresses</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ServerSocket.getReuseAddress()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="setReuseAddress(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setReuseAddress</h4> |
| <pre class="methodSignature">public void setReuseAddress​(boolean reuseAddress)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>reuseAddress</code> - whether the server socket reuses addresses</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>ServerSocket.setReuseAddress(boolean)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getAcceptedTcpNoDelay()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAcceptedTcpNoDelay</h4> |
| <pre class="methodSignature"><a href="../util/annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("Accepted Socket TCP_NODELAY") |
| public boolean getAcceptedTcpNoDelay()</pre> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>whether the accepted socket gets <code>TCP_NODELAY</code> enabled.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Socket.getTcpNoDelay()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="setAcceptedTcpNoDelay(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setAcceptedTcpNoDelay</h4> |
| <pre class="methodSignature">public void setAcceptedTcpNoDelay​(boolean tcpNoDelay)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>tcpNoDelay</code> - whether <code>TCP_NODELAY</code> gets enabled on the the accepted socket.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Socket.setTcpNoDelay(boolean)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getAcceptedReceiveBufferSize()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAcceptedReceiveBufferSize</h4> |
| <pre class="methodSignature"><a href="../util/annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("Accepted Socket SO_RCVBUF") |
| public int getAcceptedReceiveBufferSize()</pre> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <code>SO_RCVBUF</code> size to set onto the accepted socket. |
| A value of -1 indicates that it is left to its default value.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Socket.getReceiveBufferSize()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="setAcceptedReceiveBufferSize(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setAcceptedReceiveBufferSize</h4> |
| <pre class="methodSignature">public void setAcceptedReceiveBufferSize​(int receiveBufferSize)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>receiveBufferSize</code> - the <code>SO_RCVBUF</code> size to set onto the accepted socket. |
| A value of -1 indicates that it is left to its default value.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Socket.setReceiveBufferSize(int)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getAcceptedSendBufferSize()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAcceptedSendBufferSize</h4> |
| <pre class="methodSignature"><a href="../util/annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("Accepted Socket SO_SNDBUF") |
| public int getAcceptedSendBufferSize()</pre> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <code>SO_SNDBUF</code> size to set onto the accepted socket. |
| A value of -1 indicates that it is left to its default value.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Socket.getSendBufferSize()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="setAcceptedSendBufferSize(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setAcceptedSendBufferSize</h4> |
| <pre class="methodSignature">public void setAcceptedSendBufferSize​(int sendBufferSize)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>sendBufferSize</code> - the <code>SO_SNDBUF</code> size to set onto the accepted socket. |
| A value of -1 indicates that it is left to its default value.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Socket.setSendBufferSize(int)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="setAccepting(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>setAccepting</h4> |
| <pre class="methodSignature">public void setAccepting​(boolean accepting)</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="AbstractConnector.html#setAccepting(boolean)">setAccepting</a></code> in class <code><a href="AbstractConnector.html" title="class in org.eclipse.jetty.server">AbstractConnector</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| </div> |
| </main> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <footer role="contentinfo"> |
| <nav role="navigation"> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a id="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/ServerConnector.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li><a href="#nested.class.summary">Nested</a> | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a id="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </nav> |
| <p class="legalCopy"><small>Copyright © 1995–2020 <a href="https://webtide.com">Webtide</a>. All rights reserved.</small></p> |
| </footer> |
| </body> |
| </html> |