Class CloseFrame

All Implemented Interfaces:
Frame

public class CloseFrame extends ControlFrame
  • Constructor Details

    • CloseFrame

      public CloseFrame()
  • Method Details

    • getType

      public Frame.Type getType()
      Specified by:
      getType in interface Frame
      Overrides:
      getType in class WebSocketFrame
    • truncate

      public static String truncate(String reason)
      Truncate arbitrary reason into something that will fit into the CloseFrame limits.
      Parameters:
      reason - the arbitrary reason to possibly truncate.
      Returns:
      the possibly truncated reason string.