Class WebThingServer.MDMAttributesHandler

  • All Implemented Interfaces:
    fi.iki.elonen.router.RouterNanoHTTPD.UriResponder
    Enclosing class:
    WebThingServer

    public static class WebThingServer.MDMAttributesHandler
    extends WebThingServer.BaseHandler
    Handle a request to /thinginfo/<property>.
    • Constructor Detail

      • MDMAttributesHandler

        public MDMAttributesHandler()
    • Method Detail

      • getPropertyName

        public java.lang.String getPropertyName​(fi.iki.elonen.router.RouterNanoHTTPD.UriResource uriResource,
                                                fi.iki.elonen.NanoHTTPD.IHTTPSession session)
        Get the property name from the URI.
        Parameters:
        uriResource - The URI resource that was matched
        session - The HTTP session
        Returns:
        The property name.
      • put

        public fi.iki.elonen.NanoHTTPD.Response put​(fi.iki.elonen.router.RouterNanoHTTPD.UriResource uriResource,
                                                    java.util.Map<java.lang.String,​java.lang.String> urlParams,
                                                    fi.iki.elonen.NanoHTTPD.IHTTPSession session)
        Handle a PUT request.
        Specified by:
        put in interface fi.iki.elonen.router.RouterNanoHTTPD.UriResponder
        Overrides:
        put in class WebThingServer.BaseHandler
        Parameters:
        uriResource - The URI resource that was matched
        urlParams - Map of URL parameters
        session - The HTTP session
        Returns:
        The appropriate response.