public class AppInvHTTPD extends NanoHTTPD
NanoHTTPD.Response
HTTP_BADREQUEST, HTTP_FORBIDDEN, HTTP_INTERNALERROR, HTTP_NOTFOUND, HTTP_NOTIMPLEMENTED, HTTP_NOTMODIFIED, HTTP_OK, HTTP_PARTIALCONTENT, HTTP_RANGE_NOT_SATISFIABLE, HTTP_REDIRECT, MIME_DEFAULT_BINARY, MIME_HTML, MIME_PLAINTEXT, MIME_XML, myErr, myOut
Constructor and Description |
---|
AppInvHTTPD(int port,
java.io.File wwwroot,
boolean secure,
ReplForm form) |
Modifier and Type | Method and Description |
---|---|
void |
resetSeq() |
NanoHTTPD.Response |
serve(java.lang.String uri,
java.lang.String method,
java.util.Properties header,
java.util.Properties parms,
java.util.Properties files,
java.net.Socket mySocket)
Override this to customize the server.
|
static void |
setHmacKey(java.lang.String inputKey) |
public AppInvHTTPD(int port, java.io.File wwwroot, boolean secure, ReplForm form) throws java.io.IOException
java.io.IOException
public NanoHTTPD.Response serve(java.lang.String uri, java.lang.String method, java.util.Properties header, java.util.Properties parms, java.util.Properties files, java.net.Socket mySocket)
NanoHTTPD
(By default, this delegates to serveFile() and allows directory listing.)
serve
in class NanoHTTPD
uri
- Percent-decoded URI without parameters, for example "/index.cgi"method
- "GET", "POST" etc.parms
- Parsed, percent decoded parameters from URI and, in case of POST, data.header
- Header entries, percent decodedpublic static void setHmacKey(java.lang.String inputKey)
inputKey
- String key to use the HTOP algorithm seedpublic void resetSeq()