@EngineService(injectDefaultToWorkflow=true, isCoreEngine=true) public class HtmlInspectorEngine extends NodeEngine implements NutFilterHolder
This engine is able to parse an HTML to collect all CSS and JS scripts, refer them through a heap and set reference to associated workflow URL in DOM.
Note that version number is based on content hash because this is the unique strategy that applies to inline scripts.
 When a ConvertibleNut is parsed, the registered a transformer which is able to cache transformation operations
 is added for future usages.
 
If the result of the transformation performed by this engine is not served by WUIC, it means that some information like caching or hints won't be specified in the HTTP response headers. In that case, this engines fallback to the Application cache and the "link" tags mechanism by modifying the HTML content.
| Modifier and Type | Class and Description | 
|---|---|
class  | 
HtmlInspectorEngine.ParseInfo
 Provides information from collected data in a HTML content. 
 | 
| Constructor and Description | 
|---|
HtmlInspectorEngine(Boolean inspect,
                   String cs,
                   Boolean sh)
 Builds a new instance. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
EngineType | 
getEngineType()
 Gets the type of engine. 
 | 
List<NutType> | 
getNutTypes()
 Gets the all  
types supported by this engine. | 
List<ConvertibleNut> | 
internalParse(EngineRequest request)
 Internal method that parses eventually called by  
NodeEngine.parse(EngineRequest) method during its invocation. | 
void | 
setNutFilter(List<NutFilter> nutFilters)
 Sets the filter. 
 | 
Boolean | 
works()
 Returns a flag indicating if the engine is configured to do something or not. 
 | 
callNextEngine, chain, getNext, getPrevious, parse, setNext@ConfigConstructor public HtmlInspectorEngine(@BooleanConfigParam(defaultValue=true,propertyKey="c.g.wuic.engine.inspect") Boolean inspect, @StringConfigParam(defaultValue="UTF-8",propertyKey="c.g.wuic.engine.charset") String cs, @BooleanConfigParam(defaultValue=true,propertyKey="c.g.wuic.engine.serverHint") Boolean sh)
Builds a new instance.
inspect - activate inspection or notcs - files charsetsh - activate server hint or notpublic List<ConvertibleNut> internalParse(EngineRequest request) throws WuicException
 Internal method that parses eventually called by NodeEngine.parse(EngineRequest) method during its invocation.
 
internalParse in class Enginerequest - the request with files to parseWuicException - if any kind of error occurspublic List<NutType> getNutTypes()
 Gets the all types supported by this engine.
 
getNutTypes in class NodeEngineNutTypepublic EngineType getEngineType()
Gets the type of engine.
getEngineType in class Enginepublic Boolean works()
Returns a flag indicating if the engine is configured to do something or not.
public void setNutFilter(List<NutFilter> nutFilters)
Sets the filter.
setNutFilter in interface NutFilterHoldernutFilters - the filtersCopyright © 2012-2015. All Rights Reserved.