Class DirSite
- java.lang.Object
-
- com.inductiveautomation.rm.base.RMListenerList
-
- com.inductiveautomation.rm.base.RMObject
-
- com.inductiveautomation.snap.web.WebSite
-
- com.inductiveautomation.snap.websites.DirSite
-
- All Implemented Interfaces:
RMJSONArchiver.GetKeys
,RMPropertyChanger
,java.beans.PropertyChangeListener
,java.lang.Cloneable
,java.util.EventListener
public class DirSite extends WebSite
A data source implementation that draws from a directory WebFile.
-
-
Nested Class Summary
-
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 DirSite()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WebFile
createDirFile(java.lang.String aPath, boolean isDir)
Returns the directory file for a path.protected void
deleteFileImpl(WebFile aFile)
Delete file.protected void
deleteRowImpl(Row aRow)
Deletes a given row.WebFile
getDir()
Returns the directory.protected WebFile
getDirFile(java.lang.String aPath)
Returns the directory file for a path.protected byte[]
getFileBytesImpl(WebFile aFile)
Return file bytes.protected WebFile
getFileImpl(java.lang.String aPath)
Get file from directory.protected java.util.List<WebFile>
getFilesImpl(WebFile aFile)
Get file from directory.protected java.util.List
getRowsImpl(Entity anEntity, Query aQuery)
WebSite methods.protected void
saveFileImpl(WebFile aFile)
Save file.protected void
saveRowImpl(Row aRow)
Inserts or updates a given row.-
Methods inherited from class com.inductiveautomation.snap.web.WebSite
addDeepChangeListener, bulkImport, createClassLoader, createDataTable, createDataTableImpl, createEntity, createEntityImpl, createFile, createFileImpl, 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, getResponse, 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
-
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
-
getDir
public WebFile getDir()
Returns the directory.
-
getDirFile
protected WebFile getDirFile(java.lang.String aPath)
Returns the directory file for a path.
-
createDirFile
protected WebFile createDirFile(java.lang.String aPath, boolean isDir)
Returns the directory file for a path.
-
getFileImpl
protected WebFile getFileImpl(java.lang.String aPath) throws java.lang.Exception
Get file from directory.- Overrides:
getFileImpl
in classWebSite
- Throws:
java.lang.Exception
-
getFilesImpl
protected java.util.List<WebFile> getFilesImpl(WebFile aFile) throws java.lang.Exception
Get file from directory.- Overrides:
getFilesImpl
in classWebSite
- Throws:
java.lang.Exception
-
getFileBytesImpl
protected byte[] getFileBytesImpl(WebFile aFile) throws java.lang.Exception
Return file bytes.- Overrides:
getFileBytesImpl
in classWebSite
- Throws:
java.lang.Exception
-
saveFileImpl
protected void saveFileImpl(WebFile aFile) throws java.lang.Exception
Save file.- Overrides:
saveFileImpl
in classWebSite
- Throws:
java.lang.Exception
-
deleteFileImpl
protected void deleteFileImpl(WebFile aFile) throws java.lang.Exception
Delete file.- Overrides:
deleteFileImpl
in classWebSite
- Throws:
java.lang.Exception
-
getRowsImpl
protected java.util.List getRowsImpl(Entity anEntity, Query aQuery)
WebSite methods.- Specified by:
getRowsImpl
in classWebSite
-
saveRowImpl
protected void saveRowImpl(Row aRow)
Description copied from class:WebSite
Inserts or updates a given row.- Specified by:
saveRowImpl
in classWebSite
-
deleteRowImpl
protected void deleteRowImpl(Row aRow)
Description copied from class:WebSite
Deletes a given row.- Specified by:
deleteRowImpl
in classWebSite
-
-