String webletVersion = webletConfig.getWebletVersion(); String webletPath = matcher.group(1);
public String getResourceUri( String webletName, String pathInfo) throws WebletException { WebletConfig config = (WebletConfig) _webletConfigs.get(webletName); if (config == null) throw new WebletException("Missing Weblet configuration for '" + webletName + "'"); String webletPath = (String) _webletPaths.get(webletName); if (webletPath == null) throw new WebletException("Missing Weblet mapping for '" + webletName + "'"); String webletVersion = config.getWebletVersion(); // URL-syntax /webletPath[$version]/pathInfo StringBuffer buffer = new StringBuffer(); buffer.append(webletPath); if (webletVersion != null) { buffer.append('$'); buffer.append(webletVersion); } if (pathInfo != null) { buffer.append(pathInfo); } String webletURL = buffer.toString(); if (_webletURLFormat != null) webletURL = _webletURLFormat.format(new Object[]{webletURL}); return webletURL; }
Matcher matcher = _WEBLET_PATH_PATTERN.matcher(urlPattern); if (matcher.matches()) { String webletVersion = webletConfig.getWebletVersion(); String webletPath = matcher.group(1); StringBuffer buffer = new StringBuffer();
public String getResourceUri( String webletName, String pathInfo) throws WebletException { WebletConfig config = (WebletConfig) _webletConfigs.get(webletName); if (config == null) throw new WebletException("Missing Weblet configuration for '" + webletName + "'"); String webletPath = (String) _webletPaths.get(webletName); if (webletPath == null) throw new WebletException("Missing Weblet mapping for '" + webletName + "'"); String webletVersion = config.getWebletVersion(); // URL-syntax /webletPath[$version]/pathInfo StringBuffer buffer = new StringBuffer(); buffer.append(webletPath); if (webletVersion != null) { buffer.append('$'); buffer.append(webletVersion); } if (pathInfo != null) { buffer.append(pathInfo); } String webletURL = buffer.toString(); if (_webletURLFormat != null) webletURL = _webletURLFormat.format(new Object[]{webletURL}); return webletURL; }
String webletVersion = config.getWebletVersion(); if (!isVersionedWeblet(webletVersion)) { response.setLastModified(lastmodified);
String webletVersion = config.getWebletVersion(); boolean load = false; if (isVersionedWeblet(webletVersion)) {