edu.harvard.seas.iis.abilities.classify.webservice
Class MovementClassifierWebService

java.lang.Object
  extended by edu.harvard.seas.iis.abilities.classify.webservice.NanoHTTPD
      extended by edu.harvard.seas.iis.abilities.classify.webservice.MovementClassifierWebService

public class MovementClassifierWebService
extends NanoHTTPD


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.harvard.seas.iis.abilities.classify.webservice.NanoHTTPD
NanoHTTPD.Response
 
Field Summary
 
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
 
Constructor Summary
MovementClassifierWebService(int port, java.io.File wwwroot)
           
 
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 edu.harvard.seas.iis.abilities.classify.webservice.NanoHTTPD
serveFile, stop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MovementClassifierWebService

public MovementClassifierWebService(int port,
                                    java.io.File wwwroot)
                             throws java.io.IOException
Throws:
java.io.IOException
Method Detail

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 decoded
parms - 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 -