package org.eclipse.jetty.websocket.frames;

public class ControlFrameType {

}

@@ -1,80 +1,1272 @@
-package org.eclipse.jetty.websocket.frames;%0A%0Apublic class ControlFrameType %7B%0A
+/*%0A * Copyright (c) 2012 the original author or authors.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage org.eclipse.jetty.websocket.frames;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport org.eclipse.jetty.websocket.frames.ControlFrameType;%0A%0Apublic enum ControlFrameType %0A%7B%0A%09BASE_FRAME((short)1);%0A%09%0A    public static ControlFrameType from(short code)%0A    %7B%0A        return Codes.codes.get(code);%0A    %7D%0A%0A    private final short code;%0A%0A    private ControlFrameType(short code)%0A    %7B%0A        this.code = code;%0A        Codes.codes.put(code, this);%0A    %7D%0A%0A    public short getCode()%0A    %7B%0A        return code;%0A    %7D%0A%0A    private static class Codes%0A    %7B%0A        private static final Map%3CShort, ControlFrameType%3E codes = new HashMap%3C%3E();%0A    %7D
 %0A%7D%0A

set baseframe as default type for interim