Constructor and Description |
---|
ContextImpl(IOAdapter outputAdapter,
CommandBuffer commandBuffer) |
Modifier and Type | Method and Description |
---|---|
void |
disconnect() |
void |
error(String s) |
void |
error(Throwable t) |
void |
execute() |
void |
execute(CommandBuffer commandBuffer) |
CommandBuffer |
getCommandBuffer() |
CommandRegistry |
getCommandRegistry() |
Connection |
getConnection() |
IOAdapter |
getOutputAdapter() |
String |
getProperty(String key) |
boolean |
isConnected() |
boolean |
isQuitting() |
void |
println(String s) |
void |
refreshProperties() |
void |
result(List<ProcessedCommand> commands,
String result,
boolean isError) |
void |
setConnection(Connection connection) |
void |
setOutputAdapter(IOAdapter outputAdapter) |
void |
setProperty(String key,
String value) |
void |
setQuitting(boolean quitting) |
public ContextImpl(IOAdapter outputAdapter, CommandBuffer commandBuffer)
public void setOutputAdapter(IOAdapter outputAdapter)
setOutputAdapter
in interface Context
public boolean isConnected()
isConnected
in interface Context
public boolean isQuitting()
isQuitting
in interface Context
public void setQuitting(boolean quitting)
setQuitting
in interface Context
public void setProperty(String key, String value)
setProperty
in interface Context
public String getProperty(String key)
getProperty
in interface Context
public void result(List<ProcessedCommand> commands, String result, boolean isError)
public CommandBuffer getCommandBuffer()
getCommandBuffer
in interface Context
public void disconnect()
disconnect
in interface Context
public void setConnection(Connection connection)
setConnection
in interface Context
public void execute(CommandBuffer commandBuffer)
public Connection getConnection()
getConnection
in interface Context
public CommandRegistry getCommandRegistry()
getCommandRegistry
in interface Context
public IOAdapter getOutputAdapter()
getOutputAdapter
in interface Context
public void refreshProperties()
refreshProperties
in interface Context
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.