public class FormClientCallback extends AbstractHttpClientCallback
loginForm
.
This is using SimpleFreemarkerHelper
, which means the configured loginForm
will only be loaded through
the classpath loader and won't have access to shared variables etc. For a more complex login form template,
re-implement a HttpClientCallback
which uses FreemarkerHelper
or the
RenderingEngine
Modifier and Type | Field and Description |
---|---|
static String |
ERROR_STRING |
static String |
SERVICE_CONTACT |
Constructor and Description |
---|
FormClientCallback(MagnoliaConfigurationProperties configurationProperties)
Deprecated.
since 5.4.3 use
FormClientCallback(MagnoliaConfigurationProperties, Provider instead. |
FormClientCallback(MagnoliaConfigurationProperties configurationProperties,
javax.inject.Provider<WebContext> webContextProvider) |
Modifier and Type | Method and Description |
---|---|
String |
getLoginForm() |
protected Map<String,Object> |
getMessages()
Deprecated.
since 5.4, use
getTemplateContext() |
protected Map<String,Object> |
getTemplateContext()
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) |
accepts, doCallback, getHostPattern, getOriginalUrlPattern, getUrlPattern, getVoters, setHostPattern, setOriginalUrlPattern, setUrlPattern, setVoters
public static final String ERROR_STRING
public static final String SERVICE_CONTACT
@Inject public FormClientCallback(MagnoliaConfigurationProperties configurationProperties, javax.inject.Provider<WebContext> webContextProvider)
@Deprecated public FormClientCallback(MagnoliaConfigurationProperties configurationProperties)
FormClientCallback(MagnoliaConfigurationProperties, Provider)
instead.public void handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
AbstractHttpClientCallback
AbstractHttpClientCallback.doCallback(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
.handle
in interface HttpClientCallback
handle
in class AbstractHttpClientCallback
public String getLoginForm()
public void setLoginForm(String loginForm)
@Deprecated protected Map<String,Object> getMessages()
getTemplateContext()
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.