|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.http.support.DefaultHttpHeaderMapper
public class DefaultHttpHeaderMapper
Default HeaderMapper
implementation for HTTP.
Field Summary | |
---|---|
static java.lang.String |
COOKIE
|
static java.lang.String |
HTTP_REQUEST_HEADER_NAME_PATTERN
|
static java.lang.String |
HTTP_RESPONSE_HEADER_NAME_PATTERN
|
static java.lang.String |
SET_COOKIE
|
Constructor Summary | |
---|---|
DefaultHttpHeaderMapper()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
void |
fromHeaders(MessageHeaders headers,
org.springframework.http.HttpHeaders target)
Map from the integration MessageHeaders to an HttpHeaders instance. |
static DefaultHttpHeaderMapper |
inboundMapper()
Factory method for creating a basic inbound mapper instance. |
static DefaultHttpHeaderMapper |
outboundMapper()
Factory method for creating a basic outbound mapper instance. |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
|
void |
setExcludedInboundStandardResponseHeaderNames(java.lang.String[] excludedInboundStandardResponseHeaderNames)
Provide header names from the list of standard headers that should be suppressed when mapping inbound endopoint response headers. |
void |
setExcludedOutboundStandardRequestHeaderNames(java.lang.String[] excludedOutboundStandardRequestHeaderNames)
Provide header names from the list of standard headers that should be suppressed when mapping outbound endpoint request headers. |
void |
setInboundHeaderNames(java.lang.String[] inboundHeaderNames)
Provide the header names that should be mapped from an HTTP request (for inbound adapters) or HTTP response (for outbound adapters) to a Spring Integration Message's headers. |
void |
setOutboundHeaderNames(java.lang.String[] outboundHeaderNames)
Provide the header names that should be mapped to an HTTP request (for outbound adapters) or HTTP response (for inbound adapters) from a Spring Integration Message's headers. |
void |
setUserDefinedHeaderPrefix(java.lang.String userDefinedHeaderPrefix)
Sets the prefix to use with user-defined (non-standard) headers. |
java.util.Map<java.lang.String,java.lang.Object> |
toHeaders(org.springframework.http.HttpHeaders source)
Map from an HttpHeaders instance to integration MessageHeaders. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COOKIE
public static final java.lang.String SET_COOKIE
public static final java.lang.String HTTP_REQUEST_HEADER_NAME_PATTERN
public static final java.lang.String HTTP_RESPONSE_HEADER_NAME_PATTERN
Constructor Detail |
---|
public DefaultHttpHeaderMapper()
Method Detail |
---|
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
public void setOutboundHeaderNames(java.lang.String[] outboundHeaderNames)
Any non-standard headers will be prefixed with the value specified by
setUserDefinedHeaderPrefix(String)
. The default is 'X-'.
public void setInboundHeaderNames(java.lang.String[] inboundHeaderNames)
This will match the header name directly or, for non-standard HTTP headers, it will match
the header name prefixed with the value specified by
setUserDefinedHeaderPrefix(String)
. The default is 'X-'.
public void setExcludedOutboundStandardRequestHeaderNames(java.lang.String[] excludedOutboundStandardRequestHeaderNames)
excludedOutboundStandardRequestHeaderNames
- the excludedStandardRequestHeaderNames to setpublic void setExcludedInboundStandardResponseHeaderNames(java.lang.String[] excludedInboundStandardResponseHeaderNames)
excludedInboundStandardResponseHeaderNames
- the excludedStandardResponseHeaderNames to setpublic void setUserDefinedHeaderPrefix(java.lang.String userDefinedHeaderPrefix)
public void fromHeaders(MessageHeaders headers, org.springframework.http.HttpHeaders target)
fromHeaders
in interface HeaderMapper<org.springframework.http.HttpHeaders>
public java.util.Map<java.lang.String,java.lang.Object> toHeaders(org.springframework.http.HttpHeaders source)
toHeaders
in interface HeaderMapper<org.springframework.http.HttpHeaders>
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public static DefaultHttpHeaderMapper outboundMapper()
public static DefaultHttpHeaderMapper inboundMapper()
|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |