| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.coyote.memory.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.  | 
protected static MemoryProtocolHandler | 
protocolHandler
Hook to easily retrieve the protocol handler.  | 
| Constructor Summary | |
MemoryProtocolHandler()
 | 
|
| Method Summary | |
 void | 
destroy()
 | 
 Adapter | 
getAdapter()
 | 
 java.lang.Object | 
getAttribute(java.lang.String name)
 | 
static MemoryProtocolHandler | 
getProtocolHandler()
 | 
 void | 
init()
Init the protocol.  | 
 void | 
process(Request request,
        ByteChunk input,
        Response response,
        ByteChunk output)
Process specified request.  | 
 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
protected static MemoryProtocolHandler protocolHandler
| 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 void setAdapter(Adapter adapter)
setAdapter in interface ProtocolHandlerpublic Adapter getAdapter()
getAdapter in interface ProtocolHandlerpublic static MemoryProtocolHandler getProtocolHandler()
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 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
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||