Return-Path: Delivered-To: apmail-jakarta-jetspeed-dev-archive@www.apache.org Received: (qmail 49700 invoked from network); 11 Aug 2004 06:37:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Aug 2004 06:37:47 -0000 Received: (qmail 11140 invoked by uid 500); 11 Aug 2004 06:37:43 -0000 Delivered-To: apmail-jakarta-jetspeed-dev-archive@jakarta.apache.org Received: (qmail 11074 invoked by uid 500); 11 Aug 2004 06:37:43 -0000 Mailing-List: contact jetspeed-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jetspeed Developers List" Reply-To: "Jetspeed Developers List" Delivered-To: mailing list jetspeed-dev@jakarta.apache.org Received: (qmail 11058 invoked by uid 500); 11 Aug 2004 06:37:43 -0000 Received: (qmail 11051 invoked by uid 500); 11 Aug 2004 06:37:42 -0000 Received: (qmail 11042 invoked by uid 99); 11 Aug 2004 06:37:42 -0000 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Tue, 10 Aug 2004 23:37:42 -0700 Received: (qmail 49649 invoked by uid 1265); 11 Aug 2004 06:37:41 -0000 Date: 11 Aug 2004 06:37:41 -0000 Message-ID: <20040811063741.49648.qmail@minotaur.apache.org> From: taylor@apache.org To: jakarta-jetspeed-2-cvs@apache.org Subject: cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/session/impl JetspeedNavigationalStateComponent.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N taylor 2004/08/10 23:37:41 Modified: portal/src/java/org/apache/jetspeed/container/session/impl JetspeedNavigationalStateComponent.java Log: improved on Navigational API for parsing window states - implementation CVS: ---------------------------------------------------------------------- CVS: PR: CVS: If this change addresses a PR in the problem report tracking CVS: database, then enter the PR number(s) here. CVS: Obtained from: CVS: If this change has been taken from another system, such as NCSA, CVS: then name the system in this line, otherwise delete it. CVS: Submitted by: CVS: If this code has been contributed to Apache by someone else; i.e., CVS: they sent us a patch or a new module, then include their name/email CVS: address here. If this is your work then delete this line. CVS: Reviewed by: CVS: If we are doing pre-commit code reviews and someone else has CVS: reviewed your changes, include their name(s) here. CVS: If you have not had it reviewed then delete this line. Revision Changes Path 1.12 +11 -4 jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/session/impl/JetspeedNavigationalStateComponent.java Index: JetspeedNavigationalStateComponent.java =================================================================== RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/session/impl/JetspeedNavigationalStateComponent.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- JetspeedNavigationalStateComponent.java 20 Jul 2004 18:54:44 -0000 1.11 +++ JetspeedNavigationalStateComponent.java 11 Aug 2004 06:37:40 -0000 1.12 @@ -260,17 +260,18 @@ return new PortletMode(name); } - public boolean hasPortalParameter( HttpServletRequest request, int parameterType ) + public String[] parsePortalParameter( HttpServletRequest request, int parameterType ) { String key = getNavigationKey(NavigationalStateComponent.PREFIX) + getNavigationKey(parameterType); String pathInfo = request.getPathInfo(); if (null == pathInfo) { - return false; + return null; } StringTokenizer tokenizer = new StringTokenizer(pathInfo, "/"); StringBuffer path = new StringBuffer(); boolean isName = true; + String result [] = new String[2]; while (tokenizer.hasMoreTokens()) { String token = tokenizer.nextToken(); @@ -285,9 +286,15 @@ } if (token.startsWith(key)) { - return true; + result[0] = token; + if (tokenizer.hasMoreTokens()) + { + result[1] = tokenizer.nextToken(); + return result; + } + break; } } - return false; + return null; } } --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org