org.apache.coyote.memory

Class MemoryProtocolHandler

public class MemoryProtocolHandler extends Object implements 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.

Author: Remy Maucherat

Nested Class Summary
protected classMemoryProtocolHandler.ByteChunkInputBuffer
protected classMemoryProtocolHandler.ByteChunkOutputBuffer
Field Summary
protected Adapteradapter
Associated adapter.
Method Summary
voiddestroy()
AdaptergetAdapter()
ObjectgetAttribute(String name)
IteratorgetAttributeNames()
voidinit()
Init the protocol.
voidpause()
voidprocess(Request request, ByteChunk input, Response response, ByteChunk output)
Process specified request.
voidresume()
voidsetAdapter(Adapter adapter)
The adapter, used to call the connector.
voidsetAttribute(String name, Object value)
Pass config info.
voidstart()
Start the protocol.

Field Detail

adapter

protected Adapter adapter
Associated adapter.

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()

process

public void process(Request request, ByteChunk input, Response response, ByteChunk output)
Process specified request.

resume

public void resume()

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.