Java 类org.springframework.web.context.support.ContextExposingHttpServletRequest 实例源码

项目:GisGMP    文件:TilesExposingBeansView.java   
protected HttpServletRequest getRequestToExpose(HttpServletRequest originalRequest) {
    if (this.exposeContextBeansAsAttributes || this.exposedContextBeanNames != null)
        return new ContextExposingHttpServletRequest(originalRequest, getWebApplicationContext(), this.exposedContextBeanNames);
    return originalRequest;
}
项目:crowly    文件:TilesExposingBeansView.java   
protected HttpServletRequest getRequestToExpose(HttpServletRequest originalRequest) {
    if (this.exposeContextBeansAsAttributes || this.exposedContextBeanNames != null)
        return new ContextExposingHttpServletRequest(originalRequest, getWebApplicationContext(), this.exposedContextBeanNames);
    return originalRequest;
}
项目:spring4-understanding    文件:AbstractView.java   
/**
 * Get the request handle to expose to {@link #renderMergedOutputModel}, i.e. to the view.
 * <p>The default implementation wraps the original request for exposure of Spring beans
 * as request attributes (if demanded).
 * @param originalRequest the original servlet request as provided by the engine
 * @return the wrapped request, or the original request if no wrapping is necessary
 * @see #setExposeContextBeansAsAttributes
 * @see #setExposedContextBeanNames
 * @see org.springframework.web.context.support.ContextExposingHttpServletRequest
 */
protected HttpServletRequest getRequestToExpose(HttpServletRequest originalRequest) {
    if (this.exposeContextBeansAsAttributes || this.exposedContextBeanNames != null) {
        return new ContextExposingHttpServletRequest(
                originalRequest, getWebApplicationContext(), this.exposedContextBeanNames);
    }
    return originalRequest;
}
项目:class-guard    文件:InternalResourceView.java   
/**
 * Get the request handle to expose to the RequestDispatcher, i.e. to the view.
 * <p>The default implementation wraps the original request for exposure of
 * Spring beans as request attributes (if demanded).
 * @param originalRequest the original servlet request as provided by the engine
 * @return the wrapped request, or the original request if no wrapping is necessary
 * @see #setExposeContextBeansAsAttributes
 * @see org.springframework.web.context.support.ContextExposingHttpServletRequest
 */
protected HttpServletRequest getRequestToExpose(HttpServletRequest originalRequest) {
    if (this.exposeContextBeansAsAttributes || this.exposedContextBeanNames != null) {
        return new ContextExposingHttpServletRequest(
                originalRequest, getWebApplicationContext(), this.exposedContextBeanNames);
    }
    return originalRequest;
}