Package org.springframework.http.server

Examples of org.springframework.http.server.ServerHttpAsyncRequestControl


    return this.messageCache;
  }

  @Override
  public boolean isActive() {
    ServerHttpAsyncRequestControl control = this.asyncRequestControl;
    return (control != null && !control.isCompleted());
  }
View Full Code Here


  }

  protected void resetRequest() {
    synchronized (this.responseLock) {

      ServerHttpAsyncRequestControl control = this.asyncRequestControl;
      this.asyncRequestControl = null;
      this.requestInitialized = false;
      this.response = null;

      updateLastActiveTime();

      if (control != null && !control.isCompleted()) {
        if (control.isStarted()) {
          try {
            control.complete();
          }
          catch (Throwable ex) {
            // Could be part of normal workflow (e.g. browser tab closed)
            logger.debug("Failed to complete request: " + ex.getMessage());
          }
View Full Code Here

TOP

Related Classes of org.springframework.http.server.ServerHttpAsyncRequestControl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.