username/pass auth handler - initial rev.
[java-idp.git] / src / edu / internet2 / middleware / shibboleth / idp / profile / ProfileRequestDispatcher.java
index 913d768..a89d0f3 100644 (file)
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 package edu.internet2.middleware.shibboleth.idp.profile;
 
-import javax.servlet.http.HttpServlet;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import edu.internet2.middleware.shibboleth.common.profile.BaseServletProfileRequestDispatcher;
+import edu.internet2.middleware.shibboleth.common.profile.ProfileRequest;
+import edu.internet2.middleware.shibboleth.common.profile.ProfileResponse;
 
 /**
- * Servlet responsible for dispatching incoming requests to the appropriate {@link ProfileHandler}.
+ * Servlet responsible for dispatching incoming shibboleth requests to the appropriate profile handler.
  */
-public class ProfileRequestDispatcher extends HttpServlet {
+public class ProfileRequestDispatcher extends BaseServletProfileRequestDispatcher {
+
+    /** Serial version UID. */
+    private static final long serialVersionUID = -3939942569721369334L;
+
+    /** {@inheritDoc} */
+    protected ProfileRequest getProfileRequest(ServletRequest request) {
+        return new ShibbolethProfileRequest((HttpServletRequest) request);
+    }
 
+    /** {@inheritDoc} */
+    protected ProfileResponse getProfileResponse(ServletResponse response) {
+        return new ShibbolethProfileResponse((HttpServletResponse) response);
+    }
 }
\ No newline at end of file