* @see Path
* @see RequestContext
*/
protected Path createClientPath(String name, RequestContext requestContext, String decorationType)
{
Path basePath = ((Path)decorationsPath.clone())
.addSegment(decorationType)
.addSegment(name);
String mediaType = requestContext.getMediaType();
Locale locale = requestContext.getLocale();
String language = locale.getLanguage();
String country = locale.getCountry();
String variant = locale.getVariant();
basePath.addSegment(mediaType).addSegment(language);
if (country != null)
{
basePath.addSegment(country);
}
if (variant != null)
{
basePath.addSegment(variant);
}
return basePath;
}