public class ResourceSerializer extends Object implements com.google.gson.JsonSerializer<Resource>
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"
}| Constructor and Description |
|---|
ResourceSerializer(String requestURI) |
public ResourceSerializer(String requestURI)
Copyright © 2008-2013. All Rights Reserved.