|
|||||||||
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 |
HTTP_REQUEST_HEADER_NAME_PATTERN
|
static java.lang.String |
HTTP_RESPONSE_HEADER_NAME_PATTERN
|
Constructor Summary | |
---|---|
DefaultHttpHeaderMapper()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
void |
fromHeaders(MessageHeaders headers,
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(BeanFactory beanFactory)
|
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,?> |
toHeaders(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 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(BeanFactory beanFactory) throws BeansException
setBeanFactory
in interface BeanFactoryAware
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 setUserDefinedHeaderPrefix(java.lang.String userDefinedHeaderPrefix)
public void fromHeaders(MessageHeaders headers, HttpHeaders target)
fromHeaders
in interface HeaderMapper<HttpHeaders>
public java.util.Map<java.lang.String,?> toHeaders(HttpHeaders source)
toHeaders
in interface HeaderMapper<HttpHeaders>
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface InitializingBean
java.lang.Exception
public static DefaultHttpHeaderMapper outboundMapper()
public static DefaultHttpHeaderMapper inboundMapper()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |