public class GenericConnectionStatusView extends AbstractView
Generic View
implementation that displays the connection statis for a provider.
Can be used as both a connected view and a disconnected view.
Configure as a bean whose name is "connect/{providerId}Connect" and/or "connect/{providerId}Connected". For example:
@Bean(name={"connect/facebookConnect", "connect/facebookConnected"})
public View facebookConnectView() {
return new GenericConnectionStatusView("facebook", "Facebook");
}
DEFAULT_CONTENT_TYPE
logger
PATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE
Constructor and Description |
---|
GenericConnectionStatusView(String providerId,
String providerDisplayName)
Constructs the generic status view.
|
Modifier and Type | Method and Description |
---|---|
protected void |
renderMergedOutputModel(Map<String,Object> model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
addStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getRequestToExpose, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setRequestContextAttribute, setResponseContentType, toString, writeToResponse
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext
protected void renderMergedOutputModel(Map<String,Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
renderMergedOutputModel
in class AbstractView
Exception