Class V2RequestConsumer

java.lang.Object
jp.cssj.driver.ctip.v2.V2RequestConsumer

public class V2RequestConsumer extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    abort(byte mode)
    処理の中断を要求します。
    void
    clientResource(boolean on)
    クライアント側でリソースを解決するモードを設定します。
    void
    通信を終了します。
    void
    continuous(boolean continuous)
    複数の結果を結合するモードを切り替えます。
    void
    data(byte[] b, int off, int len)
    データパケットを送ります。
    void
    eof()
    データの終了を通知します。
    void
    結果の結合を要求します。
    void
    存在しないリソースとして通知します。
    void
    property(String name, String value)
    プロパティを送ります。
    void
    状態をリセットします。
    void
    サーバー情報を要求します。
    void
    サーバー側でメインドキュメントを取得します。
    protected void
     
    void
    startMain(URI uri, String mimeType, String encoding, long length)
    本体の開始を通知します。
    void
    startResource(URI uri, String mimeType, String encoding, long length)
    リソースの開始を通知します。

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • setCTIPSession

      protected void setCTIPSession(V2Session session)
    • property

      public void property(String name, String value) throws IOException
      プロパティを送ります。
      Parameters:
      name - プロパティ名。
      value - 値。
      Throws:
      IOException
    • clientResource

      public void clientResource(boolean on) throws IOException
      クライアント側でリソースを解決するモードを設定します。
      Parameters:
      on - trueであれば切り替え、falseであれば解除。
      Throws:
      IOException
    • startMain

      public void startMain(URI uri, String mimeType, String encoding, long length) throws IOException
      本体の開始を通知します。
      Parameters:
      uri - 仮想URI。
      mimeType - MIME型。
      encoding - キャラクタ・エンコーディング。
      Throws:
      IOException
    • serverMain

      public void serverMain(URI uri) throws IOException
      サーバー側でメインドキュメントを取得します。
      Parameters:
      uri - メインドキュメントのURI。
      Throws:
      IOException
    • data

      public void data(byte[] b, int off, int len) throws IOException
      データパケットを送ります。
      Parameters:
      b - バイト列バッファ。
      off - データの開始位置。
      len - データの長さ。
      Throws:
      IOException
    • startResource

      public void startResource(URI uri, String mimeType, String encoding, long length) throws IOException
      リソースの開始を通知します。
      Parameters:
      uri - 仮想URI。
      mimeType - MIME型。
      encoding - キャラクタ・エンコーディング。
      Throws:
      IOException
    • missingResource

      public void missingResource(URI uri) throws IOException
      存在しないリソースとして通知します。
      Parameters:
      uri - リソースのURI。
      Throws:
      IOException
    • eof

      public void eof() throws IOException
      データの終了を通知します。
      Throws:
      IOException
    • continuous

      public void continuous(boolean continuous) throws IOException
      複数の結果を結合するモードを切り替えます。
      Parameters:
      continuous - 結合モード。
      Throws:
      IOException
    • join

      public void join() throws IOException
      結果の結合を要求します。
      Throws:
      IOException
    • abort

      public void abort(byte mode) throws IOException
      処理の中断を要求します。
      Parameters:
      mode - 中断モード。
      Throws:
      IOException
    • reset

      public void reset() throws IOException
      状態をリセットします。
      Throws:
      IOException
    • close

      public void close() throws IOException
      通信を終了します。
      Throws:
      IOException
    • serverInfo

      public void serverInfo(URI uri) throws IOException
      サーバー情報を要求します。
      Parameters:
      uri - サーバー情報のURI。
      Throws:
      IOException