com.raritantechnologies.searchApp.taglibrary
Class LoginTag

java.lang.Object
  extended byBodyTagSupport
      extended bycom.raritantechnologies.searchApp.taglibrary.LoginTag
All Implemented Interfaces:
IConfigurable, ICustomTag

public class LoginTag
extends BodyTagSupport
implements ICustomTag

Causes a generic login event (used when a common login is needed). Can be put into JSP pages that need to be secured

JSP syntax:
  <search:AutoLogin userName="foo" password="baz" />
 

Can be used with an ILoginHandler:

  <search:AutoLogin loginHandlerName="[ name of ILoginHandler SystemObject ]"
                       errorPage="[ optional URL to redirect if login fails ]"
                       securityManager="[ name of optional ISecurityManager for authorization control ]" />
 

Developed by Raritan Technologies .

Author:
Ted Sullivan
See Also:
Serialized Form

Constructor Summary
LoginTag()
           
 
Method Summary
 int doAfterBody()
           
 int doStartTag()
           
 java.lang.String getBody(RaritanPageContext rpc)
          Returns the tag body.
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 void initialize(java.util.Map initParams)
           
 void setAlwaysLogin(java.lang.String alwaysLogin)
           
 void setErrorPage(java.lang.String errorPage)
           
 void setLoginHandlerName(java.lang.String loginHandlerName)
           
 void setPassword(java.lang.String password)
           
 void setSecurityManager(java.lang.String securityManager)
           
 void setUserName(java.lang.String userName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginTag

public LoginTag()
Method Detail

setUserName

public void setUserName(java.lang.String userName)

setPassword

public void setPassword(java.lang.String password)

setLoginHandlerName

public void setLoginHandlerName(java.lang.String loginHandlerName)

setAlwaysLogin

public void setAlwaysLogin(java.lang.String alwaysLogin)

setErrorPage

public void setErrorPage(java.lang.String errorPage)

setSecurityManager

public void setSecurityManager(java.lang.String securityManager)

doStartTag

public int doStartTag()
               throws JspException
Throws:
JspException

getBody

public java.lang.String getBody(RaritanPageContext rpc)
Description copied from interface: ICustomTag
Returns the tag body.

Specified by:
getBody in interface ICustomTag
Parameters:
rpc - Platform-neutral page context ( can be used in non J2EE environments such as ASP).
Returns:
The tag body text string.

doAfterBody

public int doAfterBody()
                throws JspException
Throws:
JspException

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface IConfigurable

initialize

public void initialize(java.util.Map initParams)
Specified by:
initialize in interface ICustomTag