public abstract class AbstractDeepLinkHandler extends Object implements IDeepLinkHandler
Modifier and Type | Field and Description |
---|---|
protected Pattern |
m_pattern |
NUMERIC_REGEX
Modifier | Constructor and Description |
---|---|
protected |
AbstractDeepLinkHandler(Pattern pattern) |
Modifier and Type | Method and Description |
---|---|
protected static Pattern |
defaultPattern(String handlerName,
String dataGroup)
Creates a regexp pattern to validate/parse the value of the deep-link URL parameter.
|
boolean |
handle(String path)
Executes the deep-link action on the model.
|
protected abstract void |
handleImpl(Matcher matcher)
Implement logic to display the deep-link's corresponding entity.
|
boolean |
matches(String path) |
protected String |
toDeepLinkPath(String handlerData)
This method creates a deep-link path to be used in the URL parameter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
protected final Pattern m_pattern
protected AbstractDeepLinkHandler(Pattern pattern)
protected static Pattern defaultPattern(String handlerName, String dataGroup)
protected String toDeepLinkPath(String handlerData)
[handler name]-[handler data]
. Example outline-12345
.handlerData
- public boolean matches(String path)
matches
in interface IDeepLinkHandler
public boolean handle(String path) throws DeepLinkException
IDeepLinkHandler
handle
in interface IDeepLinkHandler
DeepLinkException
- when something went wrong while executing the #handleImpl(Matcher, IClientSession)
method. For
instance the user has no permissions to view the requested resource or the resource is not availableprotected abstract void handleImpl(Matcher matcher) throws DeepLinkException
DeepLinkException
must be thrown to ensure correct handling in the UI.matcher
- DeepLinkException
Copyright © 2010–2017. All rights reserved.