HttpContext
Syntax
public interface HttpContext
Description
HttpContext defines methods that HttpService may call to get information about a registration. Servlets and resources must be registered with a HttpContext object. Servlets which are registered using the same HttpContext object will share the same ServletContext.
This interface is implemented by users of HttpService.
Member Summary | |
---|---|
Methods | |
public String | getMimeType(String) |
Map a name to a MIME type. | |
public URL | getResource(String) |
Map a resource name to a URL. | |
public boolean | handleSecurity(HttpServletRequest, HttpServletResponse) |
Handle security for a request. |
Methods
getMimeType(String)
public java.lang.String getMimeType(java.lang.String name)
Map a name to a MIME type. Called ...
Get Programming Open Service Gateways with Java Embedded Server™ Technology now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.