Class CloseFrame


public class CloseFrame extends TyrusFrame
Close frame representation.
Author:
Pavel Bucek
  • Constructor Details

    • CloseFrame

      public CloseFrame(Frame frame)
      Constructor.
      Parameters:
      frame - original (close) frame.
    • CloseFrame

      public CloseFrame(CloseReason closeReason)
      Constructor.
      Parameters:
      closeReason - close reason used to construct close frame.
  • Method Details

    • getCloseReason

      public CloseReason getCloseReason()
      Get close reason.
      Returns:
      close reason.
    • respond

      public void respond(TyrusWebSocket socket)
      Description copied from class: TyrusFrame
      Execution part of frame processing.
      Specified by:
      respond in class TyrusFrame
      Parameters:
      socket - socket on which the appropriate action will be performed.