All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.logdoc.fairhttp.structs.websocket.extension.CompressionExtension Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
package org.logdoc.fairhttp.structs.websocket.extension;

import org.logdoc.fairhttp.structs.websocket.frames.ControlFrame;
import org.logdoc.fairhttp.structs.websocket.frames.DataFrame;
import org.logdoc.fairhttp.structs.websocket.frames.Frame;

public abstract class CompressionExtension extends DefaultExtension {

    @Override
    public boolean isFrameValid(Frame inputFrame) {
        return ((!(inputFrame instanceof DataFrame)) || (!inputFrame.isRSV2() && !inputFrame.isRSV3())) && ((!(inputFrame instanceof ControlFrame)) || (!inputFrame.isRSV1() && !inputFrame.isRSV2() && !inputFrame.isRSV3()));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy