org.apache.jk.server
public class JkCoyoteHandler extends JkHandler implements ProtocolHandler
Modifier and Type | Field and Description |
---|---|
protected JkMain |
jkMain |
protected static Log |
log |
domain, ERROR, HANDLE_FLUSH, HANDLE_RECEIVE_PACKET, HANDLE_SEND_PACKET, HANDLE_THREAD_END, id, LAST, mserver, name, next, nextName, OK, oname, properties, wEnv
Constructor and Description |
---|
JkCoyoteHandler() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Clean up and stop the handler
|
Adapter |
getAdapter() |
java.lang.Object |
getAttribute(java.lang.String name)
Retrieve config info.
|
java.util.Iterator |
getAttributeNames() |
JkMain |
getJkMain() |
java.lang.String |
getProperty(java.lang.String name) |
void |
init()
Start the protocol
|
int |
invoke(Msg msg,
MsgContext ep) |
void |
pause()
Pause the protocol (optional).
|
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName oname) |
void |
resume()
Resume the protocol (optional).
|
void |
setAdapter(Adapter adapter)
The adapter, used to call the connector
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Pass config info
|
void |
setProperty(java.lang.String name,
java.lang.String value)
Set a property.
|
void |
start()
Start the protocol.
|
addHandlerCallback, createMsgContext, createMsgContext, getDomain, getId, getName, getNext, getObjectName, handleNotification, postDeregister, postRegister, preDeregister, setId, setName, setNext, setNext, setWorkerEnv
public void setProperty(java.lang.String name, java.lang.String value)
setProperty
in class JkHandler
public java.lang.String getProperty(java.lang.String name)
getProperty
in class JkHandler
public java.util.Iterator getAttributeNames()
getAttributeNames
in interface ProtocolHandler
public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface ProtocolHandler
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface ProtocolHandler
public void setAdapter(Adapter adapter)
setAdapter
in interface ProtocolHandler
public Adapter getAdapter()
getAdapter
in interface ProtocolHandler
public JkMain getJkMain()
public void init()
init
in interface ProtocolHandler
init
in class JkHandler
public void start()
ProtocolHandler
start
in interface ProtocolHandler
public void pause() throws java.lang.Exception
ProtocolHandler
pause
in interface ProtocolHandler
pause
in class JkHandler
java.lang.Exception
public void resume() throws java.lang.Exception
ProtocolHandler
resume
in interface ProtocolHandler
resume
in class JkHandler
java.lang.Exception
public void destroy()
JkHandler
destroy
in interface ProtocolHandler
destroy
in class JkHandler
public int invoke(Msg msg, MsgContext ep) throws java.io.IOException
public javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName oname) throws java.lang.Exception
preRegister
in interface javax.management.MBeanRegistration
preRegister
in class JkHandler
java.lang.Exception
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.