Example usage for org.springframework.web.context.support ContextExposingHttpServletRequest ContextExposingHttpServletRequest

List of usage examples for org.springframework.web.context.support ContextExposingHttpServletRequest ContextExposingHttpServletRequest

Introduction

In this page you can find the example usage for org.springframework.web.context.support ContextExposingHttpServletRequest ContextExposingHttpServletRequest.

Prototype

public ContextExposingHttpServletRequest(HttpServletRequest originalRequest, WebApplicationContext context,
        @Nullable Set<String> exposedContextBeanNames) 

Source Link

Document

Create a new ContextExposingHttpServletRequest for the given request.

Usage

From source file:io.github.autsia.crowly.tiles.TilesExposingBeansView.java

protected HttpServletRequest getRequestToExpose(HttpServletRequest originalRequest) {
    if (this.exposeContextBeansAsAttributes || this.exposedContextBeanNames != null)
        return new ContextExposingHttpServletRequest(originalRequest, getWebApplicationContext(),
                this.exposedContextBeanNames);
    return originalRequest;
}