From 2162455b72d5a474bba47d5daf5543d46c2688be Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Wed, 11 Feb 2015 14:20:06 +1100 Subject: Removed SPDY and NPN Because jetty 9.3 is targetted for HTTP2, we have removed support for SPDY and NPN. --- .../eclipse/jetty/spdy/http/HTTPSPDYHeader.java | 82 ---------------------- 1 file changed, 82 deletions(-) delete mode 100644 jetty-spdy/spdy-http-common/src/main/java/org/eclipse/jetty/spdy/http/HTTPSPDYHeader.java (limited to 'jetty-spdy/spdy-http-common/src/main/java/org/eclipse/jetty/spdy/http') diff --git a/jetty-spdy/spdy-http-common/src/main/java/org/eclipse/jetty/spdy/http/HTTPSPDYHeader.java b/jetty-spdy/spdy-http-common/src/main/java/org/eclipse/jetty/spdy/http/HTTPSPDYHeader.java deleted file mode 100644 index 845ee96a1c..0000000000 --- a/jetty-spdy/spdy-http-common/src/main/java/org/eclipse/jetty/spdy/http/HTTPSPDYHeader.java +++ /dev/null @@ -1,82 +0,0 @@ -// -// ======================================================================== -// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. -// ------------------------------------------------------------------------ -// All rights reserved. This program and the accompanying materials -// are made available under the terms of the Eclipse Public License v1.0 -// and Apache License v2.0 which accompanies this distribution. -// -// The Eclipse Public License is available at -// http://www.eclipse.org/legal/epl-v10.html -// -// The Apache License v2.0 is available at -// http://www.opensource.org/licenses/apache2.0.php -// -// You may elect to redistribute this code under either of these licenses. -// ======================================================================== -// - -package org.eclipse.jetty.spdy.http; - -import java.util.HashMap; -import java.util.Map; - -import org.eclipse.jetty.spdy.api.SPDY; - -/** - *

{@link HTTPSPDYHeader} defines the SPDY headers that are not also HTTP headers, - * such as method, version, etc. or that are treated differently - * by the SPDY protocol, such as host.

- */ -public enum HTTPSPDYHeader -{ - METHOD("method", ":method"), - URI("url", ":path"), - VERSION("version", ":version"), - SCHEME("scheme", ":scheme"), - HOST("host", ":host"), - STATUS("status", ":status"); - - public static HTTPSPDYHeader from(short version, String name) - { - switch (version) - { - case SPDY.V2: - return Names.v2Names.get(name); - case SPDY.V3: - return Names.v3Names.get(name); - default: - throw new IllegalStateException(); - } - } - - private final String v2Name; - private final String v3Name; - - private HTTPSPDYHeader(String v2Name, String v3Name) - { - this.v2Name = v2Name; - Names.v2Names.put(v2Name, this); - this.v3Name = v3Name; - Names.v3Names.put(v3Name, this); - } - - public String name(short version) - { - switch (version) - { - case SPDY.V2: - return v2Name; - case SPDY.V3: - return v3Name; - default: - throw new IllegalStateException(); - } - } - - private static class Names - { - private static final Map v2Names = new HashMap<>(); - private static final Map v3Names = new HashMap<>(); - } -} -- cgit v1.2.3