Top Description Constructors Methods
org.java_websocket.extensions

public abstract Class CompressionExtension

extends DefaultExtension
Class Inheritance
Known Direct Subclasses
org.java_websocket.extensions.permessage_deflate.PerMessageDeflateExtension
Imports
org.java_websocket.exceptions.InvalidDataException, .InvalidFrameException, org.java_websocket.framing.ControlFrame, .DataFrame, .Framedata

Implementation for a compression extension specified by https://tools.ietf.org/html/rfc7692
Since
1.3.5

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
isFrameValid(Framedata inputFrame)

Overrides org.java_websocket.extensions.DefaultExtension.isFrameValid.

Implements org.java_websocket.extensions.IExtension.isFrameValid.

Check if the received frame is correctly implemented by the other endpoint and there are no specification errors (like wrongly set RSV)

Inherited from org.java_websocket.extensions.DefaultExtension:
acceptProvidedExtensionAsClientacceptProvidedExtensionAsServercopyInstancedecodeFrameencodeFrameequalsgetProvidedExtensionAsClientgetProvidedExtensionAsServerhashCoderesettoString

Constructor Detail

CompressionExtensionback to summary
public CompressionExtension()

Method Detail

isFrameValidback to summary
public void isFrameValid(Framedata inputFrame) throws InvalidDataException

Overrides org.java_websocket.extensions.DefaultExtension.isFrameValid.

Implements org.java_websocket.extensions.IExtension.isFrameValid.

Doc from org.java_websocket.extensions.IExtension.isFrameValid.

Check if the received frame is correctly implemented by the other endpoint and there are no specification errors (like wrongly set RSV)

Annotations
@Override
Exceptions
InvalidDataException:
Throw InvalidDataException if the received frame is not correctly implementing the specification for the specific extension