com.sun.grizzly.http.jk.server
Class JkCoyoteHandler

java.lang.Object
  extended by com.sun.grizzly.http.jk.core.JkHandler
      extended by com.sun.grizzly.http.jk.server.JkCoyoteHandler
All Implemented Interfaces:
GrizzlyListener, ProtocolHandler, EventListener, MBeanRegistration, NotificationListener

public class JkCoyoteHandler
extends JkHandler
implements ProtocolHandler, GrizzlyListener

Plugs Jk into Coyote. Must be named "type=JkHandler,name=container" jmx:notification-handler name="org.apache.jk.SEND_PACKET jmx:notification-handler name="com.sun.grizzly.tcp.ACTION_COMMIT


Field Summary
protected  JkMain jkMain
           
 
Fields inherited from class com.sun.grizzly.http.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
 Adapter getAdapter()
           
 Object getAttribute(String name)
          Retrieve config info.
 Iterator getAttributeNames()
           
 JkMain getJkMain()
           
 String getProperty(String name)
           
 void init()
          Start the protocol
 int invoke(Msg msg, MsgContext ep)
           
 void listen()
           
 void pause()
           
 ObjectName preRegister(MBeanServer server, ObjectName oname)
           
 String protocol()
           
 void resume()
           
 void setAdapter(Adapter adapter)
          The adapter, used to call the connector
 void setAttribute(String name, Object value)
          Pass config info
 void setProperty(String name, String value)
          Set a property.
 void start()
           
 
Methods inherited from class com.sun.grizzly.http.jk.core.JkHandler
addHandlerCallback, createMsgContext, 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

jkMain

protected JkMain jkMain
Constructor Detail

JkCoyoteHandler

public JkCoyoteHandler()
Method Detail

setProperty

public void setProperty(String name,
                        String value)
Set a property. Name is a "component.property". JMX should be used instead.

Overrides:
setProperty in class JkHandler

getProperty

public String getProperty(String name)
Overrides:
getProperty in class JkHandler

getAttributeNames

public Iterator getAttributeNames()

setAttribute

public void setAttribute(String name,
                         Object value)
Pass config info

Specified by:
setAttribute in interface ProtocolHandler

getAttribute

public Object getAttribute(String name)
Retrieve config info. Primarily for use with the admin webapp.

Specified by:
getAttribute in interface ProtocolHandler

setAdapter

public void setAdapter(Adapter adapter)
The adapter, used to call the connector

Specified by:
setAdapter in interface GrizzlyListener
Specified by:
setAdapter in interface ProtocolHandler

getAdapter

public Adapter getAdapter()
Specified by:
getAdapter in interface GrizzlyListener
Specified by:
getAdapter in interface ProtocolHandler

getJkMain

public JkMain getJkMain()

init

public void init()
Start the protocol

Specified by:
init in interface ProtocolHandler
Overrides:
init in class JkHandler

start

public void start()
Specified by:
start in interface ProtocolHandler

pause

public void pause()
           throws Exception
Overrides:
pause in class JkHandler
Throws:
Exception

resume

public void resume()
            throws Exception
Overrides:
resume in class JkHandler
Throws:
Exception

destroy

public void destroy()
Description copied from class: JkHandler
Clean up and stop the handler

Specified by:
destroy in interface ProtocolHandler
Overrides:
destroy in class JkHandler

invoke

public int invoke(Msg msg,
                  MsgContext ep)
           throws IOException
Overrides:
invoke in class JkHandler
Throws:
IOException

preRegister

public ObjectName preRegister(MBeanServer server,
                              ObjectName oname)
                       throws Exception
Specified by:
preRegister in interface MBeanRegistration
Overrides:
preRegister in class JkHandler
Throws:
Exception

protocol

public String protocol()
Specified by:
protocol in interface GrizzlyListener

listen

public void listen()
            throws IOException,
                   InstantiationException
Specified by:
listen in interface GrizzlyListener
Throws:
IOException
InstantiationException


Copyright © 2010 Oracle. All Rights Reserved.