Interface MimeResponse

All Superinterfaces:
EventConsumer
All Known Implementing Classes:
FlxXMLResponse, JPlotResponse, JSONResponse, MatlabResponse, PBRAWResponse, PvaMimeResponse, QWResponse, SinglePVCSVResponse, SVGResponse, TextResponse

public interface MimeResponse extends EventConsumer
A set of events for classes that convert event streams to mime specific responses. setOutputStream signals the start of the whole package processingPV signals the start of a new PV's data in the package swicthingToStream signals that we have a new event stream in the current PV; so stream specific headers could be added here. close signifies the end of the whole package. Note we get both one processingPV and potentially many swicthingToStream for each PV in the package.
Author:
mshankar
  • Field Details

    • CONTENT_TYPE

      static final String CONTENT_TYPE
      See Also:
    • PROXIED_HEADERS

      static final String[] PROXIED_HEADERS
      Headers that should be proxied across in a clustered environment should be added to this list.
  • Method Details

    • setOutputStream

      void setOutputStream(OutputStream os)
    • processingPV

      void processingPV(BasicContext retrievalContext, String pv, Instant start, Instant end, EventStreamDesc streamDesc)
      Called when we swich to a new PV.
      Parameters:
      pv - The name of PV
      start - Instant
      end - Instant
      streamDesc - Could be null if we have no data in first store we hit.
    • swicthingToStream

      void swicthingToStream(EventStream strm)
    • close

      void close()