Class CloseFrame

  • All Implemented Interfaces:
    org.eclipse.jetty.websocket.api.extensions.Frame

    public class CloseFrame
    extends ControlFrame
    • Constructor Detail

      • CloseFrame

        public CloseFrame()
    • Method Detail

      • getType

        public org.eclipse.jetty.websocket.api.extensions.Frame.Type getType()
        Specified by:
        getType in interface org.eclipse.jetty.websocket.api.extensions.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.