protected void setOriginalEntityURL(String entityUrl) { checkEntityURL(entityUrl); this.originalEntityURL = entityUrl; }
/** * Used to build this object after it has already been created (typically so custom templates can be inserted) * @param entityURL a URL path which goes to a specific entity view, * consists of path segments defined by path templates and includes an option extension */ public void parseEntityURL(String entityURL) { this.originalEntityURL = entityURL; checkEntityURL(entityURL); ProcessedTemplate parsed = TemplateParseUtil.parseTemplate(entityURL, anazlyzedTemplates); if (parsed == null) { throw new IllegalArgumentException("Could not parse entityURL against any known templates: " + entityURL); } populateInternals(parsed.templateKey, new HashMap<String, String>(parsed.segmentValues), parsed.extension); }