Class RawMessage

java.lang.Object
org.atmosphere.cpr.RawMessage
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ManagedAtmosphereHandler.Managed

public class RawMessage extends Object implements Serializable
A wrapper that marks a message as already-encoded ("raw"), signaling the framework to deliver it as-is without running it through @Message decoders and encoders in AtmosphereHandler.onStateChange(org.atmosphere.cpr.AtmosphereResourceEvent).

Use this when broadcasting pre-encoded content (e.g. Room protocol messages, pre-serialized JSON) that must not be re-processed by the handler's message pipeline.

Since:
4.0.3
See Also:
  • Constructor Details

    • RawMessage

      public RawMessage(Object message)
  • Method Details

    • message

      public Object message()
      Returns:
      the wrapped raw message
    • toString

      public String toString()
      Overrides:
      toString in class Object