本文整理了Java中org.restlet.data.Reference.getFragment
方法的一些代码示例,展示了Reference.getFragment
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Reference.getFragment
方法的具体详情如下:
包路径:org.restlet.data.Reference
类名称:Reference
方法名:getFragment
[英]Returns the fragment identifier.
Note that no URI decoding is done by this method.
[中]返回片段标识符。
请注意,此方法不会执行URI解码。
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Returns the optionnally decoded fragment identifier.
*
* @param decode
* Indicates if the result should be decoded using the {@link #decode(String)} method.
* @return The optionnally decoded fragment identifier.
* @see #getFragment()
*/
public String getFragment(boolean decode) {
return decode ? decode(getFragment()) : getFragment();
}
代码示例来源:origin: DeviceConnect/DeviceConnect-Android
/**
* Returns the optionnally decoded fragment identifier.
*
* @param decode
* Indicates if the result should be decoded using the
* {@link #decode(String)} method.
* @return The optionnally decoded fragment identifier.
* @see #getFragment()
*/
public String getFragment(boolean decode) {
return decode ? decode(getFragment()) : getFragment();
}
代码示例来源:origin: org.restlet/org.restlet
/**
* Returns the optionnally decoded fragment identifier.
*
* @param decode
* Indicates if the result should be decoded using the
* {@link #decode(String)} method.
* @return The optionnally decoded fragment identifier.
* @see #getFragment()
*/
public String getFragment(boolean decode) {
return decode ? decode(getFragment()) : getFragment();
}
代码示例来源:origin: org.restlet/org.restlet
/**
* Sets the referrer reference if available.
*
* @param referrerRef
* The referrer reference.
*/
public void setReferrerRef(Reference referrerRef) {
this.referrerRef = referrerRef;
// A referrer reference must not include a fragment.
if ((this.referrerRef != null)
&& (this.referrerRef.getFragment() != null)) {
this.referrerRef.setFragment(null);
}
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Sets the referrer reference if available. Note that when used with HTTP
* connectors, this property maps to the "Referer" header.
*
* @param referrerRef
* The referrer reference.
*/
public void setReferrerRef(Reference referrerRef) {
this.referrerRef = referrerRef;
// A referrer reference must not include a fragment.
if ((this.referrerRef != null)
&& (this.referrerRef.getFragment() != null)) {
this.referrerRef.setFragment(null);
}
}
代码示例来源:origin: org.restlet.osgi/org.restlet
+ getFragment();
代码示例来源:origin: org.restlet/org.restlet
result = reference.getRelativePart();
} else if (partName.equals("f")) {
result = reference.getFragment();
} else if (partName.equals("h")) {
result = reference.getHostIdentifier();
代码示例来源:origin: org.restlet/org.restlet
+ getFragment();
代码示例来源:origin: DeviceConnect/DeviceConnect-Android
+ getFragment();
代码示例来源:origin: org.restlet.osgi/org.restlet
final String fragment = getFragment();
boolean modified = false;
if ((fragment != null) && (!fragment.equals(base.getFragment()))) {
result.setFragment(fragment);
modified = true;
代码示例来源:origin: DeviceConnect/DeviceConnect-Android
final String fragment = getFragment();
boolean modified = false;
if ((fragment != null) && (!fragment.equals(base.getFragment()))) {
result.setFragment(fragment);
modified = true;
代码示例来源:origin: org.restlet/org.restlet
final String fragment = getFragment();
boolean modified = false;
if ((fragment != null) && (!fragment.equals(base.getFragment()))) {
result.setFragment(fragment);
modified = true;
代码示例来源:origin: org.restlet.osgi/org.restlet
return reference.getRelativePart();
case "f":
return reference.getFragment();
case "h":
return reference.getHostIdentifier();
代码示例来源:origin: org.restlet.jee/org.restlet.ext.jaxrs
/**
* @param ref
* @param b
* @return
* @throws IllegalArgumentException
*/
private UriBuilder fillUriBuilder(Reference ref, final UriBuilder b)
throws IllegalArgumentException {
b.scheme(ref.getScheme(false));
b.userInfo(ref.getUserInfo(false));
b.host(ref.getHostDomain(false));
b.port(ref.getHostPort());
b.path(ref.getPath(false));
b.replaceQuery(ref.getQuery(false));
b.fragment(ref.getFragment(false));
return b;
}
代码示例来源:origin: DeviceConnect/DeviceConnect-Android
String path = getPath();
String query = getQuery();
String fragment = getFragment();
代码示例来源:origin: org.restlet/org.restlet
final String path = getPath();
final String query = getQuery();
final String fragment = getFragment();
代码示例来源:origin: org.restlet.osgi/org.restlet
String path = getPath();
String query = getQuery();
String fragment = getFragment();
内容来源于网络,如有侵权,请联系作者删除!