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 SummaryNested Classes Modifier and Type Class Description static classJarFileSite.JarDataFileA ZipFile.- 
Nested classes/interfaces inherited from class com.inductiveautomation.snap.websites.ZipFileSiteZipFileSite.ZipDataFile
 - 
Nested classes/interfaces inherited from class com.inductiveautomation.snap.web.WebSiteWebSite.Servlet
 
- 
 - 
Field Summary- 
Fields inherited from class com.inductiveautomation.snap.web.WebSiteRefresh_Prop
 
- 
 - 
Constructor SummaryConstructors Constructor Description JarFileSite()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddZipEntry(java.util.zip.ZipEntry anEntry)Override to ignore certain Jar paths.protected JarFileSite.JarDataFilecreateFileImpl(java.lang.String aPath, boolean isDirectory)Override to return ZipDataFile.protected java.util.zip.ZipFilecreateZipFile()Override to do weird (Jar)URLConnection thing if URL not local.protected byte[]getFileBytesImpl(WebFile aFile)Returns file bytes.protected booleanisInterestingPath(java.lang.String aPath)Adds an entry (override to ignore).protected voidloadArchive()Override to LoadFiles if Zip URL is really just a local (bin) directory.protected voidloadFiles(java.lang.String aPath, java.io.File aFile)Loads this JarFileSite from files (starting with root and recursing).protected voidsetURL(WebURL aUrl)Override to turn on file trimming from system jars.- 
Methods inherited from class com.inductiveautomation.snap.websites.ZipFileSitedeleteFileImpl, deleteRowImpl, getFileImpl, getFilesImpl, getResponse, getRowsImpl, getStandardFile, getZipFile, saveFileImpl, saveRowImpl
 - 
Methods inherited from class com.inductiveautomation.snap.web.WebSiteaddDeepChangeListener, 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.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, clone, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Method Detail- 
setURLprotected void setURL(WebURL aUrl) Override to turn on file trimming from system jars.
 - 
loadArchiveprotected void loadArchive() Override to LoadFiles if Zip URL is really just a local (bin) directory.- Overrides:
- loadArchivein class- ZipFileSite
 
 - 
createZipFileprotected java.util.zip.ZipFile createZipFile() throws java.lang.ExceptionOverride to do weird (Jar)URLConnection thing if URL not local.- Overrides:
- createZipFilein class- ZipFileSite
- Throws:
- java.lang.Exception
 
 - 
addZipEntryprotected void addZipEntry(java.util.zip.ZipEntry anEntry) Override to ignore certain Jar paths.- Overrides:
- addZipEntryin class- ZipFileSite
 
 - 
isInterestingPathprotected boolean isInterestingPath(java.lang.String aPath) Adds an entry (override to ignore).
 - 
loadFilesprotected void loadFiles(java.lang.String aPath, java.io.File aFile)Loads this JarFileSite from files (starting with root and recursing).
 - 
createFileImplprotected JarFileSite.JarDataFile createFileImpl(java.lang.String aPath, boolean isDirectory) Override to return ZipDataFile.- Overrides:
- createFileImplin class- ZipFileSite
 
 - 
getFileBytesImplprotected byte[] getFileBytesImpl(WebFile aFile) throws java.lang.Exception Returns file bytes.- Overrides:
- getFileBytesImplin class- ZipFileSite
- Throws:
- java.lang.Exception
 
 
- 
 
-