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

Renders a login form using Freemarker and the template configured with loginForm. $Id$


Field Summary
static String ERROR_STRING
           
static String SERVICE_CONTACT
           
 
Constructor Summary
FormClientCallback(MagnoliaConfigurationProperties configurationProperties)
           
 
Method Summary
 String getLoginForm()
           
protected  Map<String,Object> getMessages()
          simply sets "errorString" in case of login exception.
 void handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Override this method to provide the specific functionality.
 void setLoginForm(String loginForm)
           
 
Methods inherited from class info.magnolia.cms.security.auth.callback.AbstractHttpClientCallback
accepts, doCallback, getHostPattern, getOriginalUrlPattern, getUrlPattern, getVoters, setHostPattern, setOriginalUrlPattern, setUrlPattern, setVoters
 
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 String ERROR_STRING
See Also:
Constant Field Values

SERVICE_CONTACT

public static final String SERVICE_CONTACT
See Also:
Constant Field Values
Constructor Detail

FormClientCallback

@Inject
public FormClientCallback(MagnoliaConfigurationProperties configurationProperties)
Method Detail

handle

public void handle(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
Description copied from class: AbstractHttpClientCallback
Override this method to provide the specific functionality. This implementation is only kept for backwards compatibility with versions prior to 4.5, and merely delegates the call to AbstractHttpClientCallback.doCallback(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse).

Specified by:
handle in interface HttpClientCallback
Overrides:
handle in class AbstractHttpClientCallback

getLoginForm

public String getLoginForm()

setLoginForm

public void setLoginForm(String loginForm)

getMessages

protected Map<String,Object> 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-2013 Magnolia International Ltd.. All Rights Reserved.