本文整理了Java中org.apache.catalina.connector.Request.setCometTimeout
方法的一些代码示例,展示了Request.setCometTimeout
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.setCometTimeout
方法的具体详情如下:
包路径:org.apache.catalina.connector.Request
类名称:Request
方法名:setCometTimeout
暂无
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
public void setTimeout(int timeout) throws IOException, ServletException,
UnsupportedOperationException {
if (request.getAttribute("org.apache.tomcat.comet.timeout.support") == Boolean.TRUE) {
request.setAttribute("org.apache.tomcat.comet.timeout", Integer.valueOf(timeout));
if (request.isComet()) request.setCometTimeout(timeout);
} else {
throw new UnsupportedOperationException();
}
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
public void setTimeout(int timeout) throws IOException, ServletException,
UnsupportedOperationException {
if (request.getAttribute("org.apache.tomcat.comet.timeout.support") == Boolean.TRUE) {
request.setAttribute("org.apache.tomcat.comet.timeout", Integer.valueOf(timeout));
if (request.isComet()) request.setCometTimeout(timeout);
} else {
throw new UnsupportedOperationException();
}
}
代码示例来源:origin: codefollower/Tomcat-Research
@Override
public void setTimeout(int timeout) throws IOException, ServletException,
UnsupportedOperationException {
if (request.getAttribute(Globals.COMET_TIMEOUT_SUPPORTED_ATTR) ==
Boolean.TRUE) {
request.setAttribute(Globals.COMET_TIMEOUT_ATTR,
Integer.valueOf(timeout));
if (request.isComet()) {
request.setCometTimeout(timeout);
}
} else {
throw new UnsupportedOperationException();
}
}
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
@Override
public void setTimeout(int timeout) throws IOException, ServletException,
UnsupportedOperationException {
if (request.getAttribute("org.apache.tomcat.comet.timeout.support") == Boolean.TRUE) {
request.setAttribute("org.apache.tomcat.comet.timeout", Integer.valueOf(timeout));
if (request.isComet()) {
request.setCometTimeout(timeout);
}
} else {
throw new UnsupportedOperationException();
}
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
public void setTimeout(int timeout) throws IOException, ServletException,
UnsupportedOperationException {
if (request.getAttribute("org.apache.tomcat.comet.timeout.support") == Boolean.TRUE) {
request.setAttribute("org.apache.tomcat.comet.timeout", Integer.valueOf(timeout));
if (request.isComet()) request.setCometTimeout(timeout);
} else {
throw new UnsupportedOperationException();
}
}
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
@Override
public void setTimeout(int timeout) throws IOException, ServletException,
UnsupportedOperationException {
if (request.getAttribute(Globals.COMET_TIMEOUT_SUPPORTED_ATTR) ==
Boolean.TRUE) {
request.setAttribute(Globals.COMET_TIMEOUT_ATTR,
Integer.valueOf(timeout));
if (request.isComet()) {
request.setCometTimeout(timeout);
}
} else {
throw new UnsupportedOperationException();
}
}
内容来源于网络,如有侵权,请联系作者删除!