Interface HttpContextMapping

  • All Superinterfaces:
    ContextMapping

    public interface HttpContextMapping
    extends ContextMapping

    HttpContext mapping collects all the information required to register a HttpContext to allow referencing it later.

    Registering a HttpContext can be done in two ways:

  • registering a service with this interface - all the information is included in service itself (explicit whiteboard approach)
  • registering a HttpContext service, while required properties (mapping, name, parameters) are specified using service registration properties (legacy Pax Web Whiteboard approach)
  • This interface doesn't extend ContextRelated, because it represents the context itself.

    Even if getHttpContext() may return a singleton or a new instance on each call, this method will be called once and the result will be treated as singleton.

Since:
0.4.0, March 16, 2008
Author:
Alin Dreghiciu, Grzegorz Grzybek