|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StaticContentStore
Any pluggable store implementation must implement this interface. The concrete implementations can have their own naming policy, cache eviction policy, storing mechanism and such.
Method Summary | |
---|---|
void |
begin()
Called before a service starts storing its files. |
void |
end()
Called after a service has stored all its files. |
java.lang.String |
storeFile(java.lang.String fileName,
java.io.InputStream in)
Stores the passed stream to an implementation-dependent "storage". |
Method Detail |
---|
void begin()
begin() storeFile() storeFile() ... end()This can be used mostly for optimization purposes. Leave the implementation empty if there is no way to optimize "bulk storings" in your concrete implementation.
end()
void end()
begin()
java.lang.String storeFile(java.lang.String fileName, java.io.InputStream in) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |