info.magnolia.module.blossom.view
Class UuidRedirectViewResolver
java.lang.Object
info.magnolia.module.blossom.view.UuidRedirectViewResolver
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean, org.springframework.core.Ordered, org.springframework.web.servlet.ViewResolver
public class UuidRedirectViewResolver
- extends Object
- implements org.springframework.web.servlet.ViewResolver, org.springframework.core.Ordered, org.springframework.beans.factory.InitializingBean
Adds support for redirects based on uuids. By default supports the formats "website:uuid" and "dms:uuid" for sending
redirects for the website and dms workspaces. The prefixes and the workspaces they map to are configurable and
can be changed to support more workspaces.
- Since:
- 1.2
- See Also:
UuidRedirectView
Fields inherited from interface org.springframework.core.Ordered |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UuidRedirectViewResolver
public UuidRedirectViewResolver()
getOrder
public int getOrder()
- Specified by:
getOrder
in interface org.springframework.core.Ordered
setOrder
public void setOrder(int order)
getWorkspaces
public String[] getWorkspaces()
setWorkspaces
public void setWorkspaces(String[] workspaces)
setWorkspace
public void setWorkspace(String workspace)
getRepositories
@Deprecated
public String[] getRepositories()
- Deprecated.
setRepositories
@Deprecated
public void setRepositories(String[] repositories)
- Deprecated.
setRepository
@Deprecated
public void setRepository(String repository)
- Deprecated.
getPrefixes
public String[] getPrefixes()
setPrefixes
public void setPrefixes(String[] prefixes)
setPrefix
public void setPrefix(String prefix)
isHttp10Compatible
public boolean isHttp10Compatible()
setHttp10Compatible
public void setHttp10Compatible(boolean http10Compatible)
resolveViewName
public org.springframework.web.servlet.View resolveViewName(String viewName,
Locale locale)
throws Exception
- Specified by:
resolveViewName
in interface org.springframework.web.servlet.ViewResolver
- Throws:
Exception
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
Copyright © 2009-2012 Magnolia International Ltd.. All Rights Reserved.