Package org.ametys.core.minimize
Class SourceMapSourceFactory.SourceMapSource
- java.lang.Object
-
- org.ametys.core.minimize.SourceMapSourceFactory.SourceMapSource
-
- All Implemented Interfaces:
Source
- Enclosing class:
- SourceMapSourceFactory
public static final class SourceMapSourceFactory.SourceMapSource extends Object implements Source
The Source of a source map
-
-
Field Summary
Fields Modifier and Type Field Description private String_contentprivate Long_lastModifiedprivate String_locationprivate TimeStampValidity_timeStampValidity
-
Constructor Summary
Constructors Constructor Description SourceMapSource(String location, String content, Long lastModified)Default constructor for a memory source
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists()longgetContentLength()InputStreamgetInputStream()longgetLastModified()StringgetMimeType()StringgetScheme()StringgetURI()SourceValiditygetValidity()voidrefresh()
-
-
-
Field Detail
-
_lastModified
private Long _lastModified
-
_timeStampValidity
private TimeStampValidity _timeStampValidity
-
-
Constructor Detail
-
SourceMapSource
public SourceMapSource(String location, String content, Long lastModified)
Default constructor for a memory source- Parameters:
location- The location of the sourcecontent- The content of the sourcelastModified- The last modified date
-
-
Method Detail
-
getInputStream
public InputStream getInputStream() throws IOException, SourceNotFoundException
- Specified by:
getInputStreamin interfaceSource- Throws:
IOExceptionSourceNotFoundException
-
getValidity
public SourceValidity getValidity()
- Specified by:
getValidityin interfaceSource
-
getMimeType
public String getMimeType()
- Specified by:
getMimeTypein interfaceSource
-
getContentLength
public long getContentLength()
- Specified by:
getContentLengthin interfaceSource
-
getLastModified
public long getLastModified()
- Specified by:
getLastModifiedin interfaceSource
-
-