info.magnolia.cms.security.auth.callback
Class FormClientCallback

java.lang.Object
  extended by info.magnolia.cms.security.auth.callback.AbstractHttpClientCallback
      extended by info.magnolia.cms.security.auth.callback.FormClientCallback
All Implemented Interfaces:
HttpClientCallback

public class FormClientCallback
extends AbstractHttpClientCallback

Sends a login form.

Author:
Sameer Charles $Id: FormClientCallback.java 41137 2011-01-06 18:19:25Z gjoseph $

Field Summary
static java.lang.String ERROR_STRING
           
 
Constructor Summary
FormClientCallback()
           
 
Method Summary
 void doCallback(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 java.lang.String getLoginForm()
           
protected  java.util.Map<java.lang.String,java.lang.String> getMessages()
          simply sets "errorString" in case of login exception.
 void setLoginForm(java.lang.String loginForm)
           
 
Methods inherited from class info.magnolia.cms.security.auth.callback.AbstractHttpClientCallback
handle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_STRING

public static final java.lang.String ERROR_STRING
See Also:
Constant Field Values
Constructor Detail

FormClientCallback

public FormClientCallback()
Method Detail

doCallback

public void doCallback(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response)
Specified by:
doCallback in class AbstractHttpClientCallback

getLoginForm

public java.lang.String getLoginForm()

setLoginForm

public void setLoginForm(java.lang.String loginForm)

getMessages

protected java.util.Map<java.lang.String,java.lang.String> getMessages()
simply sets "errorString" in case of login exception. override this to pass more objects to the freemarker template.

Returns:
an empty map


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.