|
|||||||||
| Home >> All >> org >> apache >> jk >> [ server overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.jk.server
Class JkCoyoteHandler

java.lang.Objectorg.apache.jk.core.JkHandler
org.apache.jk.server.JkCoyoteHandler
- All Implemented Interfaces:
- java.util.EventListener, javax.management.MBeanRegistration, javax.management.NotificationListener, org.apache.coyote.ProtocolHandler
- public class JkCoyoteHandler
- extends org.apache.jk.core.JkHandler
- implements org.apache.coyote.ProtocolHandler
- extends org.apache.jk.core.JkHandler
Plugs Jk into Coyote. Must be named "type=JkHandler,name=container" jmx:notification-handler name="org.apache.jk.SEND_PACKET jmx:notification-handler name="org.apache.coyote.ACTION_COMMIT
| Field Summary | |
(package private) org.apache.coyote.Adapter |
adapter
|
(package private) int |
epNote
|
protected JkMain |
jkMain
|
protected static org.apache.commons.logging.Log |
log
|
private boolean |
paused
|
(package private) boolean |
started
|
| 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 | |
JkCoyoteHandler()
|
|
| Method Summary | |
void |
destroy()
Clean up and stop the handler |
org.apache.coyote.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(org.apache.jk.core.Msg msg,
org.apache.jk.core.MsgContext ep)
|
void |
pause()
Pause the protocol (optional). |
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName oname)
This method is called by the MBeanServer before registration takes place. |
void |
resume()
Resume the protocol (optional). |
void |
setAdapter(org.apache.coyote.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. |
| Methods inherited from class org.apache.jk.core.JkHandler |
addHandlerCallback, createMsgContext, getDomain, getId, getName, getNext, getObjectName, handleNotification, postDeregister, postRegister, preDeregister, setId, setName, setNext, setNext, setWorkerEnv |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
log
protected static org.apache.commons.logging.Log log
paused
private boolean paused
epNote
int epNote
adapter
org.apache.coyote.Adapter adapter
jkMain
protected JkMain jkMain
started
boolean started
| Constructor Detail |
JkCoyoteHandler
public JkCoyoteHandler()
| Method Detail |
setProperty
public void setProperty(java.lang.String name, java.lang.String value)
- Set a property. Name is a "component.property". JMX should
be used instead.
getProperty
public java.lang.String getProperty(java.lang.String name)
getAttributeNames
public java.util.Iterator getAttributeNames()
- Specified by:
getAttributeNamesin interfaceorg.apache.coyote.ProtocolHandler
setAttribute
public void setAttribute(java.lang.String name, java.lang.Object value)
- Pass config info
- Specified by:
setAttributein interfaceorg.apache.coyote.ProtocolHandler
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
- Retrieve config info.
Primarily for use with the admin webapp.
- Specified by:
getAttributein interfaceorg.apache.coyote.ProtocolHandler
setAdapter
public void setAdapter(org.apache.coyote.Adapter adapter)
- The adapter, used to call the connector
- Specified by:
setAdapterin interfaceorg.apache.coyote.ProtocolHandler
getAdapter
public org.apache.coyote.Adapter getAdapter()
- Specified by:
getAdapterin interfaceorg.apache.coyote.ProtocolHandler
getJkMain
public JkMain getJkMain()
init
public void init()
- Start the protocol
- Specified by:
initin interfaceorg.apache.coyote.ProtocolHandler
start
public void start()
- Description copied from interface:
org.apache.coyote.ProtocolHandler - Start the protocol.
- Specified by:
startin interfaceorg.apache.coyote.ProtocolHandler
pause
public void pause()
throws java.lang.Exception
- Description copied from interface:
org.apache.coyote.ProtocolHandler - Pause the protocol (optional).
- Specified by:
pausein interfaceorg.apache.coyote.ProtocolHandler
resume
public void resume()
throws java.lang.Exception
- Description copied from interface:
org.apache.coyote.ProtocolHandler - Resume the protocol (optional).
- Specified by:
resumein interfaceorg.apache.coyote.ProtocolHandler
destroy
public void destroy()
- Description copied from class:
org.apache.jk.core.JkHandler - Clean up and stop the handler
- Specified by:
destroyin interfaceorg.apache.coyote.ProtocolHandler
invoke
public int invoke(org.apache.jk.core.Msg msg, org.apache.jk.core.MsgContext ep) throws java.io.IOException
preRegister
public javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName oname) throws java.lang.Exception
- Description copied from interface:
javax.management.MBeanRegistration - This method is called by the MBeanServer before registration takes
place. The MBean is passed a reference of the MBeanServer it is
about to be registered with. The MBean must return the ObjectName it
will be registered with. The MBeanServer can pass a suggested object
depending upon how the MBean is registered.
The MBean can stop the registration by throwing an exception.The exception is forwarded to the invoker wrapped in an MBeanRegistrationException.
- Specified by:
preRegisterin interfacejavax.management.MBeanRegistration
|
|||||||||
| Home >> All >> org >> apache >> jk >> [ server overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC