org.apache.coyote

Interface ProtocolHandler

Known Implementing Classes:
Http11Protocol, JkCoyoteHandler, MemoryProtocolHandler

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.

Authors:
Remy Maucherat
Costin Manolache

Method Summary

void
destroy()
Adapter
getAdapter()
Object
getAttribute(String name)
void
init()
Init the protocol.
void
pause()
Pause the protocol (optional).
void
resume()
Resume the protocol (optional).
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 Details

destroy

public void destroy()
            throws Exception


getAdapter

public Adapter getAdapter()


getAttribute

public Object getAttribute(String name)


init

public void init()
            throws Exception
Init the protocol.


pause

public void pause()
            throws Exception
Pause the protocol (optional).


resume

public void resume()
            throws Exception
Resume the protocol (optional).


setAdapter

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


setAttribute

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


start

public void start()
            throws Exception
Start the protocol.


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.