Skip to content

Commit

Permalink
Remove Comet
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1636547 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
markt-asf committed Nov 4, 2014
1 parent df615ec commit 376a308
Show file tree
Hide file tree
Showing 70 changed files with 69 additions and 3,879 deletions.
7 changes: 0 additions & 7 deletions NOTICE
Expand Up @@ -15,13 +15,6 @@ which is open source software. The original software and
related information is available at
http://www.eclipse.org.

For the bayeux implementation
The org.apache.cometd.bayeux API is derivative work originating at the Dojo Foundation
* Copyright 2007-2008 Guy Molinari
* Copyright 2007-2008 Filip Hanik
* Copyright 2007 Dojo Foundation
* Copyright 2007 Mort Bay Consulting Pty. Ltd.

The original XML Schemas for Java EE Deployment Descriptors:
- javaee_5.xsd
- javaee_web_services_1_2.xsd
Expand Down
3 changes: 2 additions & 1 deletion TOMCAT-NEXT.txt
Expand Up @@ -21,7 +21,8 @@ Notes of things to consider for the next major Tomcat release (9.0.x)

2. Remove BIO AJP and HTTP connector.

3. Remove Comet support.
3. DONE.
Remove Comet support.

4. Refactor the connectors to minimise code duplication
- All implementation specific per connector code -> Endpoint
Expand Down
3 changes: 0 additions & 3 deletions conf/catalina.policy
Expand Up @@ -186,9 +186,6 @@ grant {
permission java.util.PropertyPermission
"org.apache.tomcat.util.http.ServerCookie.FWD_SLASH_IS_SEPARATOR", "read";

// Applications using Comet need to be able to access this package
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina.comet";

// Applications using WebSocket need to be able to access these packages
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.tomcat.websocket";
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.tomcat.websocket.server";
Expand Down
6 changes: 0 additions & 6 deletions conf/context.xml
Expand Up @@ -27,10 +27,4 @@
<!--
<Manager pathname="" />
-->

<!-- Uncomment this to enable Comet connection tacking (provides events
on session expiration as well as webapp lifecycle) -->
<!--
<Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
-->
</Context>
35 changes: 0 additions & 35 deletions java/org/apache/catalina/Globals.java
Expand Up @@ -136,41 +136,6 @@ public final class Globals {
"org.apache.catalina.realm.GSS_CREDENTIAL";


/**
* The request attribute that is set to the value of {@code Boolean.TRUE}
* if connector processing this request supports Comet API.
* Duplicated here for neater code in the catalina packages.
*/
public static final String COMET_SUPPORTED_ATTR =
org.apache.coyote.Constants.COMET_SUPPORTED_ATTR;


/**
* The request attribute that is set to the value of {@code Boolean.TRUE}
* if connector processing this request supports setting
* per-connection request timeout through Comet API.
*
* @see org.apache.catalina.comet.CometEvent#setTimeout(int)
*
* Duplicated here for neater code in the catalina packages.
*/
public static final String COMET_TIMEOUT_SUPPORTED_ATTR =
org.apache.coyote.Constants.COMET_TIMEOUT_SUPPORTED_ATTR;


/**
* The request attribute that can be set to a value of type
* {@code java.lang.Integer} to specify per-connection request
* timeout for Comet API. The value is in milliseconds.
*
* @see org.apache.catalina.comet.CometEvent#setTimeout(int)
*
* Duplicated here for neater code in the catalina packages.
*/
public static final String COMET_TIMEOUT_ATTR =
org.apache.coyote.Constants.COMET_TIMEOUT_ATTR;


/**
* The request attribute that is set to the value of {@code Boolean.TRUE}
* if connector processing this request supports use of sendfile.
Expand Down
22 changes: 0 additions & 22 deletions java/org/apache/catalina/Valve.java
Expand Up @@ -14,20 +14,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/


package org.apache.catalina;


import java.io.IOException;

import javax.servlet.ServletException;

import org.apache.catalina.comet.CometEvent;
import org.apache.catalina.connector.Request;
import org.apache.catalina.connector.Response;


/**
* <p>A <b>Valve</b> is a request processing component associated with a
* particular Container. A series of Valves are generally associated with
Expand Down Expand Up @@ -123,22 +118,5 @@ public void invoke(Request request, Response response)
throws IOException, ServletException;


/**
* Process a Comet event.
*
* @param request The servlet request to be processed
* @param response The servlet response to be created
*
* @exception IOException if an input/output error occurs, or is thrown
* by a subsequently invoked Valve, Filter, or Servlet
* @exception ServletException if a servlet error occurs, or is thrown
* by a subsequently invoked Valve, Filter, or Servlet
*/
public void event(Request request, Response response, CometEvent event)
throws IOException, ServletException;


public boolean isAsyncSupported();


}
146 changes: 0 additions & 146 deletions java/org/apache/catalina/comet/CometEvent.java

This file was deleted.

81 changes: 0 additions & 81 deletions java/org/apache/catalina/comet/CometFilter.java

This file was deleted.

0 comments on commit 376a308

Please sign in to comment.