public class SipServerOutboundWay extends ServerOutboundWay
Constructor and Description |
---|
SipServerOutboundWay(Connection<Server> connection,
int bufferSize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addResponseHeaders(Series<Header> headers)
Adds the response headers.
|
protected void |
handle(Response response)
Add a message to the outbound way.
|
boolean |
isEmpty()
Indicates if the way is empty.
|
void |
updateState()
Updates the way IO and message states.
|
addHeaders, getActualMessage, getConnection, onMessageCompleted, writeStartLine
addEntityHeaders, addGeneralHeaders, clear, flushBuffer, getEntityChannel, getEntityChannelType, getEntityFileChannel, getEntityInterestOps, getEntitySelectableChannel, getEntitySelectionKey, getHeaderIndex, getInterestOperations, getVersion, hasIoInterest, onDrain, onError, onFill, onFillEof, onHeadersCompleted, onPostProcessing, onTimeOut, processIoBuffer, setEntityChannel, setEntityChannelType, setEntitySelectionKey, setHeaderIndex, shouldBeChunked, writeLine
canLoop, clearLineBuilder, couldDrain, couldFill, getBuffer, getHeaders, getHelper, getIoState, getLineBuilder, getLineBuilderState, getLoadScore, getLogger, getMessage, getMessageState, getRegistration, isAvailable, onClosed, onSelected, postProcess, preProcess, setHeaders, setIoState, setLineBuilderState, setMessage, setMessageState, setRegistration, toString
public SipServerOutboundWay(Connection<Server> connection, int bufferSize)
connection
- The parent connection.bufferSize
- The byte buffer size.protected void addResponseHeaders(Series<Header> headers)
ServerOutboundWay
addResponseHeaders
in class ServerOutboundWay
headers
- The headers series to update.protected void handle(Response response)
OutboundWay
handle
in class OutboundWay
public boolean isEmpty()
Way
public void updateState()
Way
updateState
in class OutboundWay
Copyright © 2005–2014. All rights reserved.