public class WarcServer extends Object
Mainly exists to exercise the API. Can be used either as a proxy or in link-rewriting mode. Link-rewriting is handled client-side by https://github.com/oduwsdl/Reconstructive
| Constructor and Description |
|---|
WarcServer(ServerSocket serverSocket,
List<Path> warcs) |
| Modifier and Type | Method and Description |
|---|---|
void |
listen()
Listens and accepts new connections.
|
protected void |
on(String method,
String regex,
HttpHandler handler) |
public WarcServer(ServerSocket serverSocket, List<Path> warcs) throws IOException
IOExceptionpublic void listen()
protected void on(String method, String regex, HttpHandler handler)
Copyright © 2022. All rights reserved.