public class HttpsServerOutboundWay extends HttpServerOutboundWay
Constructor and Description |
---|
HttpsServerOutboundWay(Connection<Server> connection,
int bufferSize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SslConnection<Server> |
getConnection()
Returns the parent connection.
|
protected boolean |
hasIoInterest()
Indicates if we want to be selected for IO processing when the socket
related socket is prepared.
|
void |
postProcess(int drained)
Does nothing by default.
|
int |
preProcess(int maxDrained,
Object... args)
Does nothing by default.
|
clear, getLoadScore, getMessages, handle, isEmpty, onError, onMessageCompleted, onTimeOut, updateState
addHeaders, addResponseHeaders, getActualMessage, writeStartLine
addEntityHeaders, addGeneralHeaders, flushBuffer, getEntityChannel, getEntityChannelType, getEntityFileChannel, getEntityInterestOps, getEntitySelectableChannel, getEntitySelectionKey, getHeaderIndex, getInterestOperations, getVersion, onDrain, onFill, onFillEof, onHeadersCompleted, onPostProcessing, processIoBuffer, setEntityChannel, setEntityChannelType, setEntitySelectionKey, setHeaderIndex, shouldBeChunked, writeLine
canLoop, clearLineBuilder, couldDrain, couldFill, getBuffer, getHeaders, getHelper, getIoState, getLineBuilder, getLineBuilderState, getLogger, getMessage, getMessageState, getRegistration, isAvailable, onClosed, onSelected, setHeaders, setIoState, setLineBuilderState, setMessage, setMessageState, setRegistration, toString
public HttpsServerOutboundWay(Connection<Server> connection, int bufferSize)
connection
- The parent connection.bufferSize
- The byte buffer size.public SslConnection<Server> getConnection()
Way
getConnection
in class ServerOutboundWay
protected boolean hasIoInterest()
Way
hasIoInterest
in class OutboundWay
public int preProcess(int maxDrained, Object... args) throws IOException
Way
preProcess
in interface BufferProcessor
preProcess
in class Way
maxDrained
- The maximum number of bytes drained by this call or 0 for
unlimited length.args
- The optional arguments to pass back to the callbacks.IOException
public void postProcess(int drained) throws IOException
Way
postProcess
in interface BufferProcessor
postProcess
in class Way
drained
- The number of bytes drained or -1 if the filling source has
ended.IOException
Copyright © 2005–2013. All rights reserved.