Class JarFileSite
- java.lang.Object
-
- com.inductiveautomation.rm.base.RMListenerList
-
- com.inductiveautomation.rm.base.RMObject
-
- com.inductiveautomation.snap.web.WebSite
-
- com.inductiveautomation.snap.websites.ZipFileSite
-
- com.inductiveautomation.snap.websites.JarFileSite
-
- All Implemented Interfaces:
RMJSONArchiver.GetKeys
,RMPropertyChanger
,java.beans.PropertyChangeListener
,java.lang.Cloneable
,java.util.EventListener
public class JarFileSite extends ZipFileSite
A WebSite subclass for Jar files.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JarFileSite.JarDataFile
A ZipFile.-
Nested classes/interfaces inherited from class com.inductiveautomation.snap.websites.ZipFileSite
ZipFileSite.ZipDataFile
-
Nested classes/interfaces inherited from class com.inductiveautomation.snap.web.WebSite
WebSite.Servlet
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.snap.web.WebSite
Refresh_Prop
-
-
Constructor Summary
Constructors Constructor Description JarFileSite()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addZipEntry(java.util.zip.ZipEntry anEntry)
Override to ignore certain Jar paths.protected JarFileSite.JarDataFile
createFileImpl(java.lang.String aPath, boolean isDirectory)
Override to return ZipDataFile.protected java.util.zip.ZipFile
createZipFile()
Override to do weird (Jar)URLConnection thing if URL not local.protected byte[]
getFileBytesImpl(WebFile aFile)
Returns file bytes.protected boolean
isInterestingPath(java.lang.String aPath)
Adds an entry (override to ignore).protected void
loadArchive()
Override to LoadFiles if Zip URL is really just a local (bin) directory.protected void
loadFiles(java.lang.String aPath, java.io.File aFile)
Loads this JarFileSite from files (starting with root and recursing).protected void
setURL(WebURL aURL)
Override to turn on file trimming from system jars.-
Methods inherited from class com.inductiveautomation.snap.websites.ZipFileSite
deleteFileImpl, deleteRowImpl, getFileImpl, getFilesImpl, getResponse, getRowsImpl, getStandardFile, getZipFile, saveFileImpl, saveRowImpl
-
Methods inherited from class com.inductiveautomation.snap.web.WebSite
addDeepChangeListener, bulkImport, createClassLoader, createDataTable, createDataTableImpl, createEntity, createEntityImpl, createFile, createRow, createRow, createRowImpl, createSandbox, createSandboxURL, createSandboxURLS, createSchema, createSite, createURL, deleteEntity, deleteEntityImpl, deleteFile, deleteRow, deleteSite, flush, flushImpl, getClassLoader, getDataTable, getDataTables, getEntity, getEntityImpl, getExists, getFile, getHostName, getJSONKeys, getModifiedTime, getName, getPassword, getPath, getProp, getRequest, getRootDirectory, getRow, getRow, getRowImpl, getRows, getSandbox, getSchema, getServlet, getStandardFile, getURL, getURL, getURLString, getUserName, handleDelete, handleGet, handleHead, handlePut, isRunning, propertyChange, refresh, refreshFile, refreshFileImpl, removeDeepChangeListener, saveEntity, saveEntityImpl, saveFile, saveRow, setClassLoader, setExists, setModifiedTime, setModifiedTimeImpl, setPassword, setProp, setSandbox, setServlet, setUserName, toString
-
Methods inherited from class com.inductiveautomation.rm.base.RMObject
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
-
Methods inherited from class com.inductiveautomation.rm.base.RMListenerList
addListener, clone, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
-
-
-
-
Method Detail
-
setURL
protected void setURL(WebURL aURL)
Override to turn on file trimming from system jars.
-
loadArchive
protected void loadArchive()
Override to LoadFiles if Zip URL is really just a local (bin) directory.- Overrides:
loadArchive
in classZipFileSite
-
createZipFile
protected java.util.zip.ZipFile createZipFile() throws java.lang.Exception
Override to do weird (Jar)URLConnection thing if URL not local.- Overrides:
createZipFile
in classZipFileSite
- Throws:
java.lang.Exception
-
addZipEntry
protected void addZipEntry(java.util.zip.ZipEntry anEntry)
Override to ignore certain Jar paths.- Overrides:
addZipEntry
in classZipFileSite
-
isInterestingPath
protected boolean isInterestingPath(java.lang.String aPath)
Adds an entry (override to ignore).
-
loadFiles
protected void loadFiles(java.lang.String aPath, java.io.File aFile)
Loads this JarFileSite from files (starting with root and recursing).
-
createFileImpl
protected JarFileSite.JarDataFile createFileImpl(java.lang.String aPath, boolean isDirectory)
Override to return ZipDataFile.- Overrides:
createFileImpl
in classZipFileSite
-
getFileBytesImpl
protected byte[] getFileBytesImpl(WebFile aFile) throws java.lang.Exception
Returns file bytes.- Overrides:
getFileBytesImpl
in classZipFileSite
- Throws:
java.lang.Exception
-
-