本文整理了Java中org.apache.catalina.connector.Request.isAsyncStarted
方法的一些代码示例,展示了Request.isAsyncStarted
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.isAsyncStarted
方法的具体详情如下:
包路径:org.apache.catalina.connector.Request
类名称:Request
方法名:isAsyncStarted
[英]Checks whether async processing has started on this request.
[中]检查此请求是否已启动异步处理。
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
@Override
public boolean isAsyncStarted() {
return request.isAsyncStarted();
}
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
@Override
public boolean isAsyncStarted() {
return request.isAsyncStarted();
}
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
@Override
public boolean isAsyncStarted() {
return request.isAsyncStarted();
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
@Override
public boolean isAsyncStarted() {
return request.isAsyncStarted();
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
@Override
public boolean isAsyncStarted() {
return request.isAsyncStarted();
}
代码示例来源:origin: codefollower/Tomcat-Research
@Override
public boolean isAsyncStarted() {
return request.isAsyncStarted();
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
@Override
public boolean isAsyncStarted() {
return request.isAsyncStarted();
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
@Override
public boolean isAsyncStarted() {
return request.isAsyncStarted();
}
代码示例来源:origin: org.glassfish.main.web/web-core
/**
* Gets the AsyncContext of this request.
*/
@Override
public AsyncContext getAsyncContext() {
if (!isAsyncStarted()) {
throw new IllegalStateException(rb.getString(LogFacade.REQUEST_NOT_PUT_INTO_ASYNC_MODE_EXCEPTION));
}
return asyncContext;
}
代码示例来源:origin: org.glassfish.main.web/web-core
/**
* Checks whether async processing has started on this request.
*/
@Override
public boolean isAsyncStarted() {
if (request == null) {
throw new IllegalStateException(rb.getString(LogFacade.CANNOT_USE_REQUEST_OBJECT_OUTSIDE_SCOPE_EXCEPTION));
}
return request.isAsyncStarted();
}
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
@Override
public AsyncContext getAsyncContext() {
if (!isAsyncStarted()) {
throw new IllegalStateException(sm.getString("request.notAsync"));
}
return asyncContext;
}
代码示例来源:origin: org.jboss.web/jbossweb
public boolean isAsyncStarted() {
if (request == null) {
throw MESSAGES.nullRequestFacade();
}
return request.isAsyncStarted();
}
代码示例来源:origin: jboss.web/jbossweb
public boolean isAsyncStarted() {
if (request == null) {
throw new IllegalStateException(
sm.getString("requestFacade.nullRequest"));
}
return request.isAsyncStarted();
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
@Override
public AsyncContext getAsyncContext() {
if (!isAsyncStarted()) {
throw new IllegalStateException(sm.getString("request.notAsync"));
}
return asyncContext;
}
代码示例来源:origin: org.glassfish.main.web/web-core
public void setReadListener(ReadListener readListener) {
if (readHandler != null) {
throw new IllegalStateException(rb.getString(LogFacade.ALREADY_SET_READ_LISTENER));
}
if (!(request.isAsyncStarted() || request.isUpgrade())) {
throw new IllegalStateException(rb.getString(LogFacade.NON_ASYNC_UPGRADE_READER_EXCEPTION));
}
readHandler = new ReadHandlerImpl(readListener);
if (isReady()) {
try {
readHandler.onDataAvailable();
} catch(Throwable t) {
log.log(Level.WARNING, LogFacade.READ_LISTENER_ON_DATA_AVAILABLE_ERROR, t);
}
}
}
代码示例来源:origin: org.glassfish.main.web/web-core
public void setWriteListener(WriteListener writeListener) {
if (writeHandler != null) {
throw new IllegalStateException(rb.getString(LogFacade.WRITE_LISTENER_BEEN_SET));
}
Request req = (Request)response.getRequest();
if (!(req.isAsyncStarted() || req.isUpgrade())) {
throw new IllegalStateException(rb.getString(LogFacade.NON_ASYNC_UPGRADE_WRITER_EXCEPTION));
}
writeHandler = new WriteHandlerImpl(writeListener);
if (isReady()) {
try {
writeHandler.onWritePossible();
} catch(Throwable t) {
log.log(Level.WARNING, LogFacade.WRITE_LISTENER_ON_WRITE_POSSIBLE_ERROR, t);
}
}
}
代码示例来源:origin: org.glassfish.main.web/web-core
if (request != null && request.isAsyncStarted()) {
return;
代码示例来源:origin: codefollower/Tomcat-Research
(Throwable) request.getAttribute(RequestDispatcher.ERROR_EXCEPTION);
if (request.isAsyncStarted() && response.getStatus() < 400 &&
throwable == null) {
return;
if (request.isAsyncStarted()) {
request.getAsyncContext().complete();
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
if (request.isAsyncStarted()) {
return;
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
if (request.isAsyncStarted()) {
return;
内容来源于网络,如有侵权,请联系作者删除!