I have the following code :
final String PRODUCT_IMAGES_LOCATIONS = String.format("file:///%s/", SystemParams.PRODUCT_IMAGE_FOLDER);
registry.addResourceHandler("/product/image/**").addResourceLocations(PRODUCT_IMAGES_LOCATIONS)
.setCachePeriod(0);
It creates a url for the a tag of the form http://localhost:9090/pocola/product/image/1/fc29a4cb6dc14125a65e063ad84ff8d6.jpg
So i want encript url for href of tag a . Please help me . Thanks