接口 HttpResource

所有超级接口:
cn.taketoday.core.io.InputStreamSource, cn.taketoday.core.io.Resource
所有已知实现类:
EncodedResourceResolver.EncodedResource, VersionResourceResolver.FileNameVersionedResource

public interface HttpResource extends cn.taketoday.core.io.Resource
Extended interface for a Resource to be written to an HTTP response.
从以下版本开始:
4.0
作者:
Brian Clozel
  • 字段概要

    从接口继承的字段 cn.taketoday.core.io.Resource

    EMPTY_ARRAY
  • 方法概要

    修饰符和类型
    方法
    说明
    The HTTP headers to be contributed to the HTTP response that serves the current resource.

    从接口继承的方法 cn.taketoday.core.io.InputStreamSource

    getInputStream, getReader, getReader, readableChannel

    从接口继承的方法 cn.taketoday.core.io.Resource

    contentLength, createRelative, exists, getContentAsByteArray, getContentAsString, getFile, getName, getURI, getURL, isDirectory, isFile, isOpen, isReadable, lastModified, list, list, toString
  • 方法详细资料

    • getResponseHeaders

      HttpHeaders getResponseHeaders()
      The HTTP headers to be contributed to the HTTP response that serves the current resource.
      返回:
      the HTTP response headers