svn commit: r601736 - /lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/shibboleth/impl/AssertionConsumerServiceImpl.java

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Thu Dec  6 05:58:27 2007
New Revision: 601736

URL: http://svn.apache.org/viewvc?rev=601736&view=rev
Log:
[Refactoring] extracted constants

Modified:
    lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/shibboleth/impl/AssertionConsumerServiceImpl.java

Modified: lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/shibboleth/impl/AssertionConsumerServiceImpl.java
URL: http://svn.apache.org/viewvc/lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/shibboleth/impl/AssertionConsumerServiceImpl.java?rev=601736&r1=601735&r2=601736&view=diff
==============================================================================
--- lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/shibboleth/impl/AssertionConsumerServiceImpl.java (original)
+++ lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/shibboleth/impl/AssertionConsumerServiceImpl.java Thu Dec  6 05:58:27 2007
@@ -58,6 +58,10 @@
 public class AssertionConsumerServiceImpl extends AbstractLogEnabled implements
         AssertionConsumerService, Serviceable, Contextualizable {
 
+    public static final String REQ_PARAM_TARGET = "TARGET";
+    public static final String REQ_PARAM_SAMLART = "SAMLart";
+    public static final String REQ_PARAM_SAMLRESPONSE = "SAMLResponse";
+
     protected static final String CHARSET = "UTF-8";
 
     /**
@@ -141,11 +145,11 @@
 
     private BrowserProfileRequest getBrowserProfileRequest(HttpServletRequest req) {
         BrowserProfileRequest bpr = new BrowserProfileRequest();
-        bpr.SAMLResponse = req.getParameter("SAMLResponse");
-        bpr.TARGET = req.getParameter("TARGET");
+        bpr.SAMLResponse = req.getParameter(REQ_PARAM_SAMLRESPONSE);
+        bpr.TARGET = req.getParameter(REQ_PARAM_TARGET);
         String[] samlArt = null;
         if (bpr.SAMLResponse == null)
-            samlArt = req.getParameterValues("SAMLart");
+            samlArt = req.getParameterValues(REQ_PARAM_SAMLART);
         bpr.SAMLArt = samlArt;
         return bpr;
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.