|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.coyote.memory.MemoryProtocolHandler
public class MemoryProtocolHandler
Abstract the protocol implementation, including threading, etc. Processor is single threaded and specific to stream-based protocols, will not fit Jk protocols like JNI.
Nested Class Summary | |
---|---|
protected class |
MemoryProtocolHandler.ByteChunkInputBuffer
|
protected class |
MemoryProtocolHandler.ByteChunkOutputBuffer
|
Field Summary | |
---|---|
protected Adapter |
adapter
Associated adapter. |
Constructor Summary | |
---|---|
MemoryProtocolHandler()
|
Method Summary | |
---|---|
void |
destroy()
|
Adapter |
getAdapter()
|
java.lang.Object |
getAttribute(java.lang.String name)
|
java.util.Iterator |
getAttributeNames()
|
boolean |
hasIoEvents()
|
void |
init()
Init the protocol. |
void |
pause()
Pause the protocol (optional). |
void |
process(Request request,
ByteChunk input,
Response response,
ByteChunk output)
Process specified request. |
void |
resume()
Resume the protocol (optional). |
void |
setAdapter(Adapter adapter)
The adapter, used to call the connector. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Pass config info. |
void |
start()
Start the protocol. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Adapter adapter
Constructor Detail |
---|
public MemoryProtocolHandler()
Method Detail |
---|
public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface ProtocolHandler
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface ProtocolHandler
public java.util.Iterator getAttributeNames()
getAttributeNames
in interface ProtocolHandler
public void setAdapter(Adapter adapter)
setAdapter
in interface ProtocolHandler
public Adapter getAdapter()
getAdapter
in interface ProtocolHandler
public boolean hasIoEvents()
hasIoEvents
in interface ProtocolHandler
public void init() throws java.lang.Exception
init
in interface ProtocolHandler
java.lang.Exception
public void start() throws java.lang.Exception
start
in interface ProtocolHandler
java.lang.Exception
public void pause() throws java.lang.Exception
ProtocolHandler
pause
in interface ProtocolHandler
java.lang.Exception
public void resume() throws java.lang.Exception
ProtocolHandler
resume
in interface ProtocolHandler
java.lang.Exception
public void destroy() throws java.lang.Exception
destroy
in interface ProtocolHandler
java.lang.Exception
public void process(Request request, ByteChunk input, Response response, ByteChunk output) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |