| |
|
| java.lang.Object org.apache.jk.core.MsgContext
MsgContext | public class MsgContext (Code) | | author: Henri Gomez [hgomez@apache.org] author: Dan Milstein [danmil@shore.net] author: Keith Wannamaker [Keith@Wannamaker.org] author: Kevin Seguin author: Costin Manolache |
TIMER_POST_REQUEST | final public static int TIMER_POST_REQUEST(Code) | | |
TIMER_PRE_REQUEST | final public static int TIMER_PRE_REQUEST(Code) | | |
TIMER_RECEIVED | final public static int TIMER_RECEIVED(Code) | | |
execute | public int execute() throws IOException(Code) | | Invoke a java hook. The xEnv is the representation of the current execution
environment ( the jni_env_t * )
|
getBuffer | public byte[] getBuffer(int id)(Code) | | Each context contains a number of byte[] buffers used for communication.
The C side will contain a char * equivalent - both buffers are long-lived
and recycled.
This will be called at init time. A long-lived global reference to the byte[]
will be stored in the C context.
|
getJniContext | public long getJniContext()(Code) | | |
getJniEnv | public long getJniEnv()(Code) | | |
getLong | final public long getLong(int i)(Code) | | |
getMsg | final public Msg getMsg(int i)(Code) | | The context may store a number of messages ( buffers + marshalling )
|
getStatus | final public int getStatus()(Code) | | |
getType | final public int getType()(Code) | | The id of the chain
|
setJniContext | public void setJniContext(long cContext)(Code) | | The long-lived JNI context associated with this java context.
The 2 share pointers to buffers and cache data to avoid expensive
jni calls.
|
setJniEnv | public void setJniEnv(long xEnvP)(Code) | | Store native execution context data when this handler is called
from JNI. This will change on each call, represent temproary
call data.
|
setLong | final public void setLong(int i, long l)(Code) | | |
setMsg | final public void setMsg(int i, Msg msg)(Code) | | |
setRequest | final public void setRequest(Object req)(Code) | | The high level request object associated with this context
|
setStatus | final public void setStatus(int s)(Code) | | |
setType | final public void setType(int i)(Code) | | |
|
|
|