クラス AuthenticationSimpleHttpInvokerRequestExecutor
- java.lang.Object
-
- org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor
-
- org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor
-
- org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor
- 実装済みのインターフェース一覧:
org.springframework.beans.factory.Aware、org.springframework.beans.factory.BeanClassLoaderAware、org.springframework.remoting.httpinvoker.HttpInvokerRequestExecutor
@Deprecated public class AuthenticationSimpleHttpInvokerRequestExecutor extends org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor使用すべきではありません。5.6.0 現在、代替なしSimpleHttpInvokerRequestExecutorに BASIC 認証サポートを追加します。
コンストラクター概要
コンストラクター コンストラクター 説明 AuthenticationSimpleHttpInvokerRequestExecutor()使用すべきではありません。
方法の概要
すべてのメソッド インスタンスメソッド 具象メソッド 非推奨のメソッド 修飾子と型 メソッド 説明 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
メソッドの詳細
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 認証に使用される
AuthorizationHTTP ヘッダープロパティを追加するだけです。SecurityContextHolderは、関連するプリンシパルと資格情報を取得するために使用されます。- オーバーライド:
- クラス
org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutorのprepareConnection - パラメーター:
con- 準備する HTTP 接続contentLength- 送信するコンテンツの長さ- 例外:
java.io.IOException- HttpURLConnection メソッドによってスローされた場合