com.sun.grizzly.tcp
Interface ProtocolHandler


public interface ProtocolHandler

Abstract the protocol implementation, including threading, etc. Processor is single threaded and specific to stream-based protocols, will not fit Jk protocols like JNI. This is the main interface to be implemented by a coyote connector. (In contrast, Adapter is the main interface to be implemented by a coyote servlet container.)

Author:
Remy Maucherat, Costin Manolache
See Also:
Adapter

Method Summary
 void destroy()
           
 Adapter getAdapter()
           
 Object getAttribute(String name)
           
 void init()
          Init the protocol.
 void setAdapter(Adapter adapter)
          The adapter, used to call the connector.
 void setAttribute(String name, Object value)
          Pass config info.
 void start()
          Start the protocol.
 

Method Detail

setAttribute

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


getAttribute

Object getAttribute(String name)

setAdapter

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


getAdapter

Adapter getAdapter()

init

void init()
          throws Exception
Init the protocol.

Throws:
Exception

start

void start()
           throws Exception
Start the protocol.

Throws:
Exception

destroy

void destroy()
             throws Exception
Throws:
Exception


Copyright © 2009 SUN Microsystems. All Rights Reserved.