KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > web > tomcat > security > HttpServletRequestCallback


1 /*
2  * JBoss, the OpenSource WebOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7
8 package org.jboss.web.tomcat.security;
9
10 import javax.security.auth.callback.Callback JavaDoc;
11 import javax.servlet.http.HttpServletRequest JavaDoc;
12
13 /**
14  * An implementation of Callback that obtains the HttpServletRequest from the
15  * the client trying to authenticate.
16  *
17  * @author Ricardo Arguello (ricardoarguello@users.sourceforge.net)
18  * @version $Revision: 1.1.2.1 $
19  */

20 public class HttpServletRequestCallback implements Callback JavaDoc
21 {
22    private transient HttpServletRequest JavaDoc request;
23
24    public HttpServletRequestCallback()
25    {
26    }
27
28    public HttpServletRequest JavaDoc getHttpServletRequest()
29    {
30       return request;
31    }
32
33    public void setHttpServletRequest(HttpServletRequest JavaDoc request)
34    {
35       this.request = request;
36    }
37 }
Popular Tags