Example usage for org.springframework.integration.http.support DefaultHttpHeaderMapper setExcludedOutboundStandardRequestHeaderNames

List of usage examples for org.springframework.integration.http.support DefaultHttpHeaderMapper setExcludedOutboundStandardRequestHeaderNames

Introduction

In this page you can find the example usage for org.springframework.integration.http.support DefaultHttpHeaderMapper setExcludedOutboundStandardRequestHeaderNames.

Prototype

public void setExcludedOutboundStandardRequestHeaderNames(
        String... excludedOutboundStandardRequestHeaderNames) 

Source Link

Document

Provide header names from the list of standard headers that should be suppressed when mapping outbound endpoint request headers.

Usage

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;
}