Package org.restlet.ext.nio.internal.way
Class HttpsServerOutboundWay
- java.lang.Object
-
- org.restlet.ext.nio.internal.way.Way
-
- org.restlet.ext.nio.internal.way.OutboundWay
-
- org.restlet.ext.nio.internal.way.ServerOutboundWay
-
- org.restlet.ext.nio.internal.way.HttpServerOutboundWay
-
- org.restlet.ext.nio.internal.way.HttpsServerOutboundWay
-
- All Implemented Interfaces:
BufferProcessor,CompletionListener,SelectionListener
@Deprecated public class HttpsServerOutboundWay extends HttpServerOutboundWay
Deprecated.Will be removed to favor lower-level network extensions allowing more control at the Restlet API level.HTTPS server outbound way.
-
-
Constructor Summary
Constructors Constructor Description HttpsServerOutboundWay(Connection<Server> connection, int bufferSize)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SslConnection<Server>getConnection()Deprecated.Returns the parent connection.protected booleanhasIoInterest()Deprecated.Indicates if we want to be selected for IO processing when the socket related socket is prepared.voidpostProcess(int drained)Deprecated.Does nothing by default.intpreProcess(int maxDrained, java.lang.Object... args)Deprecated.Does nothing by default.-
Methods inherited from class org.restlet.ext.nio.internal.way.HttpServerOutboundWay
clear, getLoadScore, getMessages, handle, isEmpty, onError, onMessageCompleted, onTimeOut, updateState
-
Methods inherited from class org.restlet.ext.nio.internal.way.ServerOutboundWay
addHeaders, addResponseHeaders, getActualMessage, writeStartLine
-
Methods inherited from class org.restlet.ext.nio.internal.way.OutboundWay
addEntityHeaders, addGeneralHeaders, flushBuffer, getEntityChannel, getEntityChannelType, getEntityFileChannel, getEntityInterestOps, getEntitySelectableChannel, getEntitySelectionKey, getHeaderIndex, getInterestOperations, getVersion, onDrain, onFill, onFillEof, onHeadersCompleted, onPostProcessing, processIoBuffer, setEntityChannel, setEntityChannelType, setEntitySelectionKey, setHeaderIndex, shouldBeChunked, writeLine
-
Methods inherited from class org.restlet.ext.nio.internal.way.Way
canLoop, clearLineBuilder, couldDrain, couldFill, getBuffer, getHeaders, getHelper, getIoState, getLineBuilder, getLineBuilderState, getLogger, getMessage, getMessageState, getRegistration, isAvailable, onClosed, onSelected, setHeaders, setIoState, setLineBuilderState, setMessage, setMessageState, setRegistration, toString
-
-
-
-
Constructor Detail
-
HttpsServerOutboundWay
public HttpsServerOutboundWay(Connection<Server> connection, int bufferSize)
Deprecated.Constructor.- Parameters:
connection- The parent connection.bufferSize- The byte buffer size.
-
-
Method Detail
-
getConnection
public SslConnection<Server> getConnection()
Deprecated.Description copied from class:WayReturns the parent connection.- Overrides:
getConnectionin classServerOutboundWay- Returns:
- The parent connection.
-
hasIoInterest
protected boolean hasIoInterest()
Deprecated.Description copied from class:WayIndicates if we want to be selected for IO processing when the socket related socket is prepared.- Overrides:
hasIoInterestin classOutboundWay- Returns:
- True if we want to be selected for IO processing when the socket is ready.
-
postProcess
public void postProcess(int drained) throws java.io.IOExceptionDeprecated.Description copied from class:WayDoes nothing by default.- Specified by:
postProcessin interfaceBufferProcessor- Overrides:
postProcessin classWay- Parameters:
drained- The number of bytes drained or -1 if the filling source has ended.- Throws:
java.io.IOException
-
preProcess
public int preProcess(int maxDrained, java.lang.Object... args) throws java.io.IOExceptionDeprecated.Description copied from class:WayDoes nothing by default.- Specified by:
preProcessin interfaceBufferProcessor- Overrides:
preProcessin classWay- Parameters:
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.- Returns:
- The number of bytes drained or -1 if the filling source has ended.
- Throws:
java.io.IOException
-
-