本文整理了Java中org.apache.catalina.connector.Request.isAsyncSupported
方法的一些代码示例,展示了Request.isAsyncSupported
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.isAsyncSupported
方法的具体详情如下:
包路径:org.apache.catalina.connector.Request
类名称:Request
方法名:isAsyncSupported
[英]Async operation
[中]异步操作
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
@Override
public boolean isAsyncSupported() {
return request.isAsyncSupported();
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
@Override
public boolean isAsyncSupported() {
return request.isAsyncSupported();
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
@Override
public boolean isAsyncSupported() {
return request.isAsyncSupported();
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
@Override
public boolean isAsyncSupported() {
return request.isAsyncSupported();
}
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
@Override
public boolean isAsyncSupported() {
return request.isAsyncSupported();
}
代码示例来源:origin: codefollower/Tomcat-Research
@Override
public boolean isAsyncSupported() {
return request.isAsyncSupported();
}
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
@Override
public boolean isAsyncSupported() {
return request.isAsyncSupported();
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
@Override
public boolean isAsyncSupported() {
return request.isAsyncSupported();
}
代码示例来源:origin: org.glassfish.main.web/web-core
/**
* Checks whether this request supports async.
*/
@Override
public boolean isAsyncSupported() {
if (request == null) {
throw new IllegalStateException(rb.getString(LogFacade.CANNOT_USE_REQUEST_OBJECT_OUTSIDE_SCOPE_EXCEPTION));
}
return request.isAsyncSupported();
}
代码示例来源:origin: org.jboss.web/jbossweb
public boolean isAsyncSupported() {
if (request == null) {
throw MESSAGES.nullRequestFacade();
}
return request.isAsyncSupported();
}
代码示例来源:origin: jboss.web/jbossweb
public boolean isAsyncSupported() {
if (request == null) {
throw new IllegalStateException(
sm.getString("requestFacade.nullRequest"));
}
return request.isAsyncSupported();
}
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
@Override
public AsyncContext startAsync(ServletRequest request,
ServletResponse response) {
if (!isAsyncSupported()) {
throw new IllegalStateException("Not supported.");
}
if (asyncContext == null) {
asyncContext = new AsyncContextImpl(this);
}
asyncContext.setStarted(getContext(), request, response,
request==getRequest() && response==getResponse().getResponse());
asyncContext.setTimeout(getConnector().getAsyncTimeout());
return asyncContext;
}
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
@Override
public AsyncContext startAsync(ServletRequest request,
ServletResponse response) {
if (!isAsyncSupported()) {
throw new IllegalStateException("Not supported.");
}
if (asyncContext == null) {
asyncContext = new AsyncContextImpl(this);
}
asyncContext.setStarted(getContext(), request, response,
request==getRequest() && response==getResponse().getResponse());
asyncContext.setTimeout(getConnector().getAsyncTimeout());
return asyncContext;
}
代码示例来源:origin: codefollower/Tomcat-Research
@Override
public AsyncContext startAsync(ServletRequest request,
ServletResponse response) {
if (!isAsyncSupported()) {
throw new IllegalStateException("Not supported.");
}
if (asyncContext == null) {
asyncContext = new AsyncContextImpl(this);
}
asyncContext.setStarted(getContext(), request, response,
request==getRequest() && response==getResponse().getResponse());
asyncContext.setTimeout(getConnector().getAsyncTimeout());
return asyncContext;
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
@Override
public AsyncContext startAsync(ServletRequest request,
ServletResponse response) {
if (!isAsyncSupported()) {
throw new IllegalStateException("Not supported.");
}
if (asyncContext == null) {
asyncContext = new AsyncContextImpl(this);
}
asyncContext.setStarted(getContext(), request, response,
request==getRequest() && response==getResponse().getResponse());
asyncContext.setTimeout(getConnector().getAsyncTimeout());
return asyncContext;
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
@Override
public AsyncContext startAsync(ServletRequest request,
ServletResponse response) {
if (!isAsyncSupported()) {
throw new IllegalStateException("Not supported.");
}
if (asyncContext == null) {
asyncContext = new AsyncContextImpl(this);
}
asyncContext.setStarted(getContext(), request, response,
request==getRequest() && response==getResponse().getResponse());
asyncContext.setTimeout(getConnector().getAsyncTimeout());
return asyncContext;
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
@Override
public AsyncContext startAsync(ServletRequest request,
ServletResponse response) {
if (!isAsyncSupported()) {
throw new IllegalStateException("Not supported.");
}
if (asyncContext == null) {
asyncContext = new AsyncContextImpl(this);
}
asyncContext.setStarted(getContext(), request, response,
request==getRequest() && response==getResponse().getResponse());
asyncContext.setTimeout(getConnector().getAsyncTimeout());
return asyncContext;
}
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
/**
* Select the appropriate child Host to process this request,
* based on the requested server name. If no matching Host can
* be found, return an appropriate HTTP error.
*
* @param request Request to be processed
* @param response Response to be produced
*
* @exception IOException if an input/output error occurred
* @exception ServletException if a servlet error occurred
*/
@Override
public final void invoke(Request request, Response response)
throws IOException, ServletException {
// Select the Host to be used for this Request
Host host = request.getHost();
if (host == null) {
// HTTP 0.9 or HTTP 1.0 request without a host when no default host
// is defined. This is handled by the CoyoteAdapter.
return;
}
if (request.isAsyncSupported()) {
request.setAsyncSupported(host.getPipeline().isAsyncSupported());
}
// Ask this Host to process this request
host.getPipeline().getFirst().invoke(request, response);
}
}
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
@Override
public AsyncContext startAsync(ServletRequest request,
ServletResponse response) {
if (!isAsyncSupported()) {
IllegalStateException ise =
new IllegalStateException(sm.getString("request.asyncNotSupported"));
log.warn(sm.getString("coyoteRequest.noAsync",
StringUtils.join(getNonAsyncClassNames())), ise);
throw ise;
}
if (asyncContext == null) {
asyncContext = new AsyncContextImpl(this);
}
asyncContext.setStarted(getContext(), request, response,
request==getRequest() && response==getResponse().getResponse());
asyncContext.setTimeout(getConnector().getAsyncTimeout());
return asyncContext;
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
@Override
public AsyncContext startAsync(ServletRequest request,
ServletResponse response) {
if (!isAsyncSupported()) {
IllegalStateException ise =
new IllegalStateException(sm.getString("request.asyncNotSupported"));
log.warn(sm.getString("coyoteRequest.noAsync",
StringUtils.join(getNonAsyncClassNames())), ise);
throw ise;
}
if (asyncContext == null) {
asyncContext = new AsyncContextImpl(this);
}
asyncContext.setStarted(getContext(), request, response,
request==getRequest() && response==getResponse().getResponse());
asyncContext.setTimeout(getConnector().getAsyncTimeout());
return asyncContext;
}
内容来源于网络,如有侵权,请联系作者删除!