Class StaticHeadersWriter

    • Constructor Summary

      Constructors 
      Constructor Description
      StaticHeadersWriter​(java.lang.String headerName, java.lang.String... headerValues)
      Creates a new instance with a single header
      StaticHeadersWriter​(java.util.List<Header> headers)
      Creates a new instance
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      void writeHeaders​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Create a Header instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • StaticHeadersWriter

        public StaticHeadersWriter​(java.util.List<Header> headers)
        Creates a new instance
        Parameters:
        headers - the Header instances to use
      • StaticHeadersWriter

        public StaticHeadersWriter​(java.lang.String headerName,
                                   java.lang.String... headerValues)
        Creates a new instance with a single header
        Parameters:
        headerName - the name of the header
        headerValues - the values for the header
    • Method Detail

      • writeHeaders

        public void writeHeaders​(javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response)
        Description copied from interface: HeaderWriter
        Create a Header instance.
        Specified by:
        writeHeaders in interface HeaderWriter
        Parameters:
        request - the request
        response - the response
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object