perfsonar-dev - [GEANT/SA2/ps-java-services] r5669 - trunk/servlet-context-redirector/src/main/java/net/geant/perfsonar/filters
Subject: perfsonar development work
List archive
[GEANT/SA2/ps-java-services] r5669 - trunk/servlet-context-redirector/src/main/java/net/geant/perfsonar/filters
Chronological Thread
- From:
- To:
- Subject: [GEANT/SA2/ps-java-services] r5669 - trunk/servlet-context-redirector/src/main/java/net/geant/perfsonar/filters
- Date: Thu, 20 May 2010 13:15:48 +0100
Author: psnc.trzaszczka
Date: 2010-05-20 13:15:47 +0100 (Thu, 20 May 2010)
New Revision: 5669
Modified:
trunk/servlet-context-redirector/src/main/java/net/geant/perfsonar/filters/RedirectionFilter.java
Log:
Modified:
trunk/servlet-context-redirector/src/main/java/net/geant/perfsonar/filters/RedirectionFilter.java
===================================================================
---
trunk/servlet-context-redirector/src/main/java/net/geant/perfsonar/filters/RedirectionFilter.java
2010-05-20 09:10:50 UTC (rev 5668)
+++
trunk/servlet-context-redirector/src/main/java/net/geant/perfsonar/filters/RedirectionFilter.java
2010-05-20 12:15:47 UTC (rev 5669)
@@ -26,10 +26,8 @@
FilterChain arg2) throws IOException,
ServletException {
HttpServletRequest request=(HttpServletRequest)arg0;
HttpServletResponse response = (HttpServletResponse) arg1;
+ response.sendRedirect("/"+redirectUrl +
request.getServletPath());
- response.setHeader( "Location", "/"+redirectUrl +
request.getServletPath());
- response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
-
}
@Override
- [GEANT/SA2/ps-java-services] r5669 - trunk/servlet-context-redirector/src/main/java/net/geant/perfsonar/filters, svn-noreply, 05/20/2010
Archive powered by MHonArc 2.6.16.