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
_content
private Long
_lastModified
private String
_location
private 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 boolean
exists()
long
getContentLength()
InputStream
getInputStream()
long
getLastModified()
String
getMimeType()
String
getScheme()
String
getURI()
SourceValidity
getValidity()
void
refresh()
-
-
-
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:
getInputStream
in interfaceSource
- Throws:
IOException
SourceNotFoundException
-
getValidity
public SourceValidity getValidity()
- Specified by:
getValidity
in interfaceSource
-
getMimeType
public String getMimeType()
- Specified by:
getMimeType
in interfaceSource
-
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interfaceSource
-
getLastModified
public long getLastModified()
- Specified by:
getLastModified
in interfaceSource
-
-