NCTokenValidator

A pipeline component that allows to validate a list of tokens produced by token parser before they get sent further down the pipeline. This is one of the user-defined components of the processing pipeline. See NCPipeline for documentation on the token parser place in the overall processing pipeline.

See also:
Source:
NCTokenValidator.scala
class Object
trait Matchable
class Any

Value members

Abstract methods

def validate(req: NCRequest, cfg: NCModelConfig, toks: List[NCToken]): Unit

Validates given list of tokens. If validation fails this method should throw an NCException. Note that token validator is called for an empty list of tokens as well.

Validates given list of tokens. If validation fails this method should throw an NCException. Note that token validator is called for an empty list of tokens as well.

Value parameters:
cfg

Model configuration.

req

Input request,

toks

List of tokens to validate. Can be empty but never null.

Source:
NCTokenValidator.scala

Inherited methods

Called when the component starts. Default implementation is no-op.

Called when the component starts. Default implementation is no-op.

Value parameters:
cfg

Configuration of the model this component is associated with.

Inherited from:
NCLifecycle
Source:
NCLifecycle.scala

Called when the component stops. Default implementation is no-op.

Called when the component stops. Default implementation is no-op.

Value parameters:
cfg

Configuration of the model this component is associated with.

Inherited from:
NCLifecycle
Source:
NCLifecycle.scala