org.apache.coyote.memory
public class MemoryProtocolHandler extends java.lang.Object implements ProtocolHandler
| Modifier and Type | Class and Description |
|---|---|
protected class |
MemoryProtocolHandler.ByteChunkInputBuffer |
protected class |
MemoryProtocolHandler.ByteChunkOutputBuffer |
| Modifier and Type | Field and Description |
|---|---|
protected Adapter |
adapter
Associated adapter.
|
| Constructor and Description |
|---|
MemoryProtocolHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
Adapter |
getAdapter() |
java.lang.Object |
getAttribute(java.lang.String name) |
java.util.Iterator |
getAttributeNames() |
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.
|
protected Adapter adapter
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 void init()
throws java.lang.Exception
init in interface ProtocolHandlerjava.lang.Exceptionpublic void start()
throws java.lang.Exception
start in interface ProtocolHandlerjava.lang.Exceptionpublic void pause()
throws java.lang.Exception
ProtocolHandlerpause in interface ProtocolHandlerjava.lang.Exceptionpublic void resume()
throws java.lang.Exception
ProtocolHandlerresume in interface ProtocolHandlerjava.lang.Exceptionpublic void destroy()
throws java.lang.Exception
destroy in interface ProtocolHandlerjava.lang.ExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.