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 extendServletMappingbecause 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_PREFIXservice 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 StringgetAlias()Alias for backward compatibility - effectively it's converted to one-element array ofgetUrlPatterns()StringgetPath()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
-
-