Interface ResultStreamWriter


  • public interface ResultStreamWriter
    StreamResultの場合に、 Commandから直接コンテンツを出力するロジックを記述したい場合、利用するインタフェース。 このインタフェースを実装したクラスをRequestContextにセット(セット時のキー名をアノテーションもしくはメタデータに定義)。
    • Method Summary

      Modifier and Type Method Description
      void write​(java.io.OutputStream out)
      出力処理を記述。
    • Method Detail

      • write

        void write​(java.io.OutputStream out)
            throws java.io.IOException
        出力処理を記述。
        Parameters:
        out - クライアントへ直接出力するOutputStream
        Throws:
        java.io.IOException