|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MediaProvider
An interface to media providers.
Method Summary | |
---|---|
void |
addMediaKey(int index,
String key)
Adds a path finder media key to the specified index. |
void |
addMediaKey(String key)
Adds a path finder media key. |
void |
clearMediaKeys()
Clears all path finder media keys. |
String |
getDefaultIndex()
Gets the default index file. |
String[] |
getMediaKeys()
Gets the path finder keys for resolving media paths. |
Resource<?> |
getResource(String path,
boolean localized,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Gets the media content resource. |
void |
removeMediaKey(String key)
Removes a path finder media key. |
void |
setDefaultIndex(String index)
Sets the default index file. |
void |
setMediaKeys(String[] keys)
Sets the path finder keys for resolving media paths. |
Method Detail |
---|
String[] getMediaKeys()
void setMediaKeys(String[] keys)
keys
- an array of path finder keys.void addMediaKey(String key)
key
- the path finder key.void addMediaKey(int index, String key)
index
- the key index.key
- the path finder key.void removeMediaKey(String key)
key
- the path finder key.void clearMediaKeys()
String getDefaultIndex()
void setDefaultIndex(String index)
index
- a default index file.Resource<?> getResource(String path, boolean localized, ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ConstructionException, AccessDeniedException
path
- the content path.localized
- the localization option.request
- the servlet request.response
- the servlet response.chain
- the filter chain.
IOException
- on I/O errors.
ConstructionException
- on resource errors.
AccessDeniedException
- for access restrictions.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |