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 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 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
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.