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

org.smartboot.http.common.codec.websocket.WebSocket Maven / Gradle / Ivy

There is a newer version: 2.5.1
Show newest version
package org.smartboot.http.common.codec.websocket;

import org.smartboot.http.common.utils.SmartDecoder;

import java.nio.ByteBuffer;

public interface WebSocket {
    public static final Decoder PAYLOAD_FINISH = new Decoder() {
        @Override
        public Decoder decode(ByteBuffer byteBuffer, WebSocket request) {
            return this;
        }
    };

    public boolean isFrameFinalFlag();

    public void setFrameFinalFlag(boolean frameFinalFlag);

    public boolean isFrameMasked();

    public void setFrameMasked(boolean frameMasked);

    public int getFrameRsv();

    public void setFrameRsv(int frameRsv);

    public int getFrameOpcode();

    public void setFrameOpcode(int frameOpcode);

    public byte[] getPayload();

    public long getPayloadLength();

    public void setPayloadLength(long payloadLength);

    public byte[] getMaskingKey();

    public void setMaskingKey(byte[] maskingKey);

    public void setPayload(byte[] payload);

    SmartDecoder getPayloadDecoder();

    void setPayloadDecoder(SmartDecoder decoder);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy