|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.binding.convert.support.AbstractConverter
org.springframework.binding.convert.support.ConversionServiceAwareConverter
org.springframework.webflow.engine.builder.TextToViewSelector
public class TextToViewSelector
Converter that converts an encoded string representation of a view selector into a ViewSelector
object that
will make selections at runtime.
This converter supports the following encoded forms:
NullViewSelector
.ApplicationViewSelector
that returns an ApplicationView
ViewSelection with the provided view name expression.ApplicationViewSelector
that returns an
FlowExecutionRedirect
to a flow execution URL.ExternalRedirectSelector
that returns an
ExternalRedirect
to a URL.FlowDefinitionRedirectSelector
that returns a
FlowDefinitionRedirect
to a flow.ViewSelector
bean implementation.
ViewSelection
,
ViewSelector
Field Summary | |
---|---|
static java.lang.String |
EXTERNAL_REDIRECT_PREFIX
Prefix used when the encoded view name wants to specify that a redirect to an external URL is required. |
static java.lang.String |
FLOW_DEFINITION_REDIRECT_PREFIX
Prefix used when the encoded view name wants to specify that a redirect to a flow definition is requred. |
static java.lang.String |
REDIRECT_PREFIX
Prefix used when the encoded view name wants to specify that a redirect is required. |
Constructor Summary | |
---|---|
TextToViewSelector(FlowServiceLocator flowServiceLocator)
Create a new text to ViewSelector converter. |
Method Summary | |
---|---|
protected ViewSelector |
convertEncodedViewSelector(java.lang.String encodedView)
Convert given encoded view into an appropriate view selector. |
protected java.lang.Object |
doConvert(java.lang.Object source,
java.lang.Class targetClass,
org.springframework.binding.convert.ConversionContext context)
|
java.lang.Class[] |
getSourceClasses()
|
java.lang.Class[] |
getTargetClasses()
|
Methods inherited from class org.springframework.binding.convert.support.ConversionServiceAwareConverter |
---|
converterFor, fromStringTo, fromStringToAliased, getConversionService, parseExpression, setConversionService |
Methods inherited from class org.springframework.binding.convert.support.AbstractConverter |
---|
convert, convert, convert, convert |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String REDIRECT_PREFIX
public static final java.lang.String EXTERNAL_REDIRECT_PREFIX
public static final java.lang.String FLOW_DEFINITION_REDIRECT_PREFIX
Constructor Detail |
---|
public TextToViewSelector(FlowServiceLocator flowServiceLocator)
Method Detail |
---|
public java.lang.Class[] getSourceClasses()
public java.lang.Class[] getTargetClasses()
protected java.lang.Object doConvert(java.lang.Object source, java.lang.Class targetClass, org.springframework.binding.convert.ConversionContext context) throws java.lang.Exception
doConvert
in class org.springframework.binding.convert.support.AbstractConverter
java.lang.Exception
protected ViewSelector convertEncodedViewSelector(java.lang.String encodedView)
encodedView
- the encoded view selector
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |