Package fi.iki.elonen

Interface NanoHTTPD.IHTTPSession

  • All Known Implementing Classes:
    NanoHTTPD.HTTPSession
    Enclosing class:
    NanoHTTPD

    public static interface NanoHTTPD.IHTTPSession
    Handles one session, i.e. parses the HTTP request and returns the response.
    • Method Detail

      • execute

        void execute()
              throws java.io.IOException
        Throws:
        java.io.IOException
      • getHeaders

        java.util.Map<java.lang.String,​java.lang.String> getHeaders()
      • getInputStream

        java.io.InputStream getInputStream()
      • getParms

        @Deprecated
        java.util.Map<java.lang.String,​java.lang.String> getParms()
        Deprecated.
        use getParameters() instead.
        This method will only return the first value for a given parameter. You will want to use getParameters if you expect multiple values for a given key.
      • getParameters

        java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getParameters()
      • getQueryParameterString

        java.lang.String getQueryParameterString()
      • getUri

        java.lang.String getUri()
        Returns:
        the path part of the URL.
      • parseBody

        void parseBody​(java.util.Map<java.lang.String,​java.lang.String> files)
                throws java.io.IOException,
                       NanoHTTPD.ResponseException
        Adds the files in the request body to the files map.
        Parameters:
        files - map to modify
        Throws:
        java.io.IOException
        NanoHTTPD.ResponseException
      • getRemoteIpAddress

        java.lang.String getRemoteIpAddress()
        Get the remote ip address of the requester.
        Returns:
        the IP address.
      • getRemoteHostName

        java.lang.String getRemoteHostName()
        Get the remote hostname of the requester.
        Returns:
        the hostname.