本文整理了Java中org.restlet.data.Status.isInformational()
方法的一些代码示例,展示了Status.isInformational()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Status.isInformational()
方法的具体详情如下:
包路径:org.restlet.data.Status
类名称:Status
方法名:isInformational
[英]Indicates if the status is an information status, meaning "request received, continuing process".
[中]指示状态是否为信息状态,表示“已收到请求,正在继续处理”。
代码示例来源:origin: org.restlet/org.restlet
/**
* Indicates if the status is an information status.
*
* @param code
* The code of the status.
* @return True if the status is an information status.
* @deprecated Use {@link #isInformational(int)} instead.
*/
@Deprecated
public static boolean isInfo(int code) {
return isInformational(code);
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Indicates if the status is an information status, meaning "request
* received, continuing process".
*
* @return True if the status is an information status.
*/
public boolean isInformational() {
return isInformational(getCode());
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Indicates if the response is provisional or final. It relies on the {@link Status#isInformational()} method.
*
* @return True if the response is provisional.
*/
public boolean isProvisional() {
return getStatus().isInformational();
}
代码示例来源:origin: org.restlet/org.restlet
/**
* Indicates if the status is an information status, meaning "request
* received, continuing process".
*
* @return True if the status is an information status.
*/
public boolean isInformational() {
return isInformational(getCode());
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Indicates if the response is final or provisional. It relies on the {@link Status#isInformational()} method.
*
* @return True if the response is final.
*/
public boolean isFinal() {
return !getStatus().isInformational();
}
代码示例来源:origin: DeviceConnect/DeviceConnect-Android
/**
* Indicates if the status is an information status, meaning "request
* received, continuing process".
*
* @return True if the status is an information status.
*/
public boolean isInformational() {
return isInformational(getCode());
}
代码示例来源:origin: org.restlet.jse/org.restlet.example
public void handle(Request req, Response resp) {
SipResponse r = (SipResponse) resp;
if (!resp.getStatus().isInformational()) {
代码示例来源:origin: org.restlet.osgi/org.restlet
&& !response.getStatus().isInformational()
&& !response.getStatus().equals(REDIRECTION_NOT_MODIFIED)
&& !response.getStatus().equals(SUCCESS_NO_CONTENT)
代码示例来源:origin: org.restlet.osgi/org.restlet
response.setEntity(null);
} else if (response.getStatus().isInformational()) {
if (response.isEntityAvailable()) {
getLogger()
代码示例来源:origin: org.restlet.osgi/org.restlet
Status.REDIRECTION_NOT_MODIFIED)) {
response.getEntity().release();
} else if (response.getStatus().isInformational()) {
response.getEntity().release();
response.setEntity(null);
内容来源于网络,如有侵权,请联系作者删除!