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

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

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

Reference.getUserInfo介绍

[英]Returns the user info component for server based hierarchical identifiers.
Note that no URI decoding is done by this method.
[中]返回基于服务器的层次标识符的用户信息组件。
请注意,此方法不会执行URI解码。

代码示例

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

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

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

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

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

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

代码示例来源: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;
}

相关文章

Reference类方法