public abstract class LocalHTTPServer extends Object
Constructor | Description |
---|---|
LocalHTTPServer() |
Modifier and Type | Method | Description |
---|---|---|
protected static String |
_t(String key) |
lang in routerconsole.lang property, else current locale
|
protected static String |
_t(String key,
Object o) |
{0}
|
protected static String |
_t(String key,
Object o,
Object o2) |
{0} and {1}
|
static String |
decode(String s) |
Decode %xx encoding
|
static void |
serveLocalFile(OutputStream out,
String method,
String targetRequest,
String query,
String proxyNonce) |
Very simple web server.
|
public static void serveLocalFile(OutputStream out, String method, String targetRequest, String query, String proxyNonce) throws IOException
targetRequest
- decoded path only, non-nullquery
- raw (encoded), may be nullIOException