Package org.actioncontroller.content
Class Content
- java.lang.Object
-
- org.actioncontroller.content.Content
-
public class Content extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static DateTimeFormatterRFC_1123_DATE_TIME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>getCacheControl()Optional<String>getContentType()StringgetLastModifiedAsRfc1123()LonglastModified()booleannotModified(String headerInRfc1123)byte[]readContent()
-
-
-
Field Detail
-
RFC_1123_DATE_TIME
public static final DateTimeFormatter RFC_1123_DATE_TIME
-
-
Constructor Detail
-
Content
public Content(URL resourceUrl)
-
-
Method Detail
-
notModified
public boolean notModified(String headerInRfc1123)
-
lastModified
public Long lastModified()
-
getLastModifiedAsRfc1123
public String getLastModifiedAsRfc1123()
-
readContent
public byte[] readContent() throws IOException- Throws:
IOException
-
-