You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by jf...@apache.org on 2004/08/31 21:02:40 UTC
cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/services/webpage AbstractSiteSession.java
jford 2004/08/31 12:02:39
Modified: src/java/org/apache/jetspeed/services/webpage
AbstractSiteSession.java
Log:
Used static accessor properly
Revision Changes Path
1.4 +2 -2 jakarta-jetspeed/src/java/org/apache/jetspeed/services/webpage/AbstractSiteSession.java
Index: AbstractSiteSession.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/webpage/AbstractSiteSession.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- AbstractSiteSession.java 23 Feb 2004 03:46:26 -0000 1.3
+++ AbstractSiteSession.java 31 Aug 2004 19:02:39 -0000 1.4
@@ -110,7 +110,7 @@
con.setDoInput(true);
con.setDoOutput(true);
con.setAllowUserInteraction(false);
- con.setFollowRedirects(false);
+ HttpURLConnection.setFollowRedirects(false);
if (data.getPosting()) {
con.setRequestMethod("POST");
@@ -186,7 +186,7 @@
int contentType = WebPageHelper.getContentType(con.getHeaderField("content-type"), u.toString());
String location = con.getHeaderField("Location");
- if ((rc == con.HTTP_MOVED_PERM || rc == con.HTTP_MOVED_TEMP) && null != location)
+ if ((rc == HttpURLConnection.HTTP_MOVED_PERM || rc == HttpURLConnection.HTTP_MOVED_TEMP) && null != location)
{
log.debug("+++ REDIRECT = " + location);
location = WebPageHelper.concatURLs(targetBase, location);
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org