Package org.eclipse.jetty.fcgi.server
Class ServerFCGIConnection
- java.lang.Object
-
- org.eclipse.jetty.io.AbstractConnection
-
- org.eclipse.jetty.fcgi.server.ServerFCGIConnection
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,Connection
public class ServerFCGIConnection extends AbstractConnection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
ServerFCGIConnection.ServerListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Connection
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.ConcurrentMap<java.lang.Integer,HttpChannelOverFCGI>
channels
private HttpConfiguration
configuration
private Connector
connector
private Flusher
flusher
private static Logger
LOG
private ServerParser
parser
private boolean
sendStatus200
-
Constructor Summary
Constructors Constructor Description ServerFCGIConnection(Connector connector, EndPoint endPoint, HttpConfiguration configuration, boolean sendStatus200)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onFillable()
Callback method invoked when the endpoint is ready to be read.void
onOpen()
Callback method invoked when this connection is opened.protected boolean
onReadTimeout(java.lang.Throwable timeout)
Callback method invoked when the endpoint failed to be ready to be read after a timeoutprivate void
parse(java.nio.ByteBuffer buffer)
private void
shutdown()
-
Methods inherited from class org.eclipse.jetty.io.AbstractConnection
addListener, close, failedCallback, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, isFillInterested, onClose, onFillInterestedFailed, onIdleExpired, removeListener, setInputBufferSize, toConnectionString, toString, tryFillInterested, tryFillInterested
-
-
-
-
Field Detail
-
LOG
private static final Logger LOG
-
channels
private final java.util.concurrent.ConcurrentMap<java.lang.Integer,HttpChannelOverFCGI> channels
-
connector
private final Connector connector
-
sendStatus200
private final boolean sendStatus200
-
flusher
private final Flusher flusher
-
configuration
private final HttpConfiguration configuration
-
parser
private final ServerParser parser
-
-
Constructor Detail
-
ServerFCGIConnection
public ServerFCGIConnection(Connector connector, EndPoint endPoint, HttpConfiguration configuration, boolean sendStatus200)
-
-
Method Detail
-
onOpen
public void onOpen()
Description copied from interface:Connection
Callback method invoked when this connection is opened.
Creators of the connection implementation are responsible for calling this method.
- Specified by:
onOpen
in interfaceConnection
- Overrides:
onOpen
in classAbstractConnection
-
onFillable
public void onFillable()
Description copied from class:AbstractConnection
Callback method invoked when the endpoint is ready to be read.
- Specified by:
onFillable
in classAbstractConnection
- See Also:
AbstractConnection.fillInterested()
-
onReadTimeout
protected boolean onReadTimeout(java.lang.Throwable timeout)
Description copied from class:AbstractConnection
Callback method invoked when the endpoint failed to be ready to be read after a timeout
- Overrides:
onReadTimeout
in classAbstractConnection
- Parameters:
timeout
- the cause of the read timeout- Returns:
- true to signal that the endpoint must be closed, false to keep the endpoint open
-
parse
private void parse(java.nio.ByteBuffer buffer)
-
shutdown
private void shutdown()
-
-