Class DelegatingRequestMatcherHeaderWriter

    • 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

      • DelegatingRequestMatcherHeaderWriter

        public DelegatingRequestMatcherHeaderWriter​(RequestMatcher requestMatcher,
                                                    HeaderWriter delegateHeaderWriter)
        Creates a new instance
        requestMatcher - the RequestMatcher to use. If returns true, the delegateHeaderWriter will be invoked.
        delegateHeaderWriter - the HeaderWriter to invoke if the RequestMatcher returns true.
    • 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
        request - the request
        response - the response
      • toString

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