Class ResponseHeaders

  • All Implemented Interfaces:
    com.yahoo.component.provider.Freezable, com.yahoo.component.provider.ListenableFreezable, com.yahoo.processing.response.Data

    public class ResponseHeaders
    extends com.yahoo.processing.response.AbstractData
    Holds a set of headers which will be added to the Processing response. A Response may contain multiple such data objects, and all of them will be added to the response.
    Since:
    5.1.23
    Author:
    bratseth
    • Constructor Summary

      Constructors 
      Constructor Description
      ResponseHeaders​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> headers, com.yahoo.processing.Request request)
      Creates a response headers object with a set of headers.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.util.List<java.lang.String>> headers()
      Returns an unmodifiable map of the response headers of this
      • Methods inherited from class com.yahoo.processing.response.AbstractData

        request
      • 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

      • ResponseHeaders

        public ResponseHeaders​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> headers,
                               com.yahoo.processing.Request request)
        Creates a response headers object with a set of headers.
        Parameters:
        headers - the headers to copy into this object
    • Method Detail

      • headers

        public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> headers()
        Returns an unmodifiable map of the response headers of this