Package org.takes.http
Class FtRemote
- java.lang.Object
-
- org.takes.http.FtRemote
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
FtRemote.Script
Script to execute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
exec(FtRemote.Script script)
Execute this script against a running front.void
start(Exit exit)
Start and dispatch all incoming sockets.
-
-
-
Constructor Detail
-
FtRemote
public FtRemote(Take tks) throws IOException
Ctor.- Parameters:
tks
- Take- Throws:
IOException
- If fails
-
FtRemote
public FtRemote(Back bck) throws IOException
Ctor.- Parameters:
bck
- Back- Throws:
IOException
- If fails
-
FtRemote
public FtRemote(Back bck, ServerSocket skt)
Ctor.- Parameters:
bck
- Backskt
- Server socket to use- Since:
- 0.22
-
-
Method Detail
-
start
public void start(Exit exit) throws IOException
Description copied from interface:Front
Start and dispatch all incoming sockets.- Specified by:
start
in interfaceFront
- Parameters:
exit
- When to exit- Throws:
IOException
- If fails
-
exec
public void exec(FtRemote.Script script) throws Exception
Execute this script against a running front.- Parameters:
script
- Script to run- Throws:
Exception
- If fails
-
-