public class DefaultHttpHeaderMapper extends ObjectSE implements HeaderMapper<HttpHeaders>, BeanFactoryAware, InitializingBean
HeaderMapper
実装。修飾子と型 | フィールドと説明 |
---|---|
static StringSE | CONTENT_MD5 |
protected static java.time.format.DateTimeFormatter[] | DATE_FORMATS |
static StringSE | HTTP_REQUEST_HEADER_NAME_PATTERN |
static StringSE | HTTP_RESPONSE_HEADER_NAME_PATTERN |
protected Log | logger |
static StringSE | REFRESH |
コンストラクターと説明 |
---|
DefaultHttpHeaderMapper() |
修飾子と型 | メソッドと説明 |
---|---|
void | afterPropertiesSet() |
protected static boolean | containsElementIgnoreCase(StringSE[] headerNames, StringSE name) |
protected StringSE | convertToString(ObjectSE value) |
void | fromHeaders(MessageHeaders headers, HttpHeaders target) 統合 MessageHeaders から HttpHeaders インスタンスにマップします。 |
protected BeanFactory | getBeanFactory() |
protected static long | getFirstDate(StringSE headerValue, StringSE headerName) |
protected ObjectSE | getHttpHeader(HttpHeaders source, StringSE name) |
static DefaultHttpHeaderMapper | inboundMapper() 基本的な受信マッパーインスタンスを作成するためのファクトリメソッド。 |
static DefaultHttpHeaderMapper | outboundMapper() 基本的な送信マッパーインスタンスを作成するためのファクトリメソッド。 |
void | setBeanFactory(BeanFactory beanFactory) |
void | setExcludedInboundStandardResponseHeaderNames(StringSE... excludedInboundStandardResponseHeaderNames) 受信エンドポイントのレスポンスヘッダーをマッピングするときに非表示にする必要がある標準ヘッダーのリストからヘッダー名を指定します。 |
void | setExcludedOutboundStandardRequestHeaderNames(StringSE... excludedOutboundStandardRequestHeaderNames) 送信エンドポイントリクエストヘッダーをマッピングするときに非表示にする必要がある標準ヘッダーのリストからヘッダー名を指定します。 |
void | setInboundHeaderNames(StringSE... inboundHeaderNamesArg) HTTP リクエスト(受信アダプターの場合)または HTTP レスポンス(送信アダプターの場合)から Spring Integration メッセージのヘッダーにマップする必要があるヘッダー名を指定します。 |
void | setOutboundHeaderNames(StringSE... outboundHeaderNames) Spring Integration メッセージのヘッダーからの HTTP リクエスト(送信アダプターの場合)または HTTP レスポンス(受信アダプターの場合)にマップする必要があるヘッダー名を指定します。 |
protected static void | setupDefaultInboundMapper(DefaultHttpHeaderMapper mapper) サブクラスは、静的 inboundMapper() メソッドからこれを呼び出して、受信マッパーの標準ヘッダーマッピングを設定できます。 |
protected static void | setupDefaultOutboundMapper(DefaultHttpHeaderMapper mapper) サブクラスはこれを静的 outboundMapper() メソッドから呼び出して、送信マッパーの標準ヘッダーマッピングを設定できます。 |
void | setUserDefinedHeaderPrefix(StringSE userDefinedHeaderPrefix) ユーザー定義(非標準)ヘッダーで使用するプレフィックスを設定します。 |
protected boolean | shouldMapInboundHeader(StringSE headerName) |
MapSE<StringSE, ObjectSE> | toHeaders(HttpHeaders source) HttpHeaders インスタンスから統合 MessageHeaders へのマップ。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
protected final Log logger
public static final StringSE HTTP_REQUEST_HEADER_NAME_PATTERN
public static final StringSE HTTP_RESPONSE_HEADER_NAME_PATTERN
protected static final java.time.format.DateTimeFormatter[] DATE_FORMATS
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
BeanFactoryAware
の setBeanFactory
BeansException
protected BeanFactory getBeanFactory()
public void setOutboundHeaderNames(StringSE... outboundHeaderNames)
非標準ヘッダーには、setUserDefinedHeaderPrefix(String)
で指定された値がプレフィックスとして付加されます。デフォルトは "X-" です。
outboundHeaderNames
- 発信ヘッダー名。public void setInboundHeaderNames(StringSE... inboundHeaderNamesArg)
これは、ヘッダー名と直接一致します。または、非標準の HTTP ヘッダーの場合は、setUserDefinedHeaderPrefix(String)
で指定された値が前に付いたヘッダー名と一致します。そのデフォルトは空の文字列です。
inboundHeaderNamesArg
- 受信ヘッダー名。public void setExcludedOutboundStandardRequestHeaderNames(StringSE... excludedOutboundStandardRequestHeaderNames)
excludedOutboundStandardRequestHeaderNames
- 設定する excludedStandardRequestHeaderNamespublic void setExcludedInboundStandardResponseHeaderNames(StringSE... excludedInboundStandardResponseHeaderNames)
excludedInboundStandardResponseHeaderNames
- 設定する excludedStandardResponseHeaderNamespublic void setUserDefinedHeaderPrefix(StringSE userDefinedHeaderPrefix)
userDefinedHeaderPrefix
- ユーザー定義のヘッダー接頭辞。public void afterPropertiesSet()
InitializingBean
の afterPropertiesSet
public void fromHeaders(MessageHeaders headers, HttpHeaders target)
HeaderMapper<HttpHeaders>
の fromHeaders
public MapSE<StringSE,ObjectSE> toHeaders(HttpHeaders source)
HeaderMapper<HttpHeaders>
の toHeaders
protected ObjectSE getHttpHeader(HttpHeaders source, StringSE name)
protected final boolean shouldMapInboundHeader(StringSE headerName)
protected static boolean containsElementIgnoreCase(StringSE[] headerNames, StringSE name)
public static DefaultHttpHeaderMapper outboundMapper()
protected static void setupDefaultOutboundMapper(DefaultHttpHeaderMapper mapper)
mapper
- マッパー。public static DefaultHttpHeaderMapper inboundMapper()
protected static void setupDefaultInboundMapper(DefaultHttpHeaderMapper mapper)
mapper
- マッパー。