username/pass auth handler - initial rev.
[java-idp.git] / src / edu / internet2 / middleware / shibboleth / idp / profile / ShibbolethProfileRequest.java
index 4b73869..789c1aa 100644 (file)
 
 package edu.internet2.middleware.shibboleth.idp.profile;
 
-import javax.servlet.ServletRequest;
-
-import org.opensaml.common.binding.MessageDecoder;
+import javax.servlet.http.HttpServletRequest;
 
 import edu.internet2.middleware.shibboleth.common.profile.ProfileRequest;
 
 /**
  * Shibboleth {@link ProfileRequest}.
  */
-public class ShibbolethProfileRequest implements ProfileRequest {
-
-    /** Request to process. */
-    private ServletRequest request;
+public class ShibbolethProfileRequest implements ProfileRequest<HttpServletRequest> {
 
-    /** For decoding requests. */
-    private MessageDecoder<ServletRequest> messageDecoder;
+    /** The in comming request. */
+    private HttpServletRequest rawRequest;
 
     /**
      * Constructor.
      * 
-     * @param r to process
-     * @param d for decoding the servlet request
+     * @param request the incomming HTTP request
      */
-    public ShibbolethProfileRequest(ServletRequest r, MessageDecoder<ServletRequest> d) {
-        request = r;
-        messageDecoder = d;
-    }
-
-    /** {@inheritDoc} */
-    public ServletRequest getRequest() {
-        return request;
+    public ShibbolethProfileRequest(HttpServletRequest request){
+        rawRequest = request;
     }
 
     /** {@inheritDoc} */
-    public MessageDecoder<ServletRequest> getMessageDecoder() {
-        return messageDecoder;
+    public HttpServletRequest getRawRequest() {
+        return rawRequest;
     }
-}
+}
\ No newline at end of file