public final class ImageResourceManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
IMAGE_SERVLET_BASE_URL |
| Modifier and Type | Method and Description |
|---|---|
static String |
addImageResource(String strResourceTypeId,
org.apache.commons.fileupload.FileItem fileItem)
Add Image Resource
|
static ImageResource |
getImageResource(String strResourceTypeId,
int nResourceId)
Gets an image resource
|
static String |
getImageUrl(String strResourceTypeId,
int nResourceId)
Get Image URL
|
static void |
registerProvider(ImageResourceProvider resourceProvider)
Registers a new resource type
|
public static String IMAGE_SERVLET_BASE_URL
public static void registerProvider(ImageResourceProvider resourceProvider)
resourceProvider - the resource type to registerpublic static ImageResource getImageResource(String strResourceTypeId, int nResourceId)
strResourceTypeId - The resource's type IDnResourceId - The resource IDpublic static String addImageResource(String strResourceTypeId, org.apache.commons.fileupload.FileItem fileItem)
strResourceTypeId - fileItem - Copyright © 2024 City of Paris. All rights reserved.