Class OutboundSSEEventImpl

java.lang.Object
ee.jakarta.tck.ws.rs.jaxrs21.ee.sse.SSEEventImpl
ee.jakarta.tck.ws.rs.jaxrs21.ee.sse.OutboundSSEEventImpl
All Implemented Interfaces:
jakarta.ws.rs.sse.OutboundSseEvent, jakarta.ws.rs.sse.SseEvent

public class OutboundSSEEventImpl extends SSEEventImpl implements jakarta.ws.rs.sse.OutboundSseEvent
  • Field Details

    • type

      public Class<?> type
    • genericType

      public Type genericType
    • data

      public Object data
    • media

      public jakarta.ws.rs.core.MediaType media
  • Constructor Details

    • OutboundSSEEventImpl

      public OutboundSSEEventImpl(Object data)
    • OutboundSSEEventImpl

      public OutboundSSEEventImpl(Object data, String comment, String id, String name, int delay)
  • Method Details

    • isReconnectDelaySet

      public boolean isReconnectDelaySet()
      Specified by:
      isReconnectDelaySet in interface jakarta.ws.rs.sse.SseEvent
    • getType

      public Class<?> getType()
      Specified by:
      getType in interface jakarta.ws.rs.sse.OutboundSseEvent
    • getGenericType

      public Type getGenericType()
      Specified by:
      getGenericType in interface jakarta.ws.rs.sse.OutboundSseEvent
    • getMediaType

      public jakarta.ws.rs.core.MediaType getMediaType()
      Specified by:
      getMediaType in interface jakarta.ws.rs.sse.OutboundSseEvent
    • getData

      public Object getData()
      Specified by:
      getData in interface jakarta.ws.rs.sse.OutboundSseEvent
    • setType

      public OutboundSSEEventImpl setType(Class<?> type)
    • setGenericType

      public OutboundSSEEventImpl setGenericType(Type genericType)
    • setData

      public OutboundSSEEventImpl setData(Object data)
    • setData

      public OutboundSSEEventImpl setData(Object data, jakarta.ws.rs.core.MediaType type)