Interface ResponseWriter<T>

    • Method Detail

      • getContentType

        MediaType getContentType()
        Get the current contentType
        Returns:
        the contenType
      • setContentType

        void setContentType​(MediaType contentType)
        Set the contentType
        Parameters:
        contentType - to set
      • isSetContentType

        default boolean isSetContentType()
        Check if contentType is set
        Returns:
        true, if contentType is set
      • supportsGZip

        boolean supportsGZip​(T t)
        Check if GZip is supported by this writer
        Parameters:
        t - Object to write
        Returns:
        true, if GZip is supported
      • hasForcedHttpStatus

        default boolean hasForcedHttpStatus​(T t)
      • getForcedHttpStatus

        default HTTPStatus getForcedHttpStatus​(T t)