接口 HttpResource
- 所有超级接口:
InputStreamSource
,Resource
public interface HttpResource extends Resource
Extended interface for aResource
to be written to an HTTP response.- 从以下版本开始:
- 5.0
- 作者:
- Brian Clozel
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 HttpHeaders
getResponseHeaders()
The HTTP headers to be contributed to the HTTP response that serves the current resource.从接口继承的方法 org.springframework.core.io.InputStreamSource
getInputStream
从接口继承的方法 org.springframework.core.io.Resource
contentLength, createRelative, exists, getDescription, getFile, getFilename, getURI, getURL, isFile, isOpen, isReadable, lastModified, readableChannel
方法详细资料
getResponseHeaders
HttpHeaders getResponseHeaders()
The HTTP headers to be contributed to the HTTP response that serves the current resource.- 返回:
- the HTTP response headers