url redirect activate

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-transfer/uri-resolver@100664 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2014-10-14 10:28:35 +00:00
parent 80d26b71e9
commit 1e961a0593
1 changed files with 4 additions and 5 deletions

View File

@ -194,14 +194,13 @@ public class GisResolver extends HttpServlet{
logger.info("Gis Viewer Application url is: " + gisPortletUrl);
gisPortletUrl+="?wmsrequest="+wmsRequest;
resp.setContentType(TEXT_PLAIN);
resp.setCharacterEncoding(UTF_8);
/*resp.setContentType(TEXT_PLAIN);
resp.setCharacterEncoding(UTF_8);
PrintWriter out = resp.getWriter();
out.println(gisPortletUrl);
logger.info("returning link: " + gisPortletUrl);
out.close();
// urlRedirect(req, resp, gisPortletUrl);
out.close();*/
urlRedirect(req, resp, gisPortletUrl);
} catch (Exception e) {
logger.error("Exception:", e);
String error = "Sorry, an error occurred on resolving request with UUID "+gisUUID+" and scope "+scope+". Please, contact support!";