org.apache.coyote

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 coyoute connector. Adapter is the main interface to be impleneted by a coyote servlet container.

Author: Remy Maucherat Costin Manolache

See Also: Adapter

Method Summary
voiddestroy()
AdaptergetAdapter()
ObjectgetAttribute(String name)
IteratorgetAttributeNames()
voidinit()
Init the protocol.
voidpause()
Pause the protocol (optional).
voidresume()
Resume the protocol (optional).
voidsetAdapter(Adapter adapter)
The adapter, used to call the connector.
voidsetAttribute(String name, Object value)
Pass config info.
voidstart()
Start the protocol.

Method Detail

destroy

public void destroy()

getAdapter

public Adapter getAdapter()

getAttribute

public Object getAttribute(String name)

getAttributeNames

public Iterator getAttributeNames()

init

public void init()
Init the protocol.

pause

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

resume

public void resume()
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()
Start the protocol.
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.