|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jk.core.JkHandler org.apache.jk.apr.AprImpl
public class AprImpl
Implements the interface with the APR library. This is for internal-use only. The goal is to use 'natural' mappings for user code - for example java.net.Socket for unix-domain sockets, etc.
Field Summary |
---|
Fields inherited from class org.apache.jk.core.JkHandler |
---|
domain, ERROR, HANDLE_FLUSH, HANDLE_RECEIVE_PACKET, HANDLE_SEND_PACKET, HANDLE_THREAD_END, id, LAST, mserver, name, next, nextName, OK, oname, properties, wEnv |
Constructor Summary | |
---|---|
AprImpl()
|
Method Summary | |
---|---|
void |
addJkHandler(java.lang.String type,
JkHandler cb)
Add a Handler for jni callbacks. |
static java.lang.Object |
createJavaContext(java.lang.String type,
long cContext)
|
long |
createJkHandler(long xEnv,
java.lang.String compName)
|
static byte[] |
getBuffer(java.lang.Object ctx,
int id)
Return a buffer associated with the ctx. |
long |
getJkEnv()
|
long |
getJkHandler(long xEnv,
java.lang.String compName)
Get a native component |
void |
init()
Should register the request types it can handle, same style as apache2. |
int |
initialize()
Initialize APR |
boolean |
isLoaded()
|
int |
jkDestroy(long xEnv,
long componentP)
|
java.lang.String |
jkGetAttribute(long xEnv,
long componentP,
java.lang.String name)
|
int |
jkInit(long xEnv,
long componentP)
|
static int |
jkInvoke(long xEnv,
long componentP,
long endpointP,
int code,
byte[] data,
int off,
int len,
int raw)
Send the packet to the C side. |
void |
jkRecycle(long xEnv,
long endpointP)
Recycle an endpoint after use. |
int |
jkSetAttribute(long xEnv,
long componentP,
java.lang.String name,
java.lang.String val)
|
static int |
jniInvoke(long jContext,
java.lang.Object ctx)
|
static void |
jniMode()
|
void |
loadNative()
This method of loading the libs doesn't require setting LD_LIBRARY_PATH. |
void |
loadNative(java.lang.String libPath)
|
void |
releaseJkEnv(long xEnv)
Clean the temp pool, put back the env in the pool |
void |
setAprHome(java.lang.String s)
|
void |
setBaseDir(java.lang.String s)
Native libraries are located based on base dir. |
static void |
setErr(java.lang.String filename)
Sets the System.err stream |
void |
setJniModeSo(java.lang.String jniModeSo)
Name of the so used in inprocess mode |
void |
setNativeSo(java.lang.String nativeSo)
name of the so used by java. |
static void |
setOut(java.lang.String filename)
Sets the System.out stream |
void |
setSoExt(java.lang.String s)
|
int |
terminate()
|
Methods inherited from class org.apache.jk.core.JkHandler |
---|
addHandlerCallback, createMsgContext, createMsgContext, destroy, getDomain, getId, getName, getNext, getObjectName, getProperty, handleNotification, invoke, pause, postDeregister, postRegister, preDeregister, preRegister, resume, setId, setName, setNext, setNext, setProperty, setWorkerEnv |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AprImpl()
Method Detail |
---|
public void setBaseDir(java.lang.String s)
public void setSoExt(java.lang.String s)
public void setAprHome(java.lang.String s)
public void addJkHandler(java.lang.String type, JkHandler cb)
public void setJniModeSo(java.lang.String jniModeSo)
public void setNativeSo(java.lang.String nativeSo)
public static void setOut(java.lang.String filename)
public static void setErr(java.lang.String filename)
public int initialize()
public int terminate()
public long getJkEnv()
public void releaseJkEnv(long xEnv)
public long getJkHandler(long xEnv, java.lang.String compName)
public long createJkHandler(long xEnv, java.lang.String compName)
public int jkSetAttribute(long xEnv, long componentP, java.lang.String name, java.lang.String val)
public java.lang.String jkGetAttribute(long xEnv, long componentP, java.lang.String name)
public int jkInit(long xEnv, long componentP)
public int jkDestroy(long xEnv, long componentP)
public static int jkInvoke(long xEnv, long componentP, long endpointP, int code, byte[] data, int off, int len, int raw)
public void jkRecycle(long xEnv, long endpointP)
public static java.lang.Object createJavaContext(java.lang.String type, long cContext)
public static byte[] getBuffer(java.lang.Object ctx, int id)
public static int jniInvoke(long jContext, java.lang.Object ctx)
public void init() throws java.io.IOException
JkHandler
init
in class JkHandler
java.io.IOException
public boolean isLoaded()
public static void jniMode()
public void loadNative() throws java.lang.Throwable
java.lang.Throwable
public void loadNative(java.lang.String libPath)
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |