Interface ResourceMapping

  • All Superinterfaces:
    ContextRelated

    public interface ResourceMapping
    extends ContextRelated

    Resource mapping. Even if "resource handling" is perfomed by servlet container specific Servlet, we don't extend ServletMapping because the servlet is provided by Pax Web itself. The most important field is single path property, which is:

    • For HttpService: 2nd parameter to HttpService.registerResources(String, String, HttpContext)
    • For Whiteboard service: HttpWhiteboardConstants.HTTP_WHITEBOARD_RESOURCE_PREFIX service registration property

    Relevant trackers take care to obtain required information carried by ResourceMapping.

    Since:
    0.4.0, April 05, 2008
    Author:
    Alin Dreghiciu, Grzegorz Grzybek
    • Method Detail

      • getAlias

        String getAlias()
        Alias for backward compatibility - effectively it's converted to one-element array of getUrlPatterns()
        Returns:
      • getUrlPatterns

        String[] getUrlPatterns()
        URL mappings according to Servlet Specificication.
        Returns:
      • getPath

        String getPath()
        Getter.
        Returns:
        local path in the bundle