public class ZipFileSite extends WebSite
| Modifier and Type | Class and Description |
|---|---|
static class |
ZipFileSite.ZipDataFile
A ZipFile.
|
WebSite.ServletRefresh_Prop| Constructor and Description |
|---|
ZipFileSite() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addZipEntry(java.util.zip.ZipEntry anEntry)
Adds a ZipEntry to WebSite.
|
protected WebFile |
createFileImpl(java.lang.String aPath,
boolean isDirectory)
Override to return ZipDataFile.
|
protected java.util.zip.ZipFile |
createZipFile()
Creates the ZipFile.
|
protected void |
deleteFileImpl(WebFile aFile)
Deletes a file.
|
protected void |
deleteRowImpl(Row aRow)
Deletes a given row.
|
protected byte[] |
getFileBytesImpl(WebFile aFile)
Returns file bytes.
|
protected WebFile |
getFileImpl(java.lang.String aPath)
Returns a data source file for given path (if file exists).
|
protected java.util.List |
getFilesImpl(WebFile aFile)
Returns a list of files at path.
|
Response |
getResponse(Request aRequest)
Override to load files when first file is requested.
|
protected java.util.List<Row> |
getRowsImpl(Entity anEntity,
Query aQuery)
Returns a set of rows for the given properties and condition.
|
protected java.io.File |
getStandardFile()
Returns a Java file for the zip file URL (copied to Sandbox if remote).
|
protected java.util.zip.ZipFile |
getZipFile()
Returns the ZipFile.
|
protected void |
loadArchive()
Loads WebSite from Archive (zip) file.
|
protected void |
saveFileImpl(WebFile aFile)
Saves a file.
|
protected void |
saveRowImpl(Row aRow)
Inserts or updates a given row.
|
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, setURL, setUserName, toStringaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeaddListener, clone, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListenerprotected void loadArchive()
protected java.util.zip.ZipFile getZipFile()
throws java.lang.Exception
java.lang.Exceptionprotected java.util.zip.ZipFile createZipFile()
throws java.lang.Exception
java.lang.Exceptionprotected java.io.File getStandardFile()
throws java.lang.Exception
java.lang.Exceptionprotected void addZipEntry(java.util.zip.ZipEntry anEntry)
protected WebFile createFileImpl(java.lang.String aPath, boolean isDirectory)
createFileImpl in class WebSitepublic Response getResponse(Request aRequest)
getResponse in class WebSiteprotected WebFile getFileImpl(java.lang.String aPath)
getFileImpl in class WebSiteprotected java.util.List getFilesImpl(WebFile aFile) throws java.lang.Exception
getFilesImpl in class WebSitejava.lang.Exceptionprotected byte[] getFileBytesImpl(WebFile aFile) throws java.lang.Exception
getFileBytesImpl in class WebSitejava.lang.Exceptionprotected void saveFileImpl(WebFile aFile) throws java.lang.Exception
saveFileImpl in class WebSitejava.lang.Exceptionprotected void deleteFileImpl(WebFile aFile) throws java.lang.Exception
deleteFileImpl in class WebSitejava.lang.Exceptionprotected java.util.List<Row> getRowsImpl(Entity anEntity, Query aQuery)
WebSitegetRowsImpl in class WebSiteprotected void saveRowImpl(Row aRow)
WebSitesaveRowImpl in class WebSiteprotected void deleteRowImpl(Row aRow)
WebSitedeleteRowImpl in class WebSite