Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webengine.loader.store
Interface ResourceStore

All Known Implementing Classes:
FileResourceStore, MemoryStore

public interface ResourceStore

When implementing a resource store you should implement equals and hashCode method. A store is equals to another if the store location is the same.

Author:
Bogdan Stefanescu

Method Summary
 boolean exists(String name)
           
 byte[] getBytes(String name)
           
 String getLocation()
          A string that uniquely identify the location of that store.
 InputStream getStream(String name)
           
 URL getURL(String name)
           
 long lastModified(String name)
           
 void put(String name, byte[] data)
           
 void put(String name, InputStream data)
           
 void remove(String name)
           
 

Method Detail

put

void put(String name,
         InputStream data)
         throws IOException
Throws:
IOException

put

void put(String name,
         byte[] data)
         throws IOException
Throws:
IOException

getStream

InputStream getStream(String name)

getBytes

byte[] getBytes(String name)

remove

void remove(String name)

exists

boolean exists(String name)

lastModified

long lastModified(String name)

getURL

URL getURL(String name)

getLocation

String getLocation()
A string that uniquely identify the location of that store. Two stores are considered equals if their locations are the same.


Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.