org.apache.coyote.Response.reset()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(187)

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

Response.reset介绍

暂无

代码示例

代码示例来源:origin: tomcat/catalina

/**
 * Clear any content written to the buffer.
 *
 * @exception IllegalStateException if this response has already
 *  been committed
 */
public void reset() {
  if (included)
    return;     // Ignore any call from an included servlet
  coyoteResponse.reset();
  outputBuffer.reset();
}

代码示例来源:origin: org.osivia.portal.core/osivia-portal-jbossas-jbossweb-lib

/*      */   public void reset()
/*      */   {
/*  649 */     if (this.included) {
/*  650 */       return;
/*      */     }
/*  652 */     this.coyoteResponse.reset();
/*  653 */     this.outputBuffer.reset();
/*      */   }
/*      */

代码示例来源:origin: jboss.web/jbossweb

/**
 * Clear any content written to the buffer.
 *
 * @exception IllegalStateException if this response has already
 *  been committed
 */
public void reset() {
  if (included)
    return;     // Ignore any call from an included servlet
  coyoteResponse.reset();
  outputBuffer.reset();
  usingOutputStream = false;
  usingWriter = false;
  isCharacterEncodingSet = false;
}

代码示例来源:origin: org.jboss.web/jbossweb

/**
 * Clear any content written to the buffer.
 *
 * @exception IllegalStateException if this response has already
 *  been committed
 */
public void reset() {
  if (included)
    return;     // Ignore any call from an included servlet
  coyoteResponse.reset();
  outputBuffer.reset();
  usingOutputStream = false;
  usingWriter = false;
  isCharacterEncodingSet = false;
}

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

/**
 * Clear any content written to the buffer.
 *
 * @exception IllegalStateException if this response has already
 *  been committed
 */
@Override
public void reset() {
  if (included)
    return;     // Ignore any call from an included servlet
  coyoteResponse.reset();
  outputBuffer.reset();
  usingOutputStream = false;
  usingWriter = false;
  isCharacterEncodingSet = false;
}

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

/**
 * Clear any content written to the buffer.
 *
 * @exception IllegalStateException if this response has already
 *  been committed
 */
@Override
public void reset() {
  if (included)
   {
    return;     // Ignore any call from an included servlet
  }
  coyoteResponse.reset();
  outputBuffer.reset();
  usingOutputStream = false;
  usingWriter = false;
  isCharacterEncodingSet = false;
}

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

/**
 * Clear any content written to the buffer.
 *
 * @exception IllegalStateException if this response has already
 *  been committed
 */
@Override
public void reset() {
  if (included)
    return;     // Ignore any call from an included servlet
  coyoteResponse.reset();
  outputBuffer.reset();
  usingOutputStream = false;
  usingWriter = false;
  isCharacterEncodingSet = false;
}

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

/**
 * Clear any content written to the buffer.
 *
 * @exception IllegalStateException if this response has already
 *  been committed
 */
@Override
public void reset() {
  if (included)
    return;     // Ignore any call from an included servlet
  coyoteResponse.reset();
  outputBuffer.reset();
  usingOutputStream = false;
  usingWriter = false;
  isCharacterEncodingSet = false;
}

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

/**
 * Clear any content written to the buffer.
 *
 * @exception IllegalStateException if this response has already
 *  been committed
 */
@Override
public void reset() {
  if (included)
   {
    return;     // Ignore any call from an included servlet
  }
  coyoteResponse.reset();
  outputBuffer.reset();
  usingOutputStream = false;
  usingWriter = false;
  isCharacterEncodingSet = false;
}

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

/**
 * Clear any content written to the buffer.
 *
 * @exception IllegalStateException if this response has already
 *  been committed
 */
@Override
public void reset() {
  if (included)
   {
    return;     // Ignore any call from an included servlet
  }
  coyoteResponse.reset();
  outputBuffer.reset();
  usingOutputStream = false;
  usingWriter = false;
  isCharacterEncodingSet = false;
}

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

/**
 * Clear any content written to the buffer.
 *
 * @exception IllegalStateException if this response has already
 *  been committed
 */
@Override
public void reset() {
  // Ignore any call from an included servlet
  if (included) {
    return;
  }
  getCoyoteResponse().reset();
  outputBuffer.reset();
  usingOutputStream = false;
  usingWriter = false;
  isCharacterEncodingSet = false;
}

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Clear any content written to the buffer.
 *
 * @exception IllegalStateException if this response has already
 *  been committed
 */
@Override
public void reset() {
  // Ignore any call from an included servlet
  if (included) {
    return;
  }
  getCoyoteResponse().reset();
  outputBuffer.reset();
  usingOutputStream = false;
  usingWriter = false;
  isCharacterEncodingSet = false;
}

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

setErrorState(ErrorState.CLOSE_NOW, e);
} else {
  response.reset();
  response.setStatus(500);
  setErrorState(ErrorState.CLOSE_CLEAN, e);

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

response.reset();
response.setStatus(500);
response.setHeader("Connection", "close");

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

response.reset();
response.setStatus(500);
response.setHeader("Connection", "close");

相关文章