Top Description Methods
org.springframework.web.reactive.resource

public Interface HttpResource

extends Resource
Known Direct Implementers
org.springframework.web.reactive.resource.VersionResourceResolver.FileNameVersionedResource, org.springframework.web.reactive.resource.EncodedResourceResolver.EncodedResource
Imports
org.springframework.core.io.Resource, org.springframework.http.HttpHeaders

Extended interface for a Resource to be written to an HTTP response.
Author
Brian Clozel
Since
5.0

Method Summary

Modifier and TypeMethod and Description
public HttpHeaders

Returns:

the HTTP response headers
getResponseHeaders
()

The HTTP headers to be contributed to the HTTP response that serves the current resource.

Inherited from org.springframework.core.io.Resource:
contentLengthcreateRelativeexistsgetContentAsByteArraygetContentAsStringgetDescriptiongetFilegetFilenamegetURIgetURLisFileisOpenisReadablelastModifiedreadableChannel

Method Detail

getResponseHeadersback to summary
public HttpHeaders getResponseHeaders()

The HTTP headers to be contributed to the HTTP response that serves the current resource.

Returns:HttpHeaders

the HTTP response headers