public class ZipFileSite extends WebSite
Modifier and Type | Class and Description |
---|---|
static class |
ZipFileSite.ZipDataFile
A ZipFile.
|
WebSite.Servlet
Refresh_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, toString
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
addListener, clone, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
protected void loadArchive()
protected java.util.zip.ZipFile getZipFile() throws java.lang.Exception
java.lang.Exception
protected java.util.zip.ZipFile createZipFile() throws java.lang.Exception
java.lang.Exception
protected java.io.File getStandardFile() throws java.lang.Exception
java.lang.Exception
protected void addZipEntry(java.util.zip.ZipEntry anEntry)
protected WebFile createFileImpl(java.lang.String aPath, boolean isDirectory)
createFileImpl
in class WebSite
public Response getResponse(Request aRequest)
getResponse
in class WebSite
protected WebFile getFileImpl(java.lang.String aPath)
getFileImpl
in class WebSite
protected java.util.List getFilesImpl(WebFile aFile) throws java.lang.Exception
getFilesImpl
in class WebSite
java.lang.Exception
protected byte[] getFileBytesImpl(WebFile aFile) throws java.lang.Exception
getFileBytesImpl
in class WebSite
java.lang.Exception
protected void saveFileImpl(WebFile aFile) throws java.lang.Exception
saveFileImpl
in class WebSite
java.lang.Exception
protected void deleteFileImpl(WebFile aFile) throws java.lang.Exception
deleteFileImpl
in class WebSite
java.lang.Exception
protected java.util.List<Row> getRowsImpl(Entity anEntity, Query aQuery)
WebSite
getRowsImpl
in class WebSite
protected void saveRowImpl(Row aRow)
WebSite
saveRowImpl
in class WebSite
protected void deleteRowImpl(Row aRow)
WebSite
deleteRowImpl
in class WebSite