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

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

Introduction

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

Prototype

public void setExcludedInboundStandardResponseHeaderNames(
        String... excludedInboundStandardResponseHeaderNames) 

Source Link

Document

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

Usage

From source file:org.springframework.integration.http.support.DefaultHttpHeaderMapper.java

/**
 * Factory method for creating a basic inbound mapper instance.
 * This will map all standard HTTP request headers when receiving an HTTP request,
 * and it will map all standard HTTP response headers when sending an HTTP response.
 *//*from  w w  w. j a  v  a 2s . c  o m*/
public static DefaultHttpHeaderMapper inboundMapper() {
    DefaultHttpHeaderMapper mapper = new DefaultHttpHeaderMapper();
    mapper.setInboundHeaderNames(HTTP_REQUEST_HEADER_NAMES);
    mapper.setOutboundHeaderNames(HTTP_RESPONSE_HEADER_NAMES);
    mapper.setExcludedInboundStandardResponseHeaderNames(HTTP_RESPONSE_HEADER_NAMES_INBOUND_EXCLUSIONS);
    return mapper;
}