クラス AuthenticationSimpleHttpInvokerRequestExecutor

  • 実装されたすべてのインターフェース:
    org.springframework.beans.factory.Awareorg.springframework.beans.factory.BeanClassLoaderAwareorg.springframework.remoting.httpinvoker.HttpInvokerRequestExecutor

    @Deprecated
    public class AuthenticationSimpleHttpInvokerRequestExecutor
    extends org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor
    使用すべきではありません。
    5.6.0 現在、代替なし
    SimpleHttpInvokerRequestExecutor に BASIC 認証サポートを追加します。
    • フィールドサマリー

      • クラス org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor から継承されたフィールド

        CONTENT_TYPE_SERIALIZED_OBJECT, ENCODING_GZIP, HTTP_HEADER_ACCEPT_ENCODING, HTTP_HEADER_ACCEPT_LANGUAGE, HTTP_HEADER_CONTENT_ENCODING, HTTP_HEADER_CONTENT_LENGTH, HTTP_HEADER_CONTENT_TYPE, HTTP_METHOD_POST
    • メソッドのサマリー

      すべてのメソッド   インスタンスメソッド   具象メソッド   非推奨のメソッド  
      修飾子と型 メソッド 説明
      protected voiddoPrepareConnection​(java.net.HttpURLConnection con, int contentLength)
      使用すべきではありません。
      サブクラスが必要に応じて追加の構成を実行できるように提供されます(たとえば、セキュリティ関連以外の情報の追加のリクエストヘッダーを設定するなど)。
      protected voidprepareConnection​(java.net.HttpURLConnection con, int contentLength)
      使用すべきではありません。
      HTTP 呼び出しが行われるたびに呼び出されます。
      • クラス org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor から継承されたメソッド

        doExecuteRequest, isGzipResponse, openConnection, readResponseBody, setConnectTimeout, setReadTimeout, validateResponse, writeRequestBody
      • クラス org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor から継承されたメソッド

        createObjectInputStream, decorateInputStream, decorateOutputStream, doReadRemoteInvocationResult, doWriteRemoteInvocation, executeRequest, getBeanClassLoader, getByteArrayOutputStream, getContentType, isAcceptGzipEncoding, readRemoteInvocationResult, setAcceptGzipEncoding, setBeanClassLoader, setContentType, writeRemoteInvocation
      • クラス java.lang.Object から継承されたメソッド

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • コンストラクターの詳細

      • AuthenticationSimpleHttpInvokerRequestExecutor

        public AuthenticationSimpleHttpInvokerRequestExecutor()
        使用すべきではありません。
    • メソッドの詳細

      • doPrepareConnection

        protected void doPrepareConnection​(java.net.HttpURLConnection con,
                                           int contentLength)
                                    throws java.io.IOException
        使用すべきではありません。
        サブクラスが必要に応じて追加の構成を実行できるように提供されます(たとえば、セキュリティ関連以外の情報の追加のリクエストヘッダーを設定するなど)。
        パラメーター:
        con - 準備する HTTP 接続
        contentLength - 送信するコンテンツの長さ
        例外:
        java.io.IOException
      • prepareConnection

        protected void prepareConnection​(java.net.HttpURLConnection con,
                                         int contentLength)
                                  throws java.io.IOException
        使用すべきではありません。
        HTTP 呼び出しが行われるたびに呼び出されます。

        親が接続をセットアップできるようにしてから、BASIC 認証に使用される Authorization HTTP ヘッダープロパティを追加するだけです。

        SecurityContextHolder は、関連するプリンシパルと資格情報を取得するために使用されます。

        オーバーライド:
        クラス org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutorprepareConnection 
        パラメーター:
        con - 準備する HTTP 接続
        contentLength - 送信するコンテンツの長さ
        例外:
        java.io.IOException - HttpURLConnection メソッドによってスローされた場合