Class ZipFileSite
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.snap.web.WebSite
com.inductiveautomation.snap.websites.ZipFileSite
- All Implemented Interfaces:
- RMJSONArchiver.GetKeys,- RMPropertyChanger,- PropertyChangeListener,- Cloneable,- EventListener
- Direct Known Subclasses:
- JarFileSite
A WebSite subclass for Zip files.
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class com.inductiveautomation.snap.web.WebSiteWebSite.Servlet
- 
Field SummaryFields inherited from class com.inductiveautomation.snap.web.WebSiteRefresh_Prop
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddZipEntry(ZipEntry anEntry) Adds a ZipEntry to WebSite.protected WebFilecreateFileImpl(String aPath, boolean isDirectory) Override to return ZipDataFile.protected ZipFileCreates the ZipFile.protected voiddeleteFileImpl(WebFile aFile) Deletes a file.protected voiddeleteRowImpl(Row aRow) Deletes a given row.protected byte[]getFileBytesImpl(WebFile aFile) Returns file bytes.protected WebFilegetFileImpl(String aPath) Returns a data source file for given path (if file exists).protected ListgetFilesImpl(WebFile aFile) Returns a list of files at path.getResponse(Request aRequest) Override to load files when first file is requested.getRowsImpl(Entity anEntity, Query aQuery) Returns a set of rows for the given properties and condition.protected FileReturns a Java file for the zip file URL (copied to Sandbox if remote).protected ZipFileReturns the ZipFile.protected voidLoads WebSite from Archive (zip) file.protected voidsaveFileImpl(WebFile aFile) Saves a file.protected voidsaveRowImpl(Row aRow) Inserts or updates a given row.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, setURL, setUserName, toStringMethods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, clone, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Constructor Details- 
ZipFileSitepublic ZipFileSite()
 
- 
- 
Method Details- 
loadArchiveprotected void loadArchive()Loads WebSite from Archive (zip) file.
- 
getZipFileReturns the ZipFile.- Throws:
- Exception
 
- 
createZipFileCreates the ZipFile.- Throws:
- Exception
 
- 
getStandardFileReturns a Java file for the zip file URL (copied to Sandbox if remote).- Throws:
- Exception
 
- 
addZipEntryAdds a ZipEntry to WebSite.
- 
createFileImplOverride to return ZipDataFile.- Overrides:
- createFileImplin class- WebSite
 
- 
getResponseOverride to load files when first file is requested.- Overrides:
- getResponsein class- WebSite
 
- 
getFileImplReturns a data source file for given path (if file exists).- Overrides:
- getFileImplin class- WebSite
 
- 
getFilesImplReturns a list of files at path.- Overrides:
- getFilesImplin class- WebSite
- Throws:
- Exception
 
- 
getFileBytesImplReturns file bytes.- Overrides:
- getFileBytesImplin class- WebSite
- Throws:
- Exception
 
- 
saveFileImplSaves a file.- Overrides:
- saveFileImplin class- WebSite
- Throws:
- Exception
 
- 
deleteFileImplDeletes a file.- Overrides:
- deleteFileImplin class- WebSite
- Throws:
- Exception
 
- 
getRowsImplDescription copied from class:WebSiteReturns a set of rows for the given properties and condition.- Specified by:
- getRowsImplin class- WebSite
 
- 
saveRowImplDescription copied from class:WebSiteInserts or updates a given row.- Specified by:
- saveRowImplin class- WebSite
 
- 
deleteRowImplDescription copied from class:WebSiteDeletes a given row.- Specified by:
- deleteRowImplin class- WebSite
 
 
-