|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.i2ptunnel.localServer.LocalHTTPServer
public abstract class LocalHTTPServer
Very simple web server. Serve local files in the docs/ directory, for CSS and images in error pages, using the reserved address proxy.i2p (similar to p.p in privoxy). This solves the problems with including links to the router console, as assuming the router console is at 127.0.0.1 leads to broken links if it isn't.
Constructor Summary | |
---|---|
LocalHTTPServer()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalHTTPServer()
Method Detail |
---|
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 null
IOException
public static String decode(String s)
protected static String _t(String key)
protected static String _t(String key, Object o)
protected static String _t(String key, Object o, Object o2)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |