Class ResourceSerializer
java.lang.Object
ro.isdc.wro.extensions.http.handler.ResourceSerializer
- All Implemented Interfaces:
com.google.gson.JsonSerializer<Resource>
Serializes
Resource to json. It transforms the resources to a jsonElement which also provide a proxyUri
which the user can use do download the specific resource. If the resource is external
(eg. http://www.site.com/style.css) no proxyUri is provided.
Example JSON produced by this serializer:
{
"type": "CSS",
"uri": "/static/css/style.css",
"proxyUri": "/wro/wroResources?id=/static/css/style.css"
}- Since:
- 1.4.7
- Author:
- Ivar Conradi Ă˜sthus
-
Constructor Summary
Constructors -
Method Summary