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 extendServletMapping
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getAlias()
Alias for backward compatibility - effectively it's converted to one-element array ofgetUrlPatterns()
String
getPath()
Getter.String[]
getUrlPatterns()
URL mappings according to Servlet Specificication.-
Methods inherited from interface org.ops4j.pax.web.service.whiteboard.ContextRelated
getContextId, getContextSelectFilter
-
-
-
-
Method Detail
-
getAlias
String getAlias()
Alias for backward compatibility - effectively it's converted to one-element array ofgetUrlPatterns()
- Returns:
-
getUrlPatterns
String[] getUrlPatterns()
URL mappings according to Servlet Specificication.- Returns:
-
getPath
String getPath()
Getter.- Returns:
- local path in the bundle
-
-