| |
|
| java.lang.Object org.araneaframework.http.extension.ExternalResource
ExternalResource | public class ExternalResource (Code) | | A data structure for holding information about external resources. Different
files are grouped by group names. Every file has its specific content-type. Possible
to query by file name if a file is allowed to be loaded.
author: "Toomas Römer" |
Inner Class :static class FileGroup | |
Method Summary | |
public void | addGroup(FileGroup fileGroup) | public String | getContentType(String fileName) Returns the content-type of the file. | public Map | getGroupByName(String name) Returns a Map of filenames paired with respective content types.
Parameters: name - the name of the group. | public Set | getGroupNames() Returns a Set of available group names. | public boolean | isAllowedFile(String fileName) Returns true if the fileName is in the allowed list.
Parameters: fileName - the name of the file. |
addGroup | public void addGroup(FileGroup fileGroup)(Code) | | |
getContentType | public String getContentType(String fileName)(Code) | | Returns the content-type of the file. Returns null, if no such file is in the allowed list.
Parameters: fileName - the name of the file. the content-type of the file. |
getGroupByName | public Map getGroupByName(String name)(Code) | | Returns a Map of filenames paired with respective content types.
Parameters: name - the name of the group. Map of filenames paired with respective content types. |
getGroupNames | public Set getGroupNames()(Code) | | Returns a Set of available group names.
a Set of available group names. |
isAllowedFile | public boolean isAllowedFile(String fileName)(Code) | | Returns true if the fileName is in the allowed list.
Parameters: fileName - the name of the file. true if the file is in the allowed list otherwise false. |
|
|
|