Class AbortMessage

java.lang.Object
ch.rasc.wamp2spring.message.WampMessage
ch.rasc.wamp2spring.message.AbortMessage
All Implemented Interfaces:
org.springframework.messaging.Message<Object>

public class AbortMessage extends WampMessage
Message sent from the Router and the Client when they want to abort the opening of a WAMP session. [ABORT, Details|dict, Reason|uri]
  • Constructor Details

    • AbortMessage

      public AbortMessage(WampError reason, @Nullable String message)
    • AbortMessage

      public AbortMessage(WampError reason)
  • Method Details

    • deserialize

      public static AbortMessage deserialize(com.fasterxml.jackson.core.JsonParser jp) throws IOException
      Throws:
      IOException
    • serialize

      public void serialize(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
      Specified by:
      serialize in class WampMessage
      Throws:
      IOException
    • getMessage

      @Nullable public String getMessage()
      Reason for the abort in human readable form
    • getReason

      @Nullable public String getReason()
      Return an URI describing the abort reason.
    • toString

      public String toString()
      Overrides:
      toString in class Object