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

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

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

Reference.getSchemeSpecificPart介绍

[英]Returns the scheme specific part.
Note that no URI decoding is done by this method.
[中]返回特定于方案的部分。
请注意,此方法不会执行URI解码。

代码示例

代码示例来源:origin: org.restlet.osgi/org.restlet

/**
 * Returns the optionnally decoded scheme specific part.
 * 
 * @param decode
 *            Indicates if the result should be decoded using the {@link #decode(String)} method.
 * @return The optionnally decoded scheme specific part.
 * @see #getSchemeSpecificPart()
 */
public String getSchemeSpecificPart(boolean decode) {
  return decode ? decode(getSchemeSpecificPart())
      : getSchemeSpecificPart();
}

代码示例来源:origin: org.restlet/org.restlet

/**
 * Returns the optionnally decoded scheme specific part.
 * 
 * @param decode
 *            Indicates if the result should be decoded using the
 *            {@link #decode(String)} method.
 * @return The optionnally decoded scheme specific part.
 * @see #getSchemeSpecificPart()
 */
public String getSchemeSpecificPart(boolean decode) {
  return decode ? decode(getSchemeSpecificPart())
      : getSchemeSpecificPart();
}

代码示例来源:origin: DeviceConnect/DeviceConnect-Android

/**
 * Returns the optionnally decoded scheme specific part.
 * 
 * @param decode
 *            Indicates if the result should be decoded using the
 *            {@link #decode(String)} method.
 * @return The optionnally decoded scheme specific part.
 * @see #getSchemeSpecificPart()
 */
public String getSchemeSpecificPart(boolean decode) {
  return decode ? decode(getSchemeSpecificPart())
      : getSchemeSpecificPart();
}

代码示例来源:origin: org.restlet.osgi/org.restlet

/**
 * Indicates if the identifier is opaque.
 * 
 * @return True if the identifier is opaque, false if it is hierarchical.
 */
public boolean isOpaque() {
  return isAbsolute() && (getSchemeSpecificPart().charAt(0) != '/');
}

代码示例来源:origin: org.restlet/org.restlet

/**
 * Indicates if the identifier is hierarchical.
 * 
 * @return True if the identifier is hierarchical, false if it is opaque.
 */
public boolean isHierarchical() {
  return isRelative() || (getSchemeSpecificPart().charAt(0) == '/');
}

代码示例来源:origin: org.restlet/org.restlet

/**
 * Indicates if the identifier is opaque.
 * 
 * @return True if the identifier is opaque, false if it is hierarchical.
 */
public boolean isOpaque() {
  return isAbsolute() && (getSchemeSpecificPart().charAt(0) != '/');
}

代码示例来源:origin: org.restlet.osgi/org.restlet

/**
 * Indicates if the identifier is hierarchical.
 * 
 * @return True if the identifier is hierarchical, false if it is opaque.
 */
public boolean isHierarchical() {
  return isRelative() || (getSchemeSpecificPart().charAt(0) == '/');
}

代码示例来源:origin: DeviceConnect/DeviceConnect-Android

/**
 * Indicates if the identifier is hierarchical.
 * 
 * @return True if the identifier is hierarchical, false if it is opaque.
 */
public boolean isHierarchical() {
  return isRelative() || (getSchemeSpecificPart().charAt(0) == '/');
}

代码示例来源:origin: DeviceConnect/DeviceConnect-Android

/**
 * Indicates if the identifier is opaque.
 * 
 * @return True if the identifier is opaque, false if it is hierarchical.
 */
public boolean isOpaque() {
  return isAbsolute() && (getSchemeSpecificPart().charAt(0) != '/');
}

代码示例来源:origin: org.restlet/org.restlet

/**
 * Returns the authority component for hierarchical identifiers. Includes
 * the user info, host name and the host port number.<br>
 * Note that no URI decoding is done by this method.
 * 
 * @return The authority component for hierarchical identifiers.
 */
public String getAuthority() {
  final String part = isRelative() ? getRelativePart()
      : getSchemeSpecificPart();
  if ((part != null) && part.startsWith("//")) {
    int index = part.indexOf('/', 2);
    if (index != -1) {
      return part.substring(2, index);
    }
    index = part.indexOf('?');
    if (index != -1) {
      return part.substring(2, index);
    }
    return part.substring(2);
  }
  return null;
}

代码示例来源:origin: org.restlet.osgi/org.restlet

/**
 * Returns the authority component for hierarchical identifiers. Includes
 * the user info, host name and the host port number.<br>
 * Note that no URI decoding is done by this method.
 * 
 * @return The authority component for hierarchical identifiers.
 */
public String getAuthority() {
  final String part = isRelative() ? getRelativePart()
      : getSchemeSpecificPart();
  if ((part != null) && part.startsWith("//")) {
    int index = part.indexOf('/', 2);
    if (index != -1) {
      return part.substring(2, index);
    }
    index = part.indexOf('?');
    if (index != -1) {
      return part.substring(2, index);
    }
    return part.substring(2);
  }
  return null;
}

代码示例来源:origin: DeviceConnect/DeviceConnect-Android

/**
 * Returns the authority component for hierarchical identifiers. Includes
 * the user info, host name and the host port number.<br>
 * Note that no URI decoding is done by this method.
 * 
 * @return The authority component for hierarchical identifiers.
 */
public String getAuthority() {
  final String part = isRelative() ? getRelativePart()
      : getSchemeSpecificPart();
  if ((part != null) && part.startsWith("//")) {
    int index = part.indexOf('/', 2);
    if (index != -1) {
      return part.substring(2, index);
    }
    index = part.indexOf('?');
    if (index != -1) {
      return part.substring(2, index);
    }
    return part.substring(2);
  }
  return null;
}

代码示例来源:origin: org.restlet.osgi/org.restlet

String result = null;
String part = isRelative() ? getRelativePart()
    : getSchemeSpecificPart();

代码示例来源:origin: org.restlet/org.restlet

String result = null;
final String part = isRelative() ? getRelativePart()
    : getSchemeSpecificPart();

代码示例来源:origin: DeviceConnect/DeviceConnect-Android

String result = null;
String part = isRelative() ? getRelativePart()
    : getSchemeSpecificPart();

代码示例来源:origin: org.restlet/org.restlet

: getSchemeSpecificPart();
String newPart = null;

代码示例来源:origin: org.restlet/org.restlet

: getSchemeSpecificPart();
String newPart;
final String newAuthority = (authority == null) ? "" : "//" + authority;

代码示例来源:origin: org.restlet.osgi/org.restlet

: getSchemeSpecificPart();
String newPart = null;

代码示例来源:origin: org.restlet.osgi/org.restlet

: getSchemeSpecificPart();
String newPart;
final String newAuthority = (authority == null) ? "" : "//" + authority;

代码示例来源:origin: DeviceConnect/DeviceConnect-Android

: getSchemeSpecificPart();
String newPart;
final String newAuthority = (authority == null) ? "" : "//" + authority;

相关文章

Reference类方法