|
Apache Tomcat 6.0.45 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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()
|
int |
getLocalPort()
|
int |
getNameIndex()
|
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 ProtocolHandlerpublic java.lang.Object getAttribute(java.lang.String name)
getAttribute in interface ProtocolHandlerpublic java.util.Iterator getAttributeNames()
getAttributeNames in interface ProtocolHandlerpublic void setAdapter(Adapter adapter)
setAdapter in interface ProtocolHandlerpublic Adapter getAdapter()
getAdapter in interface ProtocolHandlerpublic int getNameIndex()
public int getLocalPort()
public void init()
throws java.lang.Exception
init in interface ProtocolHandlerjava.lang.Exception
public void start()
throws java.lang.Exception
start in interface ProtocolHandlerjava.lang.Exception
public void pause()
throws java.lang.Exception
ProtocolHandler
pause in interface ProtocolHandlerjava.lang.Exception
public void resume()
throws java.lang.Exception
ProtocolHandler
resume in interface ProtocolHandlerjava.lang.Exception
public void destroy()
throws java.lang.Exception
destroy in interface ProtocolHandlerjava.lang.Exception
public void process(Request request,
ByteChunk input,
Response response,
ByteChunk output)
throws java.lang.Exception
java.lang.Exception
|
Apache Tomcat 6.0.45 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||