本文整理了Java中org.apache.catalina.connector.Request.checkSwallowInput
方法的一些代码示例,展示了Request.checkSwallowInput
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.checkSwallowInput
方法的具体详情如下:
包路径:org.apache.catalina.connector.Request
类名称:Request
方法名:checkSwallowInput
[英]Disable swallowing of remaining input if configured
[中]禁用吞咽剩余输入(如果已配置)
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
/**
* Perform whatever actions are required to flush and close the input
* stream or reader, in a single operation.
*
* @exception IOException if an input/output error occurs
*/
public void finishRequest() throws IOException {
if (response.getStatus() == HttpServletResponse.SC_REQUEST_ENTITY_TOO_LARGE) {
checkSwallowInput();
}
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
/**
* Perform whatever actions are required to flush and close the input
* stream or reader, in a single operation.
*
* @exception IOException if an input/output error occurs
*/
public void finishRequest() throws IOException {
if (response.getStatus() == HttpServletResponse.SC_REQUEST_ENTITY_TOO_LARGE) {
checkSwallowInput();
}
}
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
(body.getLength() + len) > connector.getMaxPostSize()) {
checkSwallowInput();
throw new IOException(
sm.getString("coyoteRequest.chunkedPostTooLarge"));
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
(body.getLength() + len) > connector.getMaxPostSize()) {
checkSwallowInput();
throw new IOException(
sm.getString("coyoteRequest.chunkedPostTooLarge"));
代码示例来源:origin: codefollower/Tomcat-Research
(body.getLength() + len) > connector.getMaxPostSize()) {
checkSwallowInput();
throw new IOException(
sm.getString("coyoteRequest.chunkedPostTooLarge"));
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
(body.getLength() + len) > connector.getMaxPostSize()) {
checkSwallowInput();
throw new IllegalStateException(
sm.getString("coyoteRequest.chunkedPostTooLarge"));
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
(body.getLength() + len) > connector.getMaxPostSize()) {
checkSwallowInput();
throw new IllegalStateException(
sm.getString("coyoteRequest.chunkedPostTooLarge"));
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
} catch (FileUploadBase.SizeException e) {
parameters.setParseFailedReason(FailReason.POST_TOO_LARGE);
checkSwallowInput();
partsParseException = new IllegalStateException(e);
} catch (FileUploadException e) {
} catch (IllegalStateException e) {
checkSwallowInput();
partsParseException = e;
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
partsParseException = new ServletException(e);
} catch (FileUploadBase.SizeException e) {
checkSwallowInput();
partsParseException = new IllegalStateException(e);
} catch (FileUploadException e) {
partsParseException = new IOException(e);
} catch (IllegalStateException e) {
checkSwallowInput();
partsParseException = e;
代码示例来源:origin: codefollower/Tomcat-Research
partsParseException = new ServletException(e);
} catch (FileUploadBase.SizeException e) {
checkSwallowInput();
partsParseException = new IllegalStateException(e);
} catch (FileUploadException e) {
partsParseException = new IOException(e);
} catch (IllegalStateException e) {
checkSwallowInput();
partsParseException = e;
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
partsParseException = new ServletException(e);
} catch (FileUploadBase.SizeException e) {
checkSwallowInput();
partsParseException = new IllegalStateException(e);
} catch (FileUploadException e) {
partsParseException = new IOException(e);
} catch (IllegalStateException e) {
checkSwallowInput();
partsParseException = e;
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
} catch (FileUploadBase.SizeException e) {
parameters.setParseFailedReason(FailReason.POST_TOO_LARGE);
checkSwallowInput();
partsParseException = new IllegalStateException(e);
} catch (FileUploadException e) {
} catch (IllegalStateException e) {
checkSwallowInput();
partsParseException = e;
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
sm.getString("coyoteRequest.postTooLarge"));
checkSwallowInput();
return;
代码示例来源:origin: codefollower/Tomcat-Research
sm.getString("coyoteRequest.postTooLarge"));
checkSwallowInput();
return;
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
sm.getString("coyoteRequest.postTooLarge"));
checkSwallowInput();
return;
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
sm.getString("coyoteRequest.postTooLarge"));
checkSwallowInput();
parameters.setParseFailedReason(FailReason.POST_TOO_LARGE);
return;
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
sm.getString("coyoteRequest.postTooLarge"));
checkSwallowInput();
parameters.setParseFailedReason(FailReason.POST_TOO_LARGE);
return;
内容来源于网络,如有侵权,请联系作者删除!