本文整理了Java中org.apache.shindig.common.uri.UriBuilder.addFragmentParameter()
方法的一些代码示例,展示了UriBuilder.addFragmentParameter()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UriBuilder.addFragmentParameter()
方法的具体详情如下:
包路径:org.apache.shindig.common.uri.UriBuilder
类名称:UriBuilder
方法名:addFragmentParameter
暂无
代码示例来源:origin: org.wso2.org.apache.shindig/shindig-common
@Test
public void addTwoFragmentParameters() {
UriBuilder builder = new UriBuilder()
.setScheme("http")
.setAuthority("apache.org")
.setPath("/shindig")
.addFragmentParameter("hello", "world")
.addFragmentParameter("foo", "bar")
.setQuery("foo");
assertEquals("http://apache.org/shindig?foo#hello=world&foo=bar", builder.toString());
}
代码示例来源:origin: com.lmco.shindig/shindig-common
@Test
public void addTwoFragmentParameters() {
UriBuilder builder = new UriBuilder()
.setScheme("http")
.setAuthority("apache.org")
.setPath("/shindig")
.addFragmentParameter("hello", "world")
.addFragmentParameter("foo", "bar")
.setQuery("foo");
assertEquals("http://apache.org/shindig?foo#hello=world&foo=bar", builder.toString());
}
代码示例来源:origin: org.apache.shindig/shindig-common
@Test
public void addIdenticalFragmentParameters() {
UriBuilder builder = new UriBuilder()
.setScheme("http")
.setAuthority("apache.org")
.setPath("/shindig")
.addFragmentParameter("hello", "world")
.addFragmentParameter("hello", "goodbye")
.setQuery("foo");
assertEquals("http://apache.org/shindig?foo#hello=world&hello=goodbye", builder.toString());
}
代码示例来源:origin: org.apache.shindig/shindig-common
@Test
public void addTwoFragmentParameters() {
UriBuilder builder = new UriBuilder()
.setScheme("http")
.setAuthority("apache.org")
.setPath("/shindig")
.addFragmentParameter("hello", "world")
.addFragmentParameter("foo", "bar")
.setQuery("foo");
assertEquals("http://apache.org/shindig?foo#hello=world&foo=bar", builder.toString());
}
代码示例来源:origin: org.gatein.shindig/shindig-common
@Test
public void addIdenticalFragmentParameters() {
UriBuilder builder = new UriBuilder()
.setScheme("http")
.setAuthority("apache.org")
.setPath("/shindig")
.addFragmentParameter("hello", "world")
.addFragmentParameter("hello", "goodbye")
.setQuery("foo");
assertEquals("http://apache.org/shindig?foo#hello=world&hello=goodbye", builder.toString());
}
代码示例来源:origin: apache/shindig
@Test
public void addTwoFragmentParameters() {
UriBuilder builder = new UriBuilder()
.setScheme("http")
.setAuthority("apache.org")
.setPath("/shindig")
.addFragmentParameter("hello", "world")
.addFragmentParameter("foo", "bar")
.setQuery("foo");
assertEquals("http://apache.org/shindig?foo#hello=world&foo=bar", builder.toString());
}
代码示例来源:origin: apache/shindig
@Test
public void addIdenticalFragmentParameters() {
UriBuilder builder = new UriBuilder()
.setScheme("http")
.setAuthority("apache.org")
.setPath("/shindig")
.addFragmentParameter("hello", "world")
.addFragmentParameter("hello", "goodbye")
.setQuery("foo");
assertEquals("http://apache.org/shindig?foo#hello=world&hello=goodbye", builder.toString());
}
代码示例来源:origin: org.gatein.shindig/shindig-common
@Test
public void addTwoFragmentParameters() {
UriBuilder builder = new UriBuilder()
.setScheme("http")
.setAuthority("apache.org")
.setPath("/shindig")
.addFragmentParameter("hello", "world")
.addFragmentParameter("foo", "bar")
.setQuery("foo");
assertEquals("http://apache.org/shindig?foo#hello=world&foo=bar", builder.toString());
}
代码示例来源:origin: org.wso2.org.apache.shindig/shindig-common
@Test
public void addIdenticalFragmentParameters() {
UriBuilder builder = new UriBuilder()
.setScheme("http")
.setAuthority("apache.org")
.setPath("/shindig")
.addFragmentParameter("hello", "world")
.addFragmentParameter("hello", "goodbye")
.setQuery("foo");
assertEquals("http://apache.org/shindig?foo#hello=world&hello=goodbye", builder.toString());
}
代码示例来源:origin: com.lmco.shindig/shindig-common
@Test
public void addIdenticalFragmentParameters() {
UriBuilder builder = new UriBuilder()
.setScheme("http")
.setAuthority("apache.org")
.setPath("/shindig")
.addFragmentParameter("hello", "world")
.addFragmentParameter("hello", "goodbye")
.setQuery("foo");
assertEquals("http://apache.org/shindig?foo#hello=world&hello=goodbye", builder.toString());
}
代码示例来源:origin: apache/shindig
@Test
public void addSingleFragmentParameter() {
UriBuilder builder = new UriBuilder()
.setScheme("http")
.setAuthority("apache.org")
.setPath("/shindig")
.addFragmentParameter("hello", "world")
.setQuery("foo");
assertEquals("http://apache.org/shindig?foo#hello=world", builder.toString());
}
代码示例来源:origin: org.wso2.org.apache.shindig/shindig-common
@Test
public void addSingleFragmentParameter() {
UriBuilder builder = new UriBuilder()
.setScheme("http")
.setAuthority("apache.org")
.setPath("/shindig")
.addFragmentParameter("hello", "world")
.setQuery("foo");
assertEquals("http://apache.org/shindig?foo#hello=world", builder.toString());
}
代码示例来源:origin: org.apache.shindig/shindig-common
@Test
public void addSingleFragmentParameter() {
UriBuilder builder = new UriBuilder()
.setScheme("http")
.setAuthority("apache.org")
.setPath("/shindig")
.addFragmentParameter("hello", "world")
.setQuery("foo");
assertEquals("http://apache.org/shindig?foo#hello=world", builder.toString());
}
代码示例来源:origin: org.gatein.shindig/shindig-common
@Test
public void addSingleFragmentParameter() {
UriBuilder builder = new UriBuilder()
.setScheme("http")
.setAuthority("apache.org")
.setPath("/shindig")
.addFragmentParameter("hello", "world")
.setQuery("foo");
assertEquals("http://apache.org/shindig?foo#hello=world", builder.toString());
}
代码示例来源:origin: com.lmco.shindig/shindig-common
@Test
public void addSingleFragmentParameter() {
UriBuilder builder = new UriBuilder()
.setScheme("http")
.setAuthority("apache.org")
.setPath("/shindig")
.addFragmentParameter("hello", "world")
.setQuery("foo");
assertEquals("http://apache.org/shindig?foo#hello=world", builder.toString());
}
代码示例来源:origin: org.apache.shindig/shindig-common
@Test
public void fragmentParamsAreEscaped() {
UriBuilder builder = new UriBuilder()
.setScheme("http")
.setAuthority("apache.org")
.setPath("/shindig")
.addFragmentParameter("hello world", "foo&bar")
.setQuery("foo");
assertEquals("http://apache.org/shindig?foo#hello+world=foo%26bar", builder.toString());
assertEquals("hello+world=foo%26bar", builder.getFragment());
}
代码示例来源:origin: org.gatein.shindig/shindig-common
@Test
public void fragmentParamsAreEscaped() {
UriBuilder builder = new UriBuilder()
.setScheme("http")
.setAuthority("apache.org")
.setPath("/shindig")
.addFragmentParameter("hello world", "foo&bar")
.setQuery("foo");
assertEquals("http://apache.org/shindig?foo#hello+world=foo%26bar", builder.toString());
assertEquals("hello+world=foo%26bar", builder.getFragment());
}
代码示例来源:origin: org.wso2.org.apache.shindig/shindig-common
@Test
public void fragmentParamsAreEscaped() {
UriBuilder builder = new UriBuilder()
.setScheme("http")
.setAuthority("apache.org")
.setPath("/shindig")
.addFragmentParameter("hello world", "foo&bar")
.setQuery("foo");
assertEquals("http://apache.org/shindig?foo#hello+world=foo%26bar", builder.toString());
assertEquals("hello+world=foo%26bar", builder.getFragment());
}
代码示例来源:origin: apache/shindig
@Test
public void fragmentParamsAreEscaped() {
UriBuilder builder = new UriBuilder()
.setScheme("http")
.setAuthority("apache.org")
.setPath("/shindig")
.addFragmentParameter("hello world", "foo&bar")
.setQuery("foo");
assertEquals("http://apache.org/shindig?foo#hello+world=foo%26bar", builder.toString());
assertEquals("hello+world=foo%26bar", builder.getFragment());
}
代码示例来源:origin: com.lmco.shindig/shindig-common
@Test
public void fragmentParamsAreEscaped() {
UriBuilder builder = new UriBuilder()
.setScheme("http")
.setAuthority("apache.org")
.setPath("/shindig")
.addFragmentParameter("hello world", "foo&bar")
.setQuery("foo");
assertEquals("http://apache.org/shindig?foo#hello+world=foo%26bar", builder.toString());
assertEquals("hello+world=foo%26bar", builder.getFragment());
}
内容来源于网络,如有侵权,请联系作者删除!