Interface EncodedResource
- All Superinterfaces:
InputStreamSource
,Resource
public interface EncodedResource extends Resource
Interface for a resource descriptor that describes the encoding applied to the entire resource content.This information is required if the client consuming that resource needs additional decoding capabilities to retrieve the resource's content.
- Since:
- 4.1
- Author:
- Jeremy Grelle
- See Also:
- HTTP/1.1: Semantics and Content, section 3.1.2.2
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getContentEncoding()
The content coding value, as defined in the IANA registryMethods inherited from interface org.springframework.core.io.InputStreamSource
getInputStream
Methods inherited from interface org.springframework.core.io.Resource
contentLength, createRelative, exists, getDescription, getFile, getFilename, getURI, getURL, isOpen, isReadable, lastModified
Method Detail
getContentEncoding
String getContentEncoding()
The content coding value, as defined in the IANA registry- Returns:
- the content encoding
- See Also:
- HTTP/1.1: Semantics and Content, section 3.1.2.1