UiHttpContext

public class UiHttpContext implements HttpContext

This is the extension of the Felix org.osgi.service.http.HttpContext used by MOTECH. It acts as a decorator for the default context provided by Felix, its only function is to resolve resource names, so that calls to root (/webapp) map to the index.html file from the root directory.

Constructors

UiHttpContext

public UiHttpContext(HttpContext context)

Constructs the instance by decorating the provided HTTP context.

Parameters:
  • context – the context to decorate

Methods

getContext

protected HttpContext getContext()

getMimeType

public String getMimeType(String name)

getResource

public URL getResource(String name)

handleSecurity

public boolean handleSecurity(HttpServletRequest request, HttpServletResponse response)