| Constructor and Description |
|---|
PipeContext() |
| Modifier and Type | Method and Description |
|---|---|
static IChannel |
bind(IChannel channel,
IContext obj)
Bind the object to the channel.
|
boolean |
check(IChannel channel)
Check if a pipe must perform something on channel.
|
protected IContext |
createContext(ISource source,
IRunner runner)
Creates a context based on a source and runner.
|
static IContext |
lookup(IChannel channel)
Recover a context from channel.
|
IChannel |
process(IChannel channel)
Perform some transformation over the channel.
|
public static final String CONTEXT
public boolean check(IChannel channel) throws AbortException
IPipecheck in interface IPipechannel - The information channel.AbortException - If the channel is corrupted.public IChannel process(IChannel channel) throws PipelineException
IPipeprocess in interface IPipechannel - The channel.PipelineException - On processing errors.protected IContext createContext(ISource source, IRunner runner) throws ContextException
source - The input.runner - The runner.ContextException - On context creation.public static IChannel bind(IChannel channel, IContext obj)
channel - The channel.obj - The object.public static IContext lookup(IChannel channel) throws NotFoundException, InvalidTypeException
channel - The channel.NotFoundException - On lookup errors.InvalidTypeException - On type errors.Copyright © 2016. All rights reserved.