org.apache.jk.core

Interface JkChannel

public interface JkChannel

A Channel represents a connection point to the outside world.

Author: Bill Barker

Method Summary
MsgContextcreateMsgContext()
Create a new request endpoint.
intflush(Msg msg, MsgContext ep)
Flush the data to the client.
StringgetChannelName()
Return the identifying name of this Channel.
intinvoke(Msg msg, MsgContext ep)
Invoke the request chain.
booleanisSameAddress(MsgContext ep)
Confirm that a shutdown request was recieved form us.
intreceive(Msg msg, MsgContext ep)
Recieve a message from the client.
voidregisterRequest(Request req, MsgContext ep, int count)
Register a new Request in the Request pool.
intsend(Msg msg, MsgContext ep)
Send a message back to the client.

Method Detail

createMsgContext

public MsgContext createMsgContext()
Create a new request endpoint.

flush

public int flush(Msg msg, MsgContext ep)
Flush the data to the client.

getChannelName

public String getChannelName()
Return the identifying name of this Channel.

invoke

public int invoke(Msg msg, MsgContext ep)
Invoke the request chain.

isSameAddress

public boolean isSameAddress(MsgContext ep)
Confirm that a shutdown request was recieved form us.

receive

public int receive(Msg msg, MsgContext ep)
Recieve a message from the client.

Parameters: msg The place to recieve the data into. ep The connection point for this request.

registerRequest

public void registerRequest(Request req, MsgContext ep, int count)
Register a new Request in the Request pool.

send

public int send(Msg msg, MsgContext ep)
Send a message back to the client.

Parameters: msg The message to send. ep The connection point for this request.

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.