info.magnolia.cms.security.auth.callback
Class FormClientCallback
java.lang.Object
info.magnolia.cms.security.auth.callback.AbstractHttpClientCallback
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: FormClientCallback.java 55188 2012-02-29 13:26:49Z tmattsson $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
FormClientCallback
@Inject
public FormClientCallback(MagnoliaConfigurationProperties configurationProperties)
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-2012 Magnolia International Ltd.. All Rights Reserved.