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 ProtocolHandler
public Object getAttribute(String name)
getAttribute
in interface ProtocolHandler
public Iterator getAttributeNames()
getAttributeNames
in interface ProtocolHandler
public void setAdapter(Adapter adapter)
setAdapter
in interface ProtocolHandler
public Adapter getAdapter()
getAdapter
in interface ProtocolHandler
public boolean hasIoEvents()
hasIoEvents
in interface ProtocolHandler
public RequestGroupInfo getRequestGroupInfo()
getRequestGroupInfo
in interface ProtocolHandler
public void init() throws Exception
init
in interface ProtocolHandler
Exception
public void start() throws Exception
start
in interface ProtocolHandler
Exception
public void pause() throws Exception
ProtocolHandler
pause
in interface ProtocolHandler
Exception
public void resume() throws Exception
ProtocolHandler
resume
in interface ProtocolHandler
Exception
public void destroy() throws Exception
destroy
in interface ProtocolHandler
Exception
Copyright © 2016 JBoss by Red Hat. All rights reserved.