edu.harvard.seas.iis.abilities.classify.webservice
Class MovementClassifierWebService
java.lang.Object
edu.harvard.seas.iis.abilities.classify.webservice.NanoHTTPD
edu.harvard.seas.iis.abilities.classify.webservice.MovementClassifierWebService
public class MovementClassifierWebService
- extends NanoHTTPD
Fields inherited from class edu.harvard.seas.iis.abilities.classify.webservice.NanoHTTPD |
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 |
Method Summary |
static void |
main(java.lang.String[] args)
|
NanoHTTPD.Response |
serve(java.lang.String uri,
java.lang.String method,
java.util.Properties header,
java.util.Properties parms,
java.util.Properties files)
Override this to customize the server. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MovementClassifierWebService
public MovementClassifierWebService(int port,
java.io.File wwwroot)
throws java.io.IOException
- Throws:
java.io.IOException
serve
public NanoHTTPD.Response serve(java.lang.String uri,
java.lang.String method,
java.util.Properties header,
java.util.Properties parms,
java.util.Properties files)
- Description copied from class:
NanoHTTPD
- Override this to customize the server.
(By default, this delegates to serveFile() and allows directory listing.)
- Overrides:
serve
in class NanoHTTPD
- Parameters:
uri
- Percent-decoded URI without parameters, for example "/index.cgi"method
- "GET", "POST" etc.header
- Header entries, percent decodedparms
- Parsed, percent decoded parameters from URI and, in case of POST, data.
- Returns:
- HTTP response, see class Response for details
main
public static void main(java.lang.String[] args)
- Parameters:
args
-