@Test(groups = "fast") public void testBasicUrl() throws Exception { String path = "/test/page.jsp"; UrlBuilder builder = new UrlBuilder(Locale.getDefault(), path, false); String result = builder.toString(); Assert.assertEquals(result, path); }
@Override public String toString() { if (url == null) { url = build(); } if (this.anchor != null && this.anchor.length() > 0) { return url + "#" + StringUtil.uriFragmentEncode(this.anchor); } else { return url; } }
UrlBuilder { @Override public String toString() { if (url == null) { url = build(); } if (this.anchor != null && this.anchor.length() > 0) { return url + "#" + StringUtil.uriFragmentEncode(this.anchor); } else { return url; } } }
UrlBuilder { @Override public String toString() { if (url == null) { url = build(); } if (this.anchor != null && this.anchor.length() > 0) { return url + "#" + StringUtil.uriFragmentEncode(this.anchor); } else { return url; } } UrlBuilder(Locale locale, String url, boolean isForPage);  UrlBuilder(Locale locale, Class<? extends ActionBean> beanType, boolean isForPage); protected  UrlBuilder(Locale locale, boolean isForPage); }
UrlBuilder { @Override public String toString() { if (url == null) { url = build(); } if (this.anchor != null && this.anchor.length() > 0) { return url + "#" + StringUtil.uriFragmentEncode(this.anchor); } else { return url; } } UrlBuilder(Locale locale, String url, boolean isForPage);  UrlBuilder(Locale locale, Class<? extends ActionBean> beanType, boolean isForPage); protected  UrlBuilder(Locale locale, boolean isForPage); String getEvent(); UrlBuilder setEvent(String event); String getParameterSeparator(); void setParameterSeparator(String parameterSeparator); UrlBuilder addParameter(String name, Object... values); UrlBuilder addParameters(Map<? extends Object, ? extends Object> parameters); String getAnchor(); UrlBuilder setAnchor(String anchor); @Override String toString(); }
UrlBuilder { @Override public String toString() { if (url == null) { url = build(); } if (this.anchor != null && this.anchor.length() > 0) { return url + "#" + StringUtil.uriFragmentEncode(this.anchor); } else { return url; } } UrlBuilder(Locale locale, String url, boolean isForPage);  UrlBuilder(Locale locale, Class<? extends ActionBean> beanType, boolean isForPage); protected  UrlBuilder(Locale locale, boolean isForPage); String getEvent(); UrlBuilder setEvent(String event); String getParameterSeparator(); void setParameterSeparator(String parameterSeparator); UrlBuilder addParameter(String name, Object... values); UrlBuilder addParameters(Map<? extends Object, ? extends Object> parameters); String getAnchor(); UrlBuilder setAnchor(String anchor); @Override String toString();  }