|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.webscripts.AbstractStore org.springframework.extensions.webscripts.LocalFileSystemStore org.springframework.extensions.webscripts.WebApplicationStore
public class WebApplicationStore
Store implementation which points to web application root
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.LocalFileSystemStore |
---|
LocalFileSystemStore.LocalFileSystemStoreScriptLoader |
Constructor Summary | |
---|---|
WebApplicationStore()
|
Method Summary | |
---|---|
void |
createDocument(String documentPath,
String content)
Creates a document. |
String[] |
getAllDocumentPaths()
Gets the paths of all documents in this store |
String |
getBasePath()
Gets the base path of the store |
InputStream |
getDocument(String documentPath)
Gets a document |
protected String[] |
getDocumentPathsByRegEx(String path,
String regexPattern,
boolean traverseChildren)
Performs a pattern filter look up using a regex and starting from a given path. |
boolean |
hasDocument(String documentPath)
Determines if the document exists. |
boolean |
isSecure()
Returns true if this store is considered secure - i.e. |
long |
lastModified(String documentPath)
Gets the last modified timestamp for the document. |
boolean |
removeDocument(String documentPath)
Removes an existing document. |
void |
updateDocument(String documentPath,
String content)
Updates an existing document. |
Methods inherited from class org.springframework.extensions.webscripts.LocalFileSystemStore |
---|
exists, gatherAbsolutePaths, getDescriptionDocumentPaths, getDocumentPaths, getPath, getRealPath, getRoot, getRootDir, getScriptDocumentPaths, getScriptLoader, getServletContext, getTemplateLoader, init, setPath, setRoot, setServletContext, toAbsolutePath |
Methods inherited from class org.springframework.extensions.webscripts.AbstractStore |
---|
getDocumentPaths, getPreviewContext, setPreviewContextProvider |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebApplicationStore()
Method Detail |
---|
public boolean isSecure()
Store
isSecure
in interface Store
isSecure
in class LocalFileSystemStore
public boolean hasDocument(String documentPath)
Store
hasDocument
in interface Store
hasDocument
in class LocalFileSystemStore
documentPath
- document path
public long lastModified(String documentPath) throws IOException
Store
lastModified
in interface Store
lastModified
in class LocalFileSystemStore
documentPath
- document path to an existing document
IOException
- if the document does not exist in the storepublic void updateDocument(String documentPath, String content) throws IOException
Store
updateDocument
in interface Store
updateDocument
in class LocalFileSystemStore
documentPath
- document pathcontent
- content to update the document with
IOException
- if the document does not exist or the update failspublic boolean removeDocument(String documentPath) throws IOException
Store
removeDocument
in interface Store
removeDocument
in class LocalFileSystemStore
documentPath
- document path
IOException
- if the document does not exist or the remove failspublic void createDocument(String documentPath, String content) throws IOException
Store
createDocument
in interface Store
createDocument
in class LocalFileSystemStore
documentPath
- document pathcontent
- content of the document to write
IOException
- if the document already exists or the create failspublic InputStream getDocument(String documentPath) throws IOException
Store
getDocument
in interface Store
getDocument
in class LocalFileSystemStore
documentPath
- document path
IOException
- if the document does not exist in the storepublic String[] getAllDocumentPaths()
Store
getAllDocumentPaths
in interface Store
getAllDocumentPaths
in class LocalFileSystemStore
protected String[] getDocumentPathsByRegEx(String path, String regexPattern, boolean traverseChildren)
LocalFileSystemStore
getDocumentPathsByRegEx
in class LocalFileSystemStore
public String getBasePath()
Store
getBasePath
in interface Store
getBasePath
in class LocalFileSystemStore
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |