Class AbstractData

  • All Implemented Interfaces:
    com.yahoo.component.provider.Freezable, com.yahoo.component.provider.ListenableFreezable, Data
    Direct Known Subclasses:
    ResponseHeaders, ResponseStatus

    public abstract class AbstractData
    extends com.yahoo.component.provider.ListenableFreezableClass
    implements Data
    Convenience superclass for implementations of data. This contains no payload.
    Author:
    bratseth
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractData​(Request request)
      Creates some data marked with the request that created it
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Request request()
      Returns the request that created this data
      • Methods inherited from class com.yahoo.component.provider.ListenableFreezableClass

        addFreezeListener, clone, freeze
      • Methods inherited from class com.yahoo.component.provider.FreezableClass

        ensureNotFrozen, isFrozen
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.yahoo.component.provider.Freezable

        freeze, isFrozen
      • Methods inherited from interface com.yahoo.component.provider.ListenableFreezable

        addFreezeListener
    • Constructor Detail

      • AbstractData

        public AbstractData​(Request request)
        Creates some data marked with the request that created it
    • Method Detail

      • request

        public Request request()
        Returns the request that created this data
        Specified by:
        request in interface Data