public class SipClientInboundWay extends ClientInboundWay
| Constructor and Description |
|---|
SipClientInboundWay(Connection<Client> connection,
int bufferSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyResponseTransportHeaders(Series<Header> headers,
Response response)
Copies headers into a response.
|
protected Response |
createResponse(Status status)
Creates a response object for the given status.
|
protected Status |
createStatus(int code)
Returns the status corresponding to a given status code.
|
SipClientHelper |
getHelper()
Returns the parent connector helper.
|
protected boolean |
hasIoInterest()
Indicates if we want to be selected for IO processing when the socket
related socket is prepared.
|
boolean |
isEmpty()
Indicates if the way is empty.
|
protected void |
onReceived(Response message)
Call back invoked when the message is received.
|
void |
updateState()
Updates the way IO and message states.
|
getActualMessage, getConnection, getInterestOperations, onHeadersCompleted, onMessageCompleted, readStartLineclear, createEntity, fillLine, getBuilderIndex, getEntityRegistration, isLineReadable, onDrain, onError, onFill, onFillEof, onPostProcessing, onTimeOut, processIoBuffer, readHeader, setBuilderIndex, setEntityRegistrationcanLoop, clearLineBuilder, couldDrain, couldFill, getBuffer, getHeaders, getIoState, getLineBuilder, getLineBuilderState, getLoadScore, getLogger, getMessage, getMessageState, getRegistration, isAvailable, onClosed, onSelected, postProcess, preProcess, setHeaders, setIoState, setLineBuilderState, setMessage, setMessageState, setRegistration, toStringpublic SipClientInboundWay(Connection<Client> connection, int bufferSize)
connection - The parent connection.bufferSize - The byte buffer size.IOExceptionprotected void copyResponseTransportHeaders(Series<Header> headers, Response response)
ClientInboundWaycopyResponseTransportHeaders in class ClientInboundWayheaders - The headers to copy.response - The response to update.protected Response createResponse(Status status)
ClientInboundWaycreateResponse in class ClientInboundWaystatus - The response status.protected Status createStatus(int code)
ClientInboundWaycreateStatus in class ClientInboundWaycode - The status code.public SipClientHelper getHelper()
WaygetHelper in class ClientInboundWaypublic boolean isEmpty()
Wayprotected void onReceived(Response message) throws IOException
InboundWayonReceived in class ClientInboundWaymessage - The new message received.IOExceptionprotected boolean hasIoInterest()
WayhasIoInterest in class Waypublic void updateState()
WayupdateState in class InboundWayCopyright © 2005–2015. All rights reserved.