org.restlet.data.Reference.getHierarchicalPart()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(103)

本文整理了Java中org.restlet.data.Reference.getHierarchicalPart方法的一些代码示例,展示了Reference.getHierarchicalPart的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Reference.getHierarchicalPart方法的具体详情如下:
包路径:org.restlet.data.Reference
类名称:Reference
方法名:getHierarchicalPart

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();
}

相关文章

Reference类方法