edu.wisc.trace.uch.action
Class OpenUserContextAction

java.lang.Object
  extended by edu.wisc.trace.uch.action.OpenUserContextAction

public class OpenUserContextAction
extends Object

Provide method to open user context.

Version:
$Revision: 1.1 $
Author:
Parikshit Thakur & Team, Trace R&D Center

Constructor Summary
OpenUserContextAction()
           
 
Method Summary
 void execute(HttpServletRequest request, HttpServletResponse response, UCH uch)
          Open User Context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenUserContextAction

public OpenUserContextAction()
Method Detail

execute

public void execute(HttpServletRequest request,
                    HttpServletResponse response,
                    UCH uch)
             throws ServletException,
                    IOException
Open User Context. If request doesn't contain Basic Authentication Header then ask for basic authentication. Else if user authentication failed then response with response status 401 Authentication failed. If authentication succeeded then open a new session. If forwardto request attribute is specified then redirect to that URL.

Parameters:
request - an Object of HttpServletRequest
response - an Object of HttpServletResponse
uch - an Object of UCH
Throws:
ServletException - an Object of ServletException
IOException - an Object of IOException


Copyright © 2006-2008 Trace R&D Center, University of Wisconsin-Madison. All Rights Reserved.