本文整理了Java中org.restlet.data.Reference.getHierarchicalPart
方法的一些代码示例,展示了Reference.getHierarchicalPart
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Reference.getHierarchicalPart
方法的具体详情如下:
包路径:org.restlet.data.Reference
类名称:Reference
方法名:getHierarchicalPart
[英]Returns the hierarchical part which is equivalent to the scheme specific part less the query component.
Note that no URI decoding is done by this method.
[中]返回层次结构部分,该部分相当于方案特定部分减去查询组件。
请注意,此方法不会执行URI解码。
代码示例来源:origin: org.restlet/org.restlet
/**
* Returns the optionnally decoded hierarchical part.
*
* @param decode
* Indicates if the result should be decoded using the
* {@link #decode(String)} method.
* @return The optionnally decoded hierarchical part.
* @see #getHierarchicalPart()
*/
public String getHierarchicalPart(boolean decode) {
return decode ? decode(getHierarchicalPart()) : getHierarchicalPart();
}
代码示例来源:origin: DeviceConnect/DeviceConnect-Android
/**
* Returns the optionnally decoded hierarchical part.
*
* @param decode
* Indicates if the result should be decoded using the
* {@link #decode(String)} method.
* @return The optionnally decoded hierarchical part.
* @see #getHierarchicalPart()
*/
public String getHierarchicalPart(boolean decode) {
return decode ? decode(getHierarchicalPart()) : getHierarchicalPart();
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Returns the optionnally decoded hierarchical part.
*
* @param decode
* Indicates if the result should be decoded using the {@link #decode(String)} method.
* @return The optionnally decoded hierarchical part.
* @see #getHierarchicalPart()
*/
public String getHierarchicalPart(boolean decode) {
return decode ? decode(getHierarchicalPart()) : getHierarchicalPart();
}
内容来源于网络,如有侵权,请联系作者删除!