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

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

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

Request.isComet介绍

[英]Return true if the current request is handling Comet traffic.
[中]如果当前请求正在处理Comet流量,则返回true。

代码示例

代码示例来源: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: 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: 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();
  }
}

代码示例来源: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: codefollower/Tomcat-Research

@Override
public void close() throws IOException {
  if (request == null) {
    throw new IllegalStateException(sm.getString("cometEvent.nullRequest"));
  }
  request.finishRequest();
  response.finishResponse();
  if (request.isComet()) {
    request.cometClose();
  }
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

@Override
public void close() throws IOException {
  if (request == null) {
    throw new IllegalStateException(sm.getString("cometEvent.nullRequest"));
  }
  request.finishRequest();
  response.finishResponse();
  if (request.isComet()) {
    request.cometClose();
  }
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

public void close() throws IOException {
  if (request == null) {
    throw new IllegalStateException(sm.getString("cometEvent.nullRequest"));
  }
  boolean iscomet = request.isComet();
  request.setComet(false);
  response.finishResponse();
  if (iscomet) request.cometClose();
}

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

@Override
public void close() throws IOException {
  if (request == null) {
    throw new IllegalStateException(sm.getString("cometEvent.nullRequest"));
  }
  request.finishRequest();
  response.finishResponse();
  if (request.isComet()) {
    request.cometClose();
  }
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

public void close() throws IOException {
  if (request == null) {
    throw new IllegalStateException(sm.getString("cometEvent.nullRequest"));
  }
  boolean iscomet = request.isComet();
  request.setComet(false);
  response.finishResponse();
  if (iscomet) request.cometClose();
}

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

public void close() throws IOException {
  if (request == null) {
    throw new IllegalStateException(sm.getString("cometEvent.nullRequest"));
  }
  boolean iscomet = request.isComet();
  request.setComet(false);
  response.finishResponse();
  if (iscomet) request.cometClose();
}

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

if (request.isComet() && !response.isClosed()) {

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

if (request.isComet() && !response.isClosed()) {

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

if (request.isComet() && !response.isClosed()) {

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

if (request.isComet() && !response.isClosed()) {

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

if (request.isComet() && !response.isClosed()) {

代码示例来源:origin: codefollower/Tomcat-Research

if (request.isComet() && !response.isClosed()) {

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

if (request.isComet()) {
  if (!response.isClosed() && !response.isError()) {
    if (request.getAvailable() || (request.getContentLength() > 0 && (!request.isParametersParsed()))) {

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

if (request.isComet()) {
  if (!response.isClosed() && !response.isError()) {
    if (request.getAvailable() || (request.getContentLength() > 0 && (!request.isParametersParsed()))) {

相关文章

Request类方法