java.io.Closeable
, java.lang.AutoCloseable
, Connection
, org.eclipse.jetty.io.Connection.UpgradeFrom
, org.eclipse.jetty.util.thread.Sweeper.Sweepable
public class HttpConnectionOverHTTP extends org.eclipse.jetty.io.AbstractConnection implements Connection, org.eclipse.jetty.io.Connection.UpgradeFrom, org.eclipse.jetty.util.thread.Sweeper.Sweepable
Constructor | Description |
---|---|
HttpConnectionOverHTTP(org.eclipse.jetty.io.EndPoint endPoint,
HttpDestination destination,
org.eclipse.jetty.util.Promise<Connection> promise) |
Modifier and Type | Method | Description |
---|---|---|
protected boolean |
abort(java.lang.Throwable failure) |
|
protected void |
addBytesIn(long bytesIn) |
|
protected void |
addBytesOut(long bytesOut) |
|
void |
close() |
|
protected void |
close(java.lang.Throwable failure) |
|
long |
getBytesIn() |
|
long |
getBytesOut() |
|
HttpChannelOverHTTP |
getHttpChannel() |
|
HttpDestinationOverHTTP |
getHttpDestination() |
|
long |
getMessagesIn() |
|
long |
getMessagesOut() |
|
boolean |
isClosed() |
|
protected HttpChannelOverHTTP |
newHttpChannel() |
|
void |
onFillable() |
|
boolean |
onIdleExpired() |
|
void |
onOpen() |
|
java.nio.ByteBuffer |
onUpgradeFrom() |
|
void |
release() |
|
void |
remove() |
|
void |
send(Request request,
Response.CompleteListener listener) |
Sends a request with an associated response listener.
|
protected SendFailure |
send(HttpExchange exchange) |
|
boolean |
sweep() |
|
java.lang.String |
toConnectionString() |
addListener, failedCallback, fillInterested, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, isFillInterested, onClose, onFillInterestedFailed, onReadTimeout, removeListener, setInputBufferSize, toString, tryFillInterested, tryFillInterested
public HttpConnectionOverHTTP(org.eclipse.jetty.io.EndPoint endPoint, HttpDestination destination, org.eclipse.jetty.util.Promise<Connection> promise)
protected HttpChannelOverHTTP newHttpChannel()
public HttpChannelOverHTTP getHttpChannel()
public HttpDestinationOverHTTP getHttpDestination()
public long getBytesIn()
getBytesIn
in class org.eclipse.jetty.io.AbstractConnection
protected void addBytesIn(long bytesIn)
public long getBytesOut()
getBytesOut
in class org.eclipse.jetty.io.AbstractConnection
protected void addBytesOut(long bytesOut)
public long getMessagesIn()
getMessagesIn
in class org.eclipse.jetty.io.AbstractConnection
public long getMessagesOut()
getMessagesOut
in class org.eclipse.jetty.io.AbstractConnection
public void send(Request request, Response.CompleteListener listener)
Connection
Request.send(Response.CompleteListener)
will eventually call this method to send the request.
It is exposed to allow applications to send requests via unpooled connections.
send
in interface Connection
request
- the request to sendlistener
- the response listenerprotected SendFailure send(HttpExchange exchange)
public void onOpen()
onOpen
in class org.eclipse.jetty.io.AbstractConnection
public boolean isClosed()
isClosed
in interface Connection
Connection.close()
public boolean onIdleExpired()
onIdleExpired
in class org.eclipse.jetty.io.AbstractConnection
public void onFillable()
onFillable
in class org.eclipse.jetty.io.AbstractConnection
public java.nio.ByteBuffer onUpgradeFrom()
onUpgradeFrom
in interface org.eclipse.jetty.io.Connection.UpgradeFrom
public void release()
public void close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
close
in interface Connection
close
in class org.eclipse.jetty.io.AbstractConnection
protected void close(java.lang.Throwable failure)
protected boolean abort(java.lang.Throwable failure)
public boolean sweep()
sweep
in interface org.eclipse.jetty.util.thread.Sweeper.Sweepable
public void remove()
public java.lang.String toConnectionString()
toConnectionString
in class org.eclipse.jetty.io.AbstractConnection
Copyright © 1995–2018 Webtide. All rights reserved.