Registers resources into the URI namespace.
The alias is the name in the URI namespace of the Http Service at which the registration will be mapped. An alias must begin with slash ('/') and must not end with slash ('/'), with the exception that an alias of the form "/" is used to denote the root alias. The name parameter must also not end with slash ('/') with the exception that a name of the form "/" is used to denote the root of the bundle. See the specification text for details on how HTTP requests are mapped to servlet and resource registrations.
For example, suppose the resource name /tmp is registered to the alias /files. A request for /files/foo.txt will map to the resource name /tmp/foo.txt.
httpservice.registerResources("/files", "/tmp", context); The Http Service will call the {@code HttpContext} argument to mapresource names to URLs and MIME types and to handle security for requests. If the {@code HttpContext} argument is {@code null}, a default {@code HttpContext} is used (see {@link #createDefaultHttpContext()}).
@param alias name in the URI namespace at which the resources areregistered
@param name the base name of the resources that will be registered
@param context the {@code HttpContext} object for the registeredresources, or {@code null} if a default {@code HttpContext} is tobe created and used.
@throws NamespaceException if the registration fails because the alias isalready in use.
@throws java.lang.IllegalArgumentException if any of the parameters areinvalid