|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gigaspaces.security.fs.URLFileService
public class URLFileService
A FileService responsible for reading from a URL. The URL can be specified by
providing a URL_PROPERTY_KEY.
The url property is a String to parse as a URL.
| Field Summary | |
|---|---|
static String |
URL_PROPERTY_KEY
The property key identifying the security file |
| Fields inherited from interface com.gigaspaces.security.fs.FileService |
|---|
FILE_SERVICE_CLASS_PROPERTY_KEY |
| Constructor Summary | |
|---|---|
URLFileService()
|
|
| Method Summary | |
|---|---|
boolean |
fileExists()
Checks the existence of the file |
void |
init(Properties properties)
Initialize the FileService implementation with the properties supplied to the
SecurityManager. |
long |
lastModified()
The last time the file was modified. |
byte[] |
readFromFile()
Reads from a file, returning a byte array representation of the contents. |
void |
writeToFile(byte[] bytes)
Write to a file a byte array representation of the contents. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String URL_PROPERTY_KEY
| Constructor Detail |
|---|
public URLFileService()
| Method Detail |
|---|
public void init(Properties properties)
throws IOException
FileServiceFileService implementation with the properties supplied to the
SecurityManager.
init in interface FileServiceIOExceptionpublic boolean fileExists()
FileService
fileExists in interface FileServicetrue if and only if the file exists; false otherwise.
public byte[] readFromFile()
throws IOException
FileService
readFromFile in interface FileServiceIOException - If any exception occurred while reading from a file.
public void writeToFile(byte[] bytes)
throws IOException
FileService
writeToFile in interface FileServicebytes - contents as a byte array.
IOException - If any exception occurred while writing to a file.public long lastModified()
FileService-1 should be returned to force a refresh. Same value should
be returned to avoid a refresh.
lastModified in interface FileServicelong value representing the time the file was last modified.
|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||