|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 StoreisSecure in class LocalFileSystemStorepublic boolean hasDocument(String documentPath)
Store
hasDocument in interface StorehasDocument in class LocalFileSystemStoredocumentPath - document path
public long lastModified(String documentPath)
throws IOException
Store
lastModified in interface StorelastModified in class LocalFileSystemStoredocumentPath - document path to an existing document
IOException - if the document does not exist in the store
public void updateDocument(String documentPath,
String content)
throws IOException
Store
updateDocument in interface StoreupdateDocument in class LocalFileSystemStoredocumentPath - document pathcontent - content to update the document with
IOException - if the document does not exist or the update fails
public boolean removeDocument(String documentPath)
throws IOException
Store
removeDocument in interface StoreremoveDocument in class LocalFileSystemStoredocumentPath - document path
IOException - if the document does not exist or the remove fails
public void createDocument(String documentPath,
String content)
throws IOException
Store
createDocument in interface StorecreateDocument in class LocalFileSystemStoredocumentPath - document pathcontent - content of the document to write
IOException - if the document already exists or the create fails
public InputStream getDocument(String documentPath)
throws IOException
Store
getDocument in interface StoregetDocument in class LocalFileSystemStoredocumentPath - document path
IOException - if the document does not exist in the storepublic String[] getAllDocumentPaths()
Store
getAllDocumentPaths in interface StoregetAllDocumentPaths in class LocalFileSystemStore
protected String[] getDocumentPathsByRegEx(String path,
String regexPattern,
boolean traverseChildren)
LocalFileSystemStore
getDocumentPathsByRegEx in class LocalFileSystemStorepublic String getBasePath()
Store
getBasePath in interface StoregetBasePath in class LocalFileSystemStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||