public class SqlGuardHttpServer extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_BODY_BYTES |
| Constructor and Description |
|---|
SqlGuardHttpServer(String host,
int port,
SqlGuardService service) |
| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
address() |
static String |
httpGet(String url) |
static String |
httpPost(String url,
String body) |
void |
start() |
void |
stop(int delay) |
public static final int MAX_BODY_BYTES
public SqlGuardHttpServer(String host, int port, SqlGuardService service)
public void start() throws IOException
IOExceptionpublic void stop(int delay)
public InetSocketAddress address()
public static String httpGet(String url) throws IOException
IOExceptionpublic static String httpPost(String url, String body) throws IOException
IOException