public final class ExternalSession extends Object implements Session
Constructor and Description |
---|
ExternalSession(SocketChannel socket,
Monitor monitor,
String shabang) |
ExternalSession(SocketChannel socket,
Monitor monitor,
String shabang,
boolean debug) |
Modifier and Type | Method and Description |
---|---|
String |
readLine()
Reads a line from the session input,
blocking until a new line is available.
|
void |
restart()
Reopens the session to reinitialize the server state
|
void |
start()
Opens the session.
|
void |
stop()
Closes the session.
|
String |
toString()
Constructs a
String with all attributes in name = value
format. |
void |
writeLine(String line)
Writes a line to the session output.
|
public ExternalSession(SocketChannel socket, Monitor monitor, String shabang)
public ExternalSession(SocketChannel socket, Monitor monitor, String shabang, boolean debug)
public String readLine() throws Exception
Session
public void start() throws Exception
Session
public void restart() throws Exception
Session
public void stop() throws Exception
Session
public void writeLine(String line) throws Exception
Session
Copyright © 2008-2017 The Apache Software Foundation. All Rights Reserved.