Package org.restlet.ext.nio.internal.way
Class ServerOutboundWay
- java.lang.Object
-
- org.restlet.ext.nio.internal.way.Way
-
- org.restlet.ext.nio.internal.way.OutboundWay
-
- org.restlet.ext.nio.internal.way.ServerOutboundWay
-
- All Implemented Interfaces:
BufferProcessor,CompletionListener,SelectionListener
- Direct Known Subclasses:
HttpServerOutboundWay
@Deprecated public abstract class ServerOutboundWay extends OutboundWay
Deprecated.Will be removed to favor lower-level network extensions allowing more control at the Restlet API level.Server-side outbound way.
-
-
Constructor Summary
Constructors Constructor Description ServerOutboundWay(Connection<Server> connection, int bufferSize)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidaddHeaders(Series<Header> headers)Deprecated.Add all the headers, including the general, the message specific and the entity headers.protected voidaddResponseHeaders(Series<Header> headers)Deprecated.Adds the response headers.ResponsegetActualMessage()Deprecated.Returns the actual message, request or response.Connection<Server>getConnection()Deprecated.Returns the parent connection.voidonMessageCompleted(boolean endDetected)Deprecated.Callback method invoked when the current message has been completely received or sent.protected voidwriteStartLine()Deprecated.Writes the start line of the current outbound message.-
Methods inherited from class org.restlet.ext.nio.internal.way.OutboundWay
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, writeLine
-
Methods inherited from class org.restlet.ext.nio.internal.way.Way
canLoop, 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, toString
-
-
-
-
Constructor Detail
-
ServerOutboundWay
public ServerOutboundWay(Connection<Server> connection, int bufferSize)
Deprecated.Constructor.- Parameters:
connection- The parent connection.bufferSize- The byte buffer size.
-
-
Method Detail
-
addHeaders
protected void addHeaders(Series<Header> headers)
Deprecated.Description copied from class:OutboundWayAdd all the headers, including the general, the message specific and the entity headers.- Specified by:
addHeadersin classOutboundWay- Parameters:
headers- The headers to update.
-
addResponseHeaders
protected void addResponseHeaders(Series<Header> headers)
Deprecated.Adds the response headers.- Parameters:
headers- The headers series to update.
-
getActualMessage
public Response getActualMessage()
Deprecated.Description copied from class:WayReturns the actual message, request or response.- Specified by:
getActualMessagein classWay- Returns:
- The actual message, request or response.
-
getConnection
public Connection<Server> getConnection()
Deprecated.Description copied from class:WayReturns the parent connection.- Overrides:
getConnectionin classWay- Returns:
- The parent connection.
-
onMessageCompleted
public void onMessageCompleted(boolean endDetected) throws java.io.IOExceptionDeprecated.Description copied from class:WayCallback method invoked when the current message has been completely received or sent.- Specified by:
onMessageCompletedin interfaceCompletionListener- Overrides:
onMessageCompletedin classOutboundWay- Parameters:
endDetected- Indicates if the end of the socket channel was detected.- Throws:
java.io.IOException
-
writeStartLine
protected void writeStartLine() throws java.io.IOExceptionDeprecated.Description copied from class:OutboundWayWrites the start line of the current outbound message.- Specified by:
writeStartLinein classOutboundWay- Throws:
java.io.IOException
-
-