パッケージ jakarta.faces.context

クラス PartialResponseWriter

実装されているすべてのインターフェース:
FacesWrapper<ResponseWriter>CloseableSEFlushableSEAppendableSEAutoCloseableSE

public class PartialResponseWriter extends ResponseWriterWrapper

PartialResponseWriter は、既存の ResponseWriter を装飾して、Ajax 操作に適した部分レスポンスの生成をサポートします。このクラスは、jakarta.faces.context.ResponseWriter から継承されたマークアップ生成メソッドに加えて、標準の部分レスポンス要素を構築するためのメソッドを提供します。

導入:
2.0
  • フィールドの詳細

  • コンストラクターの詳細

    • PartialResponseWriter

      public PartialResponseWriter(ResponseWriter writer)

      PartialResponseWriter を作成します。

      パラメーター:
      writer - 包むライター。
      導入:
      2.0
  • メソッドの詳細

    • startDocument

      public void startDocument() throws IOExceptionSE

      部分レスポンスの開始を書き込みます。

      UIViewRootNamingContainer のインスタンスである場合は、ルート要素の id 属性の値として UIComponent.getContainerClientId(FacesContext) を書き込みます。

      オーバーライド:
      クラス ResponseWriterWrapperstartDocument 
      例外:
      IOExceptionSE - 入出力エラーが発生した場合
      導入:
      2.0
      関連事項:
    • endDocument

      public void endDocument() throws IOExceptionSE

      部分的なレスポンスの終わりを書きます。

      オーバーライド:
      クラス ResponseWriterWrapperendDocument 
      例外:
      IOExceptionSE - 入出力エラーが発生した場合
      導入:
      2.0
      関連事項:
    • startInsertBefore

      public void startInsertBefore(StringSE targetId) throws IOExceptionSE

      指定されたターゲットノードの前にコンテンツが挿入される挿入操作の開始を書き込みます。

      パラメーター:
      targetId - ノード挿入の ID は前に発生する必要があります
      例外:
      IOExceptionSE - 入出力エラーが発生した場合
      導入:
      2.0
    • startInsertAfter

      public void startInsertAfter(StringSE targetId) throws IOExceptionSE

      指定されたターゲットノードの後にコンテンツが挿入される挿入操作の開始を書き込みます。

      パラメーター:
      targetId - ノード挿入の ID は、後に発生する必要があります
      例外:
      IOExceptionSE - 入出力エラーが発生した場合
      導入:
      2.0
    • endInsert

      public void endInsert() throws IOExceptionSE

      挿入操作の終わりを書き込みます。

      例外:
      IOExceptionSE - 入出力エラーが発生した場合
      導入:
      2.0
    • startUpdate

      public void startUpdate(StringSE targetId) throws IOExceptionSE

      更新操作の開始を書き込みます。

      パラメーター:
      targetId - 更新するノードの ID
      例外:
      IOExceptionSE - 入出力エラーが発生した場合
      導入:
      2.0
    • endUpdate

      public void endUpdate() throws IOExceptionSE

      更新操作の終わりを書き込みます。

      例外:
      IOExceptionSE - 入出力エラーが発生した場合
      導入:
      2.0
    • updateAttributes

      public void updateAttributes(StringSE targetId, MapSE<StringSE,StringSE> attributes) throws IOExceptionSE

      属性更新操作を記述します。

      パラメーター:
      targetId - 更新するノードの ID
      attributes - 更新される属性名 / 値のペアのマップ
      例外:
      IOExceptionSE - 入出力エラーが発生した場合
      導入:
      2.0
    • delete

      public void delete(StringSE targetId) throws IOExceptionSE

      削除操作を記述します。

      パラメーター:
      targetId - 削除するノードの ID
      例外:
      IOExceptionSE - 入出力エラーが発生した場合
      導入:
      2.0
    • redirect

      public void redirect(StringSE url) throws IOExceptionSE

      リダイレクト操作を記述します。

      パラメーター:
      url - リダイレクト先の URL
      例外:
      IOExceptionSE - 入出力エラーが発生した場合
      導入:
      2.0
    • startEval

      public void startEval() throws IOExceptionSE

      eval 操作の開始を書き込みます。

      例外:
      IOExceptionSE - 入出力エラーが発生した場合
      導入:
      2.0
    • endEval

      public void endEval() throws IOExceptionSE

      eval 操作の終わりを記述します。

      例外:
      IOExceptionSE - 入出力エラーが発生した場合
      導入:
      2.0
    • startExtension

      public void startExtension(MapSE<StringSE,StringSE> attributes) throws IOExceptionSE

      拡張操作の開始を書き込みます。

      パラメーター:
      attributes - 拡張要素属性の文字列名 / 値のペア
      例外:
      IOExceptionSE - 入出力エラーが発生した場合
      導入:
      2.0
    • endExtension

      public void endExtension() throws IOExceptionSE

      拡張操作の終わりを書き込みます。

      例外:
      IOExceptionSE - 入出力エラーが発生した場合
      導入:
      2.0
    • startError

      public void startError(StringSE errorName) throws IOExceptionSE

      エラーの始まりを書きます。

      パラメーター:
      errorName - エラーの説明文字列
      例外:
      IOExceptionSE - 入出力エラーが発生した場合
      導入:
      2.0
    • endError

      public void endError() throws IOExceptionSE

      エラーの終わりを書きます。

      例外:
      IOExceptionSE - 入出力エラーが発生した場合
      導入:
      2.0