congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
WsFrameDecoder
Code IndexAdd Tabnine to your IDE (free)

How to use
WsFrameDecoder
in
org.kaazing.gateway.transport.ws.bridge.filter

Best Java code snippets using org.kaazing.gateway.transport.ws.bridge.filter.WsFrameDecoder (Showing top 2 results out of 315)

origin: kaazing/gateway

  @Override
  public ProtocolDecoder getDecoder(IoSession session) {
    IoSessionEx sessionEx = (IoSessionEx) session;
    IoBufferAllocatorEx<?> allocator = sessionEx.getBufferAllocator();
    return new WsFrameDecoder(allocator, wsMaxMessageSize, !maskSends);
  }
}
origin: kaazing/gateway

validateRSV(opcodeByte);
validateOpcodeUsingFin(opcode, fin);
validateMaskingAllowed(masked);
int payloadLenByte = maskAndPayloadLenByte & 0x7f;
validateFrameSize(frameSize, opcode);
  validateMessageSize(currentMessageSizeCandidate);
  unmask(buf.buf(), mask);
    if (buf.hasRemaining()) {
      int status = buf.getUnsignedShort();
      validateWireCloseCode(status);
      close = new WsCloseMessage(status, buf.buf());
    } else {
org.kaazing.gateway.transport.ws.bridge.filterWsFrameDecoder

Most used methods

  • <init>
  • unmask
  • validateFrameSize
  • validateMaskingAllowed
    Checks if masking is allowed/expected for the frame being decoded.
  • validateMessageSize
  • validateOpcodeUsingFin
  • validateRSV
  • validateWireCloseCode

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now