|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.engine.connector.Way
org.restlet.engine.connector.OutboundWay
org.restlet.engine.connector.ServerOutboundWay
public abstract class ServerOutboundWay
Server-side outbound way.
Constructor Summary | |
---|---|
ServerOutboundWay(Connection<Server> connection,
int bufferSize)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.restlet.engine.connector.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.engine.connector.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServerOutboundWay(Connection<Server> connection, int bufferSize)
connection
- The parent connection.bufferSize
- The byte buffer size.Method Detail |
---|
protected void addHeaders(Series<Header> headers)
OutboundWay
addHeaders
in class OutboundWay
headers
- The headers to update.protected void addResponseHeaders(Series<Header> headers)
headers
- The headers series to update.public Response getActualMessage()
Way
getActualMessage
in class Way
public Connection<Server> getConnection()
Way
getConnection
in class Way
public void onMessageCompleted(boolean endDetected) throws IOException
Way
onMessageCompleted
in interface CompletionListener
onMessageCompleted
in class OutboundWay
endDetected
- Indicates if the end of the socket channel was detected.
IOException
protected void writeStartLine() throws IOException
OutboundWay
writeStartLine
in class OutboundWay
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |