blob: d79f8cdc61499e6589ebffcf2edaa6d130727525 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_92) on Thu Jun 07 14:26:27 EDT 2018 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ChannelEndPoint (Jetty :: Project 9.3.24.v20180605 API)</title>
<meta name="date" content="2018-06-07">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="ChannelEndPoint (Jetty :: Project 9.3.24.v20180605 API)";
}
}
catch(err) {
}
//-->
var methods = {"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":10,"i13":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ChannelEndPoint.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">
<li><a href="../../../../org/eclipse/jetty/io/ByteBufferPool.Lease.html" title="class in org.eclipse.jetty.io"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/eclipse/jetty/io/ClientConnectionFactory.html" title="interface in org.eclipse.jetty.io"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/eclipse/jetty/io/ChannelEndPoint.html" target="_top">Frames</a></li>
<li><a href="ChannelEndPoint.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></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>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.eclipse.jetty.io</div>
<h2 title="Class ChannelEndPoint" class="title">Class ChannelEndPoint</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../../../../org/eclipse/jetty/io/IdleTimeout.html" title="class in org.eclipse.jetty.io">org.eclipse.jetty.io.IdleTimeout</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html" title="class in org.eclipse.jetty.io">org.eclipse.jetty.io.AbstractEndPoint</a></li>
<li>
<ul class="inheritance">
<li>org.eclipse.jetty.io.ChannelEndPoint</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>java.io.Closeable, java.lang.AutoCloseable, <a href="../../../../org/eclipse/jetty/io/EndPoint.html" title="interface in org.eclipse.jetty.io">EndPoint</a></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../org/eclipse/jetty/io/SelectChannelEndPoint.html" title="class in org.eclipse.jetty.io">SelectChannelEndPoint</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">ChannelEndPoint</span>
extends <a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html" title="class in org.eclipse.jetty.io">AbstractEndPoint</a></pre>
<div class="block">Channel End Point.
<p>Holds the channel and socket for an NIO endpoint.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/io/ChannelEndPoint.html#ChannelEndPoint-org.eclipse.jetty.util.thread.Scheduler-java.nio.channels.SocketChannel-">ChannelEndPoint</a></span>(<a href="../../../../org/eclipse/jetty/util/thread/Scheduler.html" title="interface in org.eclipse.jetty.util.thread">Scheduler</a>&nbsp;scheduler,
java.nio.channels.SocketChannel&nbsp;channel)</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/io/ChannelEndPoint.html#close--">close</a></span>()</code>
<div class="block">Close any backing stream associated with the endpoint</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/io/ChannelEndPoint.html#fill-java.nio.ByteBuffer-">fill</a></span>(java.nio.ByteBuffer&nbsp;buffer)</code>
<div class="block">Fill the passed buffer with data from this endpoint.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/io/ChannelEndPoint.html#flush-java.nio.ByteBuffer...-">flush</a></span>(java.nio.ByteBuffer...&nbsp;buffers)</code>
<div class="block">Flush data from the passed header/buffer to this endpoint.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>java.nio.channels.ByteChannel</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/io/ChannelEndPoint.html#getChannel--">getChannel</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>java.net.Socket</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/io/ChannelEndPoint.html#getSocket--">getSocket</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>java.lang.Object</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/io/ChannelEndPoint.html#getTransport--">getTransport</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/io/ChannelEndPoint.html#isInputShutdown--">isInputShutdown</a></span>()</code>
<div class="block">Test if the input is shutdown.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/io/ChannelEndPoint.html#isOpen--">isOpen</a></span>()</code>
<div class="block">This abstract method should be called to check if idle timeouts
should still be checked.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/io/ChannelEndPoint.html#isOptimizedForDirectBuffers--">isOptimizedForDirectBuffers</a></span>()</code>
<div class="block">Is the endpoint optimized for DirectBuffer usage</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/io/ChannelEndPoint.html#isOutputShutdown--">isOutputShutdown</a></span>()</code>
<div class="block">Test if output is shutdown.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/io/ChannelEndPoint.html#needsFillInterest--">needsFillInterest</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/io/ChannelEndPoint.html#onIncompleteFlush--">onIncompleteFlush</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/io/ChannelEndPoint.html#shutdownInput--">shutdownInput</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/io/ChannelEndPoint.html#shutdownOutput--">shutdownOutput</a></span>()</code>
<div class="block">Shutdown the output.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.eclipse.jetty.io.AbstractEndPoint">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.eclipse.jetty.io.<a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html" title="class in org.eclipse.jetty.io">AbstractEndPoint</a></h3>
<code><a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html#close-java.lang.Throwable-">close</a>, <a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html#fillInterested-org.eclipse.jetty.util.Callback-">fillInterested</a>, <a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html#getConnection--">getConnection</a>, <a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html#getCreatedTimeStamp--">getCreatedTimeStamp</a>, <a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html#getFillInterest--">getFillInterest</a>, <a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html#getLocalAddress--">getLocalAddress</a>, <a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html#getRemoteAddress--">getRemoteAddress</a>, <a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html#getWriteFlusher--">getWriteFlusher</a>, <a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html#isFillInterested--">isFillInterested</a>, <a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html#onIdleExpired-java.util.concurrent.TimeoutException-">onIdleExpired</a>, <a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html#onOpen--">onOpen</a>, <a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html#setConnection-org.eclipse.jetty.io.Connection-">setConnection</a>, <a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html#toString--">toString</a>, <a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html#tryFillInterested-org.eclipse.jetty.util.Callback-">tryFillInterested</a>, <a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html#upgrade-org.eclipse.jetty.io.Connection-">upgrade</a>, <a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html#write-org.eclipse.jetty.util.Callback-java.nio.ByteBuffer...-">write</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.eclipse.jetty.io.IdleTimeout">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.eclipse.jetty.io.<a href="../../../../org/eclipse/jetty/io/IdleTimeout.html" title="class in org.eclipse.jetty.io">IdleTimeout</a></h3>
<code><a href="../../../../org/eclipse/jetty/io/IdleTimeout.html#checkIdleTimeout--">checkIdleTimeout</a>, <a href="../../../../org/eclipse/jetty/io/IdleTimeout.html#getIdleFor--">getIdleFor</a>, <a href="../../../../org/eclipse/jetty/io/IdleTimeout.html#getIdleTimeout--">getIdleTimeout</a>, <a href="../../../../org/eclipse/jetty/io/IdleTimeout.html#getIdleTimestamp--">getIdleTimestamp</a>, <a href="../../../../org/eclipse/jetty/io/IdleTimeout.html#getScheduler--">getScheduler</a>, <a href="../../../../org/eclipse/jetty/io/IdleTimeout.html#notIdle--">notIdle</a>, <a href="../../../../org/eclipse/jetty/io/IdleTimeout.html#onClose--">onClose</a>, <a href="../../../../org/eclipse/jetty/io/IdleTimeout.html#setIdleTimeout-long-">setIdleTimeout</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;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 name="methods.inherited.from.class.org.eclipse.jetty.io.EndPoint">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.eclipse.jetty.io.<a href="../../../../org/eclipse/jetty/io/EndPoint.html" title="interface in org.eclipse.jetty.io">EndPoint</a></h3>
<code><a href="../../../../org/eclipse/jetty/io/EndPoint.html#getIdleTimeout--">getIdleTimeout</a>, <a href="../../../../org/eclipse/jetty/io/EndPoint.html#onClose--">onClose</a>, <a href="../../../../org/eclipse/jetty/io/EndPoint.html#setIdleTimeout-long-">setIdleTimeout</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="ChannelEndPoint-org.eclipse.jetty.util.thread.Scheduler-java.nio.channels.SocketChannel-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ChannelEndPoint</h4>
<pre>public&nbsp;ChannelEndPoint(<a href="../../../../org/eclipse/jetty/util/thread/Scheduler.html" title="interface in org.eclipse.jetty.util.thread">Scheduler</a>&nbsp;scheduler,
java.nio.channels.SocketChannel&nbsp;channel)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="isOptimizedForDirectBuffers--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isOptimizedForDirectBuffers</h4>
<pre>public&nbsp;boolean&nbsp;isOptimizedForDirectBuffers()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/eclipse/jetty/io/EndPoint.html#isOptimizedForDirectBuffers--">EndPoint</a></code></span></div>
<div class="block">Is the endpoint optimized for DirectBuffer usage</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/eclipse/jetty/io/EndPoint.html#isOptimizedForDirectBuffers--">isOptimizedForDirectBuffers</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/eclipse/jetty/io/EndPoint.html" title="interface in org.eclipse.jetty.io">EndPoint</a></code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html#isOptimizedForDirectBuffers--">isOptimizedForDirectBuffers</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html" title="class in org.eclipse.jetty.io">AbstractEndPoint</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>True if direct buffers can be used optimally.</dd>
</dl>
</li>
</ul>
<a name="isOpen--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isOpen</h4>
<pre>public&nbsp;boolean&nbsp;isOpen()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../org/eclipse/jetty/io/IdleTimeout.html#isOpen--">IdleTimeout</a></code></span></div>
<div class="block">This abstract method should be called to check if idle timeouts
should still be checked.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/eclipse/jetty/io/EndPoint.html#isOpen--">isOpen</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/eclipse/jetty/io/EndPoint.html" title="interface in org.eclipse.jetty.io">EndPoint</a></code></dd>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/eclipse/jetty/io/IdleTimeout.html#isOpen--">isOpen</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/eclipse/jetty/io/IdleTimeout.html" title="class in org.eclipse.jetty.io">IdleTimeout</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>True if the entity monitored should still be checked for idle timeouts</dd>
</dl>
</li>
</ul>
<a name="shutdownInput--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shutdownInput</h4>
<pre>protected&nbsp;void&nbsp;shutdownInput()</pre>
</li>
</ul>
<a name="shutdownOutput--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shutdownOutput</h4>
<pre>public&nbsp;void&nbsp;shutdownOutput()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/eclipse/jetty/io/EndPoint.html#shutdownOutput--">EndPoint</a></code></span></div>
<div class="block">Shutdown the output.
<p>This call indicates that no more data will be sent on this endpoint that
that the remote end should read an EOF once all previously sent data has been
consumed. Shutdown may be done either at the TCP/IP level, as a protocol exchange (Eg
TLS close handshake) or both.
<p>
If the endpoint has <a href="../../../../org/eclipse/jetty/io/EndPoint.html#isInputShutdown--"><code>EndPoint.isInputShutdown()</code></a> true, then this call has the same effect
as <a href="../../../../org/eclipse/jetty/io/EndPoint.html#close--"><code>EndPoint.close()</code></a>.</div>
</li>
</ul>
<a name="isOutputShutdown--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isOutputShutdown</h4>
<pre>public&nbsp;boolean&nbsp;isOutputShutdown()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/eclipse/jetty/io/EndPoint.html#isOutputShutdown--">EndPoint</a></code></span></div>
<div class="block">Test if output is shutdown.
The output is shutdown by a call to <a href="../../../../org/eclipse/jetty/io/EndPoint.html#shutdownOutput--"><code>EndPoint.shutdownOutput()</code></a>
or <a href="../../../../org/eclipse/jetty/io/EndPoint.html#close--"><code>EndPoint.close()</code></a>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the output is shutdown or the endpoint is closed.</dd>
</dl>
</li>
</ul>
<a name="isInputShutdown--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isInputShutdown</h4>
<pre>public&nbsp;boolean&nbsp;isInputShutdown()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/eclipse/jetty/io/EndPoint.html#isInputShutdown--">EndPoint</a></code></span></div>
<div class="block">Test if the input is shutdown.
The input is shutdown if an EOF has been read while doing
a <a href="../../../../org/eclipse/jetty/io/EndPoint.html#fill-java.nio.ByteBuffer-"><code>EndPoint.fill(ByteBuffer)</code></a>. Once the input is shutdown, all calls to
<a href="../../../../org/eclipse/jetty/io/EndPoint.html#fill-java.nio.ByteBuffer-"><code>EndPoint.fill(ByteBuffer)</code></a> will return -1, until such time as the
end point is close, when they will return <a href="../../../../org/eclipse/jetty/io/EofException.html" title="class in org.eclipse.jetty.io"><code>EofException</code></a>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>True if the input is shutdown or the endpoint is closed.</dd>
</dl>
</li>
</ul>
<a name="close--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>close</h4>
<pre>public&nbsp;void&nbsp;close()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/eclipse/jetty/io/EndPoint.html#close--">EndPoint</a></code></span></div>
<div class="block">Close any backing stream associated with the endpoint</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>close</code>&nbsp;in interface&nbsp;<code>java.io.Closeable</code></dd>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>close</code>&nbsp;in interface&nbsp;<code>java.lang.AutoCloseable</code></dd>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/eclipse/jetty/io/EndPoint.html#close--">close</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/eclipse/jetty/io/EndPoint.html" title="interface in org.eclipse.jetty.io">EndPoint</a></code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html#close--">close</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html" title="class in org.eclipse.jetty.io">AbstractEndPoint</a></code></dd>
</dl>
</li>
</ul>
<a name="fill-java.nio.ByteBuffer-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fill</h4>
<pre>public&nbsp;int&nbsp;fill(java.nio.ByteBuffer&nbsp;buffer)
throws java.io.IOException</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/eclipse/jetty/io/EndPoint.html#fill-java.nio.ByteBuffer-">EndPoint</a></code></span></div>
<div class="block">Fill the passed buffer with data from this endpoint. The bytes are appended to any
data already in the buffer by writing from the buffers limit up to it's capacity.
The limit is updated to include the filled bytes.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>buffer</code> - The buffer to fill. The position and limit are modified during the fill. After the
operation, the position is unchanged and the limit is increased to reflect the new data filled.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>an <code>int</code> value indicating the number of bytes
filled or -1 if EOF is read or the input is shutdown.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.io.IOException</code> - if the endpoint is closed.</dd>
</dl>
</li>
</ul>
<a name="flush-java.nio.ByteBuffer...-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flush</h4>
<pre>public&nbsp;boolean&nbsp;flush(java.nio.ByteBuffer...&nbsp;buffers)
throws java.io.IOException</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/eclipse/jetty/io/EndPoint.html#flush-java.nio.ByteBuffer...-">EndPoint</a></code></span></div>
<div class="block">Flush data from the passed header/buffer to this endpoint. As many bytes as can be consumed
are taken from the header/buffer position up until the buffer limit. The header/buffers position
is updated to indicate how many bytes have been consumed.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>buffers</code> - the buffers to flush</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>True IFF all the buffers have been consumed and the endpoint has flushed the data to its
destination (ie is not buffering any data).</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.io.IOException</code> - If the endpoint is closed or output is shutdown.</dd>
</dl>
</li>
</ul>
<a name="getChannel--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getChannel</h4>
<pre>public&nbsp;java.nio.channels.ByteChannel&nbsp;getChannel()</pre>
</li>
</ul>
<a name="getTransport--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTransport</h4>
<pre>public&nbsp;java.lang.Object&nbsp;getTransport()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The underlying transport object (socket, channel, etc.)</dd>
</dl>
</li>
</ul>
<a name="getSocket--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSocket</h4>
<pre>public&nbsp;java.net.Socket&nbsp;getSocket()</pre>
</li>
</ul>
<a name="onIncompleteFlush--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onIncompleteFlush</h4>
<pre>protected&nbsp;void&nbsp;onIncompleteFlush()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html#onIncompleteFlush--">onIncompleteFlush</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html" title="class in org.eclipse.jetty.io">AbstractEndPoint</a></code></dd>
</dl>
</li>
</ul>
<a name="needsFillInterest--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>needsFillInterest</h4>
<pre>protected&nbsp;void&nbsp;needsFillInterest()
throws java.io.IOException</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html#needsFillInterest--">needsFillInterest</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/eclipse/jetty/io/AbstractEndPoint.html" title="class in org.eclipse.jetty.io">AbstractEndPoint</a></code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.io.IOException</code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ChannelEndPoint.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">
<li><a href="../../../../org/eclipse/jetty/io/ByteBufferPool.Lease.html" title="class in org.eclipse.jetty.io"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/eclipse/jetty/io/ClientConnectionFactory.html" title="interface in org.eclipse.jetty.io"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/eclipse/jetty/io/ChannelEndPoint.html" target="_top">Frames</a></li>
<li><a href="ChannelEndPoint.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;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>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 1995&#x2013;2018 <a href="http://webtide.com">Webtide</a>. All rights reserved.</small></p>
</body>
</html>