Package org.apache.juneau.http
Interface HttpResource
- All Superinterfaces:
HttpBody
- All Known Implementing Classes:
HttpResourceBean
An
HttpBody that carries additional headers (such as Content-Type,
Content-Disposition, or Content-Language) alongside the body.
Mirrors the semantics of HttpResource from juneau-rest-common-classic without the
Apache HttpCore dependency. The default immutable implementation is
HttpResourceBean.
See Also:
- Since:
- 10.0.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the headers associated with this resource.Methods inherited from interface org.apache.juneau.http.HttpBody
getContentLength, getContentType, isRepeatable, writeTo
-
Method Details
-
getHeaders
Returns the headers associated with this resource.The returned list may include body-specific headers (
Content-Type,Content-Length) or arbitrary application headers (e.g.Cache-Control,Content-Disposition).- Returns:
- The headers. Never
null .
-