本文整理了Java中org.restlet.data.Status.getUri()
方法的一些代码示例,展示了Status.getUri()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Status.getUri()
方法的具体详情如下:
包路径:org.restlet.data.Status
类名称: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());
}
内容来源于网络,如有侵权,请联系作者删除!