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

x33g5p2x  于2022-01-30 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(112)

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

Status.getUri介绍

[英]Returns the URI of the specification describing the status.
[中]返回描述状态的规范的URI。

代码示例

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

/**
 * Constructor.
 * 
 * @param status
 *            The status to copy.
 * @param throwable
 *            The related error or exception.
 */
public Status(final Status status, final Throwable throwable) {
  this(status.getCode(), throwable, status.getName(),
      (throwable == null) ? null : throwable.getMessage(), status
          .getUri());
}

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

/**
 * Constructor.
 * 
 * @param status
 *            The status to copy.
 * @param description
 *            The description to associate.
 */
public Status(final Status status, final String description) {
  this(status.getCode(), status.getName(), description, status.getUri());
}

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

/**
 * Constructor.
 * 
 * @param status
 *            The status to copy.
 * @param throwable
 *            The related error or exception.
 * @param description
 *            The description to associate.
 */
public Status(final Status status, final Throwable throwable,
    final String description) {
  this(status.getCode(), throwable, status.getName(), description, status
      .getUri());
}

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

/**
 * Constructor.
 * 
 * @param status
 *            The represented status.
 * @param contactEmail
 *            The email address of the administrator to contact in case of
 *            error.
 * @param homeRef
 *            The home URI to propose in case of error.
 */
public StatusInfo(Status status, String contactEmail, String homeRef) {
  this(status.getCode(), status.getDescription(), status
      .getReasonPhrase(), status.getUri(), contactEmail, homeRef);
}

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

/**
 * Constructor.
 * 
 * @param status
 *            The status to copy.
 * @param throwable
 *            The related error or exception.
 * @param description
 *            The description to associate.
 */
public Status(Status status, Throwable throwable, String description) {
  this(status.getCode(), (throwable == null) ? status.getThrowable()
      : throwable, status.getReasonPhrase(),
      (description == null) ? status.getDescription() : description,
      status.getUri());
}

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

/**
 * Constructor.
 * 
 * @param status
 *            The status to copy.
 * @param throwable
 *            The related error or exception.
 * @param reasonPhrase
 *            The short reason phrase displayed next to the status code in a
 *            HTTP response.
 * @param description
 *            The description to associate.
 */
public Status(Status status, Throwable throwable, String reasonPhrase,
    String description) {
  this(status.getCode(), (throwable == null) ? status.getThrowable()
      : throwable, (reasonPhrase == null) ? status.getReasonPhrase()
      : reasonPhrase, (description == null) ? status.getDescription()
      : description, status.getUri());
}

相关文章