AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.util.AppInvHTTPD Class Reference
Inheritance diagram for com.google.appinventor.components.runtime.util.AppInvHTTPD:
com.google.appinventor.components.runtime.util.NanoHTTPD

Public Member Functions

 AppInvHTTPD (int port, File wwwroot, boolean secure, ReplForm form) throws IOException
 
Response serve (String uri, String method, Properties header, Properties parms, Properties files, Socket mySocket)
 
void resetSeq ()
 
- Public Member Functions inherited from com.google.appinventor.components.runtime.util.NanoHTTPD
 NanoHTTPD (int port, File wwwroot) throws IOException
 
void stop ()
 
Response serveFile (String uri, Properties header, File homeDir, boolean allowDirectoryListing)
 

Static Public Member Functions

static void setHmacKey (String inputKey)
 
- Static Public Member Functions inherited from com.google.appinventor.components.runtime.util.NanoHTTPD
static void main (String[] args)
 

Additional Inherited Members

- Static Public Attributes inherited from com.google.appinventor.components.runtime.util.NanoHTTPD
static final String HTTP_OK = "200 OK"
 
static final String MIME_PLAINTEXT = "text/plain"
 
- Static Protected Attributes inherited from com.google.appinventor.components.runtime.util.NanoHTTPD
static PrintStream myOut = System.out
 
static PrintStream myErr = System.err
 

Detailed Description

Definition at line 41 of file AppInvHTTPD.java.

Constructor & Destructor Documentation

◆ AppInvHTTPD()

com.google.appinventor.components.runtime.util.AppInvHTTPD.AppInvHTTPD ( int  port,
File  wwwroot,
boolean  secure,
ReplForm  form 
) throws IOException

Definition at line 56 of file AppInvHTTPD.java.

Member Function Documentation

◆ resetSeq()

void com.google.appinventor.components.runtime.util.AppInvHTTPD.resetSeq ( )

Definition at line 406 of file AppInvHTTPD.java.

◆ serve()

Response com.google.appinventor.components.runtime.util.AppInvHTTPD.serve ( String  uri,
String  method,
Properties  header,
Properties  parms,
Properties  files,
Socket  mySocket 
)
Parameters
uriPercent-decoded URI without parameters, for example "/index.cgi"
method"GET", "POST" etc.
parmsParsed, percent decoded parameters from URI and, in case of POST, data.
headerHeader entries, percent decoded
Returns
HTTP response, see class Response for details

Reimplemented from com.google.appinventor.components.runtime.util.NanoHTTPD.

Definition at line 74 of file AppInvHTTPD.java.

◆ setHmacKey()

static void com.google.appinventor.components.runtime.util.AppInvHTTPD.setHmacKey ( String  inputKey)
static
Parameters
inputKeyString key to use the HTOP algorithm seed

Definition at line 401 of file AppInvHTTPD.java.


The documentation for this class was generated from the following file: