public abstract class HeadEngine extends Engine
Represents an Engine
that could be the head of a chain of responsibility. This engine can parse a request
containing ConvertibleNut
of different type
and provides the way to access to
a particular nut of a process result.
The particular Engine
essentially exists to expose specific features from cache support.
Constructor and Description |
---|
HeadEngine() |
Modifier and Type | Method and Description |
---|---|
List<ConvertibleNut> |
parse(EngineRequest request)
Parses the given nuts and returns the result of this operation.
|
abstract ConvertibleNut |
parse(EngineRequest request,
String path)
Parses the given request and returns the nut associated to the given path.
|
static List<ConvertibleNut> |
runChains(EngineRequest request)
This method parses the sequences of
ConvertibleNut of the same type and
aggregates the nuts with same names between the results. |
compareTo, getEngineType, internalParse, works
public List<ConvertibleNut> parse(EngineRequest request) throws WuicException
Parses the given nuts and returns the result of this operation.
Should throw an IllegalArgumentException
the files type is not supported by this Engine
.
parse
in class Engine
request
- the request with nuts to parseWuicException
- if any kind of error occurspublic static List<ConvertibleNut> runChains(EngineRequest request) throws WuicException
This method parses the sequences of ConvertibleNut
of the same type
and
aggregates the nuts with same names between the results.
request
- the request providing engine chainsWuicException
- if WUIC fails to process nutspublic abstract ConvertibleNut parse(EngineRequest request, String path) throws WuicException
Parses the given request and returns the nut associated to the given path.
request
- the requestpath
- the nut nameWuicException
- if request could not be executed successfullyCopyright © 2012-2015. All Rights Reserved.