Class HttpConnectionOverFCGI
- java.lang.Object
-
- org.eclipse.jetty.io.AbstractConnection
-
- org.eclipse.jetty.fcgi.client.http.HttpConnectionOverFCGI
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,Connection,Connection,Attachable
public class HttpConnectionOverFCGI extends AbstractConnection implements Connection, Attachable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Connection
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo
-
-
Constructor Summary
Constructors Constructor Description HttpConnectionOverFCGI(EndPoint endPoint, HttpDestination destination, Promise<Connection> promise, boolean multiplexed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidabort(java.lang.Throwable failure)protected HttpChannelOverFCGIacquireHttpChannel(int id, Request request)voidclose()protected voidclose(java.lang.Throwable failure)protected booleancloseByHTTP(HttpFields fields)java.lang.ObjectgetAttachment()protected FlushergetFlusher()HttpDestinationgetHttpDestination()booleanisClosed()protected HttpChannelOverFCGInewHttpChannel(Request request)voidonFillable()booleanonIdleExpired()voidonOpen()protected voidrelease(HttpChannelOverFCGI channel)voidsend(Request request, Response.CompleteListener listener)protected SendFailuresend(HttpExchange exchange)voidsetAttachment(java.lang.Object obj)java.lang.StringtoConnectionString()-
Methods inherited from class org.eclipse.jetty.io.AbstractConnection
addListener, failedCallback, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, isFillInterested, onClose, onFillInterestedFailed, onReadTimeout, removeListener, setInputBufferSize, toString, tryFillInterested, tryFillInterested
-
-
-
-
Constructor Detail
-
HttpConnectionOverFCGI
public HttpConnectionOverFCGI(EndPoint endPoint, HttpDestination destination, Promise<Connection> promise, boolean multiplexed)
-
-
Method Detail
-
getHttpDestination
public HttpDestination getHttpDestination()
-
getFlusher
protected Flusher getFlusher()
-
send
public void send(Request request, Response.CompleteListener listener)
- Specified by:
sendin interfaceConnection
-
send
protected SendFailure send(HttpExchange exchange)
-
onOpen
public void onOpen()
- Specified by:
onOpenin interfaceConnection- Overrides:
onOpenin classAbstractConnection
-
onFillable
public void onFillable()
- Specified by:
onFillablein classAbstractConnection
-
onIdleExpired
public boolean onIdleExpired()
- Specified by:
onIdleExpiredin interfaceConnection- Overrides:
onIdleExpiredin classAbstractConnection
-
release
protected void release(HttpChannelOverFCGI channel)
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceConnection- Specified by:
closein interfaceConnection- Overrides:
closein classAbstractConnection
-
close
protected void close(java.lang.Throwable failure)
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin interfaceConnection
-
setAttachment
public void setAttachment(java.lang.Object obj)
- Specified by:
setAttachmentin interfaceAttachable
-
getAttachment
public java.lang.Object getAttachment()
- Specified by:
getAttachmentin interfaceAttachable
-
closeByHTTP
protected boolean closeByHTTP(HttpFields fields)
-
abort
protected void abort(java.lang.Throwable failure)
-
acquireHttpChannel
protected HttpChannelOverFCGI acquireHttpChannel(int id, Request request)
-
newHttpChannel
protected HttpChannelOverFCGI newHttpChannel(Request request)
-
toConnectionString
public java.lang.String toConnectionString()
- Overrides:
toConnectionStringin classAbstractConnection
-
-