info.magnolia.module.blossom.view
Class UuidRedirectView
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.view.AbstractView
org.springframework.web.servlet.view.AbstractUrlBasedView
org.springframework.web.servlet.view.RedirectView
info.magnolia.module.blossom.view.UuidRedirectView
- All Implemented Interfaces:
- org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.View
public class UuidRedirectView
- extends org.springframework.web.servlet.view.RedirectView
View that sends a redirect based on a uuid. By default uses the website repository but any repository can be used.
- Since:
- 1.2
- See Also:
UuidRedirectViewResolver
Fields inherited from class org.springframework.web.servlet.view.AbstractView |
DEFAULT_CONTENT_TYPE |
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport |
logger |
Methods inherited from class org.springframework.web.servlet.view.RedirectView |
appendQueryProperties, isEligibleProperty, isEligibleValue, queryProperties, renderMergedOutputModel, sendRedirect, setContextRelative, setEncodingScheme, setExposeModelAttributes, setHttp10Compatible, urlEncode |
Methods inherited from class org.springframework.web.servlet.view.AbstractUrlBasedView |
afterPropertiesSet, getUrl, isUrlRequired, setUrl, toString |
Methods inherited from class org.springframework.web.servlet.view.AbstractView |
addStaticAttribute, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, prepareResponse, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setRequestContextAttribute, writeToResponse |
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport |
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext |
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport |
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext |
UuidRedirectView
public UuidRedirectView(String uuid)
UuidRedirectView
public UuidRedirectView(String workspace,
String uuid)
getWorkspace
public String getWorkspace()
getRepository
@Deprecated
public String getRepository()
- Deprecated.
getUuid
public String getUuid()
render
public void render(Map model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
- Specified by:
render
in interface org.springframework.web.servlet.View
- Overrides:
render
in class org.springframework.web.servlet.view.AbstractView
- Throws:
Exception
resolveUuidToUrl
protected String resolveUuidToUrl(String workspace,
String uuid)
throws Exception
- Throws:
Exception
Copyright © 2009-2012 Magnolia International Ltd.. All Rights Reserved.