org.apache.catalina.connector.Request.setCometTimeout()方法的使用及代码示例

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

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

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();
  }
}

相关文章

Request类方法