public class MemoryProtocolHandler extends 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() |
Object |
getAttribute(String name) |
Iterator |
getAttributeNames() |
RequestGroupInfo |
getRequestGroupInfo() |
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(String name,
Object value)
Pass config info.
|
void |
start()
Start the protocol.
|
protected Adapter adapter
public void setAttribute(String name, Object value)
setAttribute in interface ProtocolHandlerpublic Object getAttribute(String name)
getAttribute in interface ProtocolHandlerpublic Iterator getAttributeNames()
getAttributeNames in interface ProtocolHandlerpublic void setAdapter(Adapter adapter)
setAdapter in interface ProtocolHandlerpublic Adapter getAdapter()
getAdapter in interface ProtocolHandlerpublic boolean hasIoEvents()
hasIoEvents in interface ProtocolHandlerpublic RequestGroupInfo getRequestGroupInfo()
getRequestGroupInfo in interface ProtocolHandlerpublic void init()
throws Exception
init in interface ProtocolHandlerExceptionpublic void start()
throws Exception
start in interface ProtocolHandlerExceptionpublic void pause()
throws Exception
ProtocolHandlerpause in interface ProtocolHandlerExceptionpublic void resume()
throws Exception
ProtocolHandlerresume in interface ProtocolHandlerExceptionpublic void destroy()
throws Exception
destroy in interface ProtocolHandlerExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.