Class ResponseHeaders

java.lang.Object
com.yahoo.component.provider.FreezableClass
com.yahoo.component.provider.ListenableFreezableClass
com.yahoo.processing.response.AbstractData
com.yahoo.processing.handler.ResponseHeaders
All Implemented Interfaces:
com.yahoo.component.provider.Freezable, com.yahoo.component.provider.ListenableFreezable, Data

public class ResponseHeaders extends 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.
Author:
bratseth
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a response headers object with a set of headers.
  • Method Summary

    Modifier and Type
    Method
    Description
    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 Details

    • ResponseHeaders

      public ResponseHeaders(Map<String,List<String>> headers, Request request)
      Creates a response headers object with a set of headers.
      Parameters:
      headers - the headers to copy into this object
  • Method Details

    • headers

      public Map<String,List<String>> headers()
      Returns an unmodifiable map of the response headers of this