Class GfSseInboundEvent

java.lang.Object
com.sun.enterprise.admin.remote.sse.GfSseInboundEvent

public class GfSseInboundEvent extends Object
Incoming SSE event.
  • Method Details

    • getName

      public String getName()
      Get the event name.
      Returns:
      event name or null if it is not present.
    • getData

      public <T> T getData(Class<T> messageType, String contentType) throws IOException
      Get event data.
      Parameters:
      messageType - type of stored data content.
      Throws:
      IOException - when provided type can't be read.
    • getData

      public String getData() throws IOException
      Get event data as String.
      Returns:
      event data de-serialized as string.
      Throws:
      IOException - when provided type can't be read.
    • toString

      public String toString()
      Overrides:
      toString in class Object