public class ControlConnection extends AbstractService
syncObject| Constructor and Description |
|---|
ControlConnection(InputStream clientInputStream,
OutputStream clientOutputStream)
Creates a new connection handler for a client on the given socket.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCommand(Command command)
Adds the given command to this control.
|
void |
addOutputLine(String line)
Prints the given line to the output stream.
|
void |
addOutputLines(String... lines)
Prints the given lines to the output stream.
|
protected void |
serviceRun()
Empty implementation.
|
protected void |
serviceStop()
Empty implementation.
|
addServiceListener, destroy, getAction, getName, getServiceAttribute, getState, getStateReason, hasServiceAttribute, init, notifySyncObject, removeServiceListener, run, serviceDestroy, serviceInit, serviceStart, setAction, setServiceAttribute, setState, setState, setStateReason, setThreadFactory, shouldStop, sleep, sleep, start, stop, toStringpublic ControlConnection(InputStream clientInputStream, OutputStream clientOutputStream)
clientInputStream - The client input streamclientOutputStream - The client output streampublic void addCommand(Command command)
command - The command to addpublic void addOutputLine(String line)
line - The line to printpublic void addOutputLines(String... lines)
lines - The lines to printprotected void serviceRun()
AbstractService.sleep() until
AbstractService.stop() is called.serviceRun in class AbstractServiceAbstractService.run()protected void serviceStop()
serviceStop in class AbstractServiceAbstractService.stop()Copyright © 2026. All rights reserved.