List of usage examples for org.springframework.integration.http.support DefaultHttpHeaderMapper setExcludedOutboundStandardRequestHeaderNames
public void setExcludedOutboundStandardRequestHeaderNames( String... excludedOutboundStandardRequestHeaderNames)
From source file:org.springframework.integration.http.support.DefaultHttpHeaderMapper.java
/** * Factory method for creating a basic outbound mapper instance. * This will map all standard HTTP request headers when sending an HTTP request, * and it will map all standard HTTP response headers when receiving an HTTP response. *///from ww w . ja v a2s . c o m public static DefaultHttpHeaderMapper outboundMapper() { DefaultHttpHeaderMapper mapper = new DefaultHttpHeaderMapper(); mapper.setOutboundHeaderNames(HTTP_REQUEST_HEADER_NAMES); mapper.setInboundHeaderNames(HTTP_RESPONSE_HEADER_NAMES); mapper.setExcludedOutboundStandardRequestHeaderNames(HTTP_REQUEST_HEADER_NAMES_OUTBOUND_EXCLUSIONS); return mapper; }