@Override public String getPath() { return action.getPath(); }
private String buildPrefix(RestAction<?> action) { String prefix = ""; if (!isAbsoluteUrl(action.getPath())) { prefix = applicationPathProvider.get(); } return prefix; }
private void maybeAddModuleBase(RestAction<?> action, List<HttpParameter> headerParams) { String restApplicationPath = applicationPathProvider.get(); if (!isAbsoluteUrl(action.getPath()) && !restApplicationPath.isEmpty()) { headerParams.add(new HeaderParameter(MODULE_BASE_HEADER, restApplicationPath, null)); } }
private String buildPath(RestAction<?> action) { List<HttpParameter> params = action.getParameters(Type.PATH); String path = action.getPath(); for (HttpParameter param : params) { List<Entry<String, String>> entries = param.getEncodedEntries(); assert entries.size() == 1; Entry<String, String> entry = entries.get(0); path = path.replace("{" + entry.getKey() + "}", entry.getValue()); } return path; }