public class FragmentSplitterKnotProxyImpl extends AbstractKnotProxy
DEFAULT_TRANSITION| Constructor and Description |
|---|
FragmentSplitterKnotProxyImpl(FragmentSplitterOptions options) |
| Modifier and Type | Method and Description |
|---|---|
protected KnotContext |
processError(KnotContext knotContext,
Throwable error)
Handles any Exception thrown during processing, and is responsible for preparing the proper
KnotContext on such occasions, these will simply finish processing flows, as any error
generated by a Knot will be immediately returned to the page visitor. |
protected io.reactivex.Single<KnotContext> |
processRequest(KnotContext knotContext)
Consumes a
KnotContext messages from the Server and returns modified, processed
context. |
protected boolean |
shouldProcess(Set<String> knots)
Method lets you decide whether the Fragment with a given set of Knots should be processed by your Knot or not
|
process, shouldProcessclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateProxy, createProxyWithOptionspublic FragmentSplitterKnotProxyImpl(FragmentSplitterOptions options)
protected io.reactivex.Single<KnotContext> processRequest(KnotContext knotContext)
AbstractKnotProxyKnotContext messages from the Server and returns modified, processed
context. Basically this method is responsible for the whole business logic that your Knot will
be performing.processRequest in class AbstractKnotProxyknotContext - message from the Server with processing context.Single that emits a processed and modified KnotContext.protected boolean shouldProcess(Set<String> knots)
AbstractKnotProxyshouldProcess in class AbstractKnotProxyknots - set of all Knots names that occurred in the current KnotContext.KnotContext.protected KnotContext processError(KnotContext knotContext, Throwable error)
AbstractKnotProxyKnotContext on such occasions, these will simply finish processing flows, as any error
generated by a Knot will be immediately returned to the page visitor.processError in class AbstractKnotProxyknotContext - current context.error - the error that just occurred.Copyright © 2016–2020. All rights reserved.