public abstract class ServerOutboundWay extends OutboundWay
| Constructor and Description |
|---|
ServerOutboundWay(Connection<Server> connection,
int bufferSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addHeaders(Series<Header> headers)
Add all the headers, including the general, the message specific and the
entity headers.
|
protected void |
addResponseHeaders(Series<Header> headers)
Adds the response headers.
|
Response |
getActualMessage()
Returns the actual message, request or response.
|
Connection<Server> |
getConnection()
Returns the parent connection.
|
void |
onMessageCompleted(boolean endDetected)
Callback method invoked when the current message has been completely
received or sent.
|
protected void |
writeStartLine()
Writes the start line of the current outbound message.
|
addEntityHeaders, addGeneralHeaders, clear, flushBuffer, getEntityChannel, getEntityChannelType, getEntityFileChannel, getEntityInterestOps, getEntitySelectableChannel, getEntitySelectionKey, getHeaderIndex, getInterestOperations, getVersion, handle, hasIoInterest, onDrain, onError, onFill, onFillEof, onHeadersCompleted, onPostProcessing, onTimeOut, processIoBuffer, setEntityChannel, setEntityChannelType, setEntitySelectionKey, setHeaderIndex, shouldBeChunked, updateState, writeLinecanLoop, clearLineBuilder, couldDrain, couldFill, getBuffer, getHeaders, getHelper, getIoState, getLineBuilder, getLineBuilderState, getLoadScore, getLogger, getMessage, getMessageState, getRegistration, isAvailable, isEmpty, onClosed, onSelected, postProcess, preProcess, setHeaders, setIoState, setLineBuilderState, setMessage, setMessageState, setRegistration, toStringpublic ServerOutboundWay(Connection<Server> connection, int bufferSize)
connection - The parent connection.bufferSize - The byte buffer size.protected void addHeaders(Series<Header> headers)
OutboundWayaddHeaders in class OutboundWayheaders - The headers to update.protected void addResponseHeaders(Series<Header> headers)
headers - The headers series to update.public Response getActualMessage()
WaygetActualMessage in class Waypublic Connection<Server> getConnection()
WaygetConnection in class Waypublic void onMessageCompleted(boolean endDetected)
throws IOException
WayonMessageCompleted in interface CompletionListeneronMessageCompleted in class OutboundWayendDetected - Indicates if the end of the socket channel was detected.IOExceptionprotected void writeStartLine()
throws IOException
OutboundWaywriteStartLine in class OutboundWayIOExceptionCopyright © 2005–2016. All rights reserved.