本文整理了Java中org.apache.catalina.Context.getSwallowOutput()
方法的一些代码示例,展示了Context.getSwallowOutput()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Context.getSwallowOutput()
方法的具体详情如下:
包路径:org.apache.catalina.Context
类名称:Context
方法名:getSwallowOutput
[英]Return the value of the swallowOutput flag.
[中]返回输出标志的值。
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
private void initFilter() throws ServletException {
if (context instanceof StandardContext &&
context.getSwallowOutput()) {
try {
SystemLogHandler.startCapture();
filter.init(this);
} finally {
String capturedlog = SystemLogHandler.stopCapture();
if (capturedlog != null && capturedlog.length() > 0) {
getServletContext().log(capturedlog);
}
}
} else {
filter.init(this);
}
// Expose filter via JMX
registerJMX();
}
代码示例来源:origin: codefollower/Tomcat-Research
private void initFilter() throws ServletException {
if (context instanceof StandardContext &&
context.getSwallowOutput()) {
try {
SystemLogHandler.startCapture();
filter.init(this);
} finally {
String capturedlog = SystemLogHandler.stopCapture();
if (capturedlog != null && capturedlog.length() > 0) {
getServletContext().log(capturedlog);
}
}
} else {
filter.init(this);
}
// Expose filter via JMX
registerJMX();
}
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
private void initFilter() throws ServletException {
if (context instanceof StandardContext &&
context.getSwallowOutput()) {
try {
SystemLogHandler.startCapture();
filter.init(this);
} finally {
String capturedlog = SystemLogHandler.stopCapture();
if (capturedlog != null && capturedlog.length() > 0) {
getServletContext().log(capturedlog);
}
}
} else {
filter.init(this);
}
// Expose filter via JMX
registerJMX();
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
private void initFilter() throws ServletException {
if (context instanceof StandardContext &&
context.getSwallowOutput()) {
try {
SystemLogHandler.startCapture();
filter.init(this);
} finally {
String capturedlog = SystemLogHandler.stopCapture();
if (capturedlog != null && capturedlog.length() > 0) {
getServletContext().log(capturedlog);
}
}
} else {
filter.init(this);
}
// Expose filter via JMX
registerJMX();
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
private void initFilter() throws ServletException {
if (context instanceof StandardContext &&
context.getSwallowOutput()) {
try {
SystemLogHandler.startCapture();
filter.init(this);
} finally {
String capturedlog = SystemLogHandler.stopCapture();
if (capturedlog != null && capturedlog.length() > 0) {
getServletContext().log(capturedlog);
}
}
} else {
filter.init(this);
}
// Expose filter via JMX
registerJMX();
}
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
private void initFilter() throws ServletException {
if (context instanceof StandardContext &&
context.getSwallowOutput()) {
try {
SystemLogHandler.startCapture();
filter.init(this);
} finally {
String capturedlog = SystemLogHandler.stopCapture();
if (capturedlog != null && capturedlog.length() > 0) {
getServletContext().log(capturedlog);
}
}
} else {
filter.init(this);
}
// Expose filter via JMX
registerJMX();
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
private void initFilter() throws ServletException {
if (context instanceof StandardContext &&
context.getSwallowOutput()) {
try {
SystemLogHandler.startCapture();
filter.init(this);
} finally {
String capturedlog = SystemLogHandler.stopCapture();
if (capturedlog != null && capturedlog.length() > 0) {
getServletContext().log(capturedlog);
}
}
} else {
filter.init(this);
}
// Expose filter via JMX
registerJMX();
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
private void initFilter() throws ServletException {
if (context instanceof StandardContext &&
context.getSwallowOutput()) {
try {
SystemLogHandler.startCapture();
filter.init(this);
} finally {
String capturedlog = SystemLogHandler.stopCapture();
if (capturedlog != null && capturedlog.length() > 0) {
getServletContext().log(capturedlog);
}
}
} else {
filter.init(this);
}
// Expose filter via JMX
registerJMX();
}
代码示例来源:origin: jboss.web/jbossweb
context.getSwallowOutput()) {
try {
SystemLogHandler.startCapture();
代码示例来源:origin: jboss.web/jbossweb
if ((servlet != null) && (filterChain != null)) {
if (context.getSwallowOutput()) {
try {
SystemLogHandler.startCapture();
代码示例来源:origin: tomcat/catalina
if (context.getSwallowOutput()) {
try {
SystemLogHandler.startCapture();
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
if (context.getSwallowOutput()) {
try {
SystemLogHandler.startCapture();
代码示例来源:origin: codefollower/Tomcat-Research
if (context.getSwallowOutput()) {
try {
SystemLogHandler.startCapture();
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
if (context.getSwallowOutput()) {
try {
SystemLogHandler.startCapture();
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
if (context.getSwallowOutput()) {
try {
SystemLogHandler.startCapture();
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
if (context.getSwallowOutput()) {
try {
SystemLogHandler.startCapture();
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
if (context.getSwallowOutput()) {
try {
SystemLogHandler.startCapture();
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
if ((servlet != null) && (filterChain != null)) {
if (context.getSwallowOutput()) {
try {
SystemLogHandler.startCapture();
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
if ((servlet != null) && (filterChain != null)) {
if (context.getSwallowOutput()) {
try {
SystemLogHandler.startCapture();
代码示例来源:origin: codefollower/Tomcat-Research
if ((servlet != null) && (filterChain != null)) {
if (context.getSwallowOutput()) {
try {
SystemLogHandler.startCapture();
内容来源于网络,如有侵权,请联系作者删除!