Package | Description |
---|---|
com.github.wuic |
This package is the most general package of the WUIC library.
|
com.github.wuic.context |
This package provides the central
Context component which is the lowest configuration
object in WUIC. |
com.github.wuic.engine |
This package contains the definition of an
Engine . |
com.github.wuic.engine.core | |
com.github.wuic.nut |
This package defines what is a nut in WUIC and how to manage it.
|
com.github.wuic.servlet |
This package defines the Servlet support provided by WUIC.
|
com.github.wuic.util |
Utility package where helper methods are defined.
|
Modifier and Type | Method and Description |
---|---|
ConvertibleNut |
WuicFacade.runWorkflow(String id,
String path,
ProcessContext processContext,
EngineType... skip)
Gets the nut with the given path processed by the given workflow identified by the specified ID.
|
ConvertibleNut |
WuicFacade.runWorkflow(String id,
String path,
UrlProviderFactory urlProviderFactory,
ProcessContext processContext,
EngineType... skip)
Gets the nut with the given path processed by the given workflow identified by the specified ID.
|
Modifier and Type | Method and Description |
---|---|
List<ConvertibleNut> |
WuicFacade.runWorkflow(String id,
ProcessContext processContext,
EngineType... skip)
Gets the nuts processed by the given workflow identified by the specified ID inside a specified context.
|
List<ConvertibleNut> |
WuicFacade.runWorkflow(String id,
UrlProviderFactory urlProviderFactory,
ProcessContext processContext,
EngineType... skip)
Gets the nuts processed by the given workflow identified by the specified ID.
|
Modifier and Type | Method and Description |
---|---|
ConvertibleNut |
ContextInterceptorAdapter.afterProcess(ConvertibleNut nut,
String path)
Called just after the workflow has been executed to retrieve one path.
|
ConvertibleNut |
ContextInterceptor.afterProcess(ConvertibleNut nut,
String path)
Called just after the workflow has been executed to retrieve one path.
|
ConvertibleNut |
Context.process(String contextPath,
String wId,
String path,
UrlProviderFactory urlProviderFactory,
ProcessContext processContext,
EngineType... skip)
Processes a workflow an returns the nut inside the result with a name that equals to the specified one.
|
Modifier and Type | Method and Description |
---|---|
List<ConvertibleNut> |
ContextInterceptorAdapter.afterProcess(List<ConvertibleNut> nuts)
Called just after the workflow has been executed.
|
List<ConvertibleNut> |
ContextInterceptor.afterProcess(List<ConvertibleNut> nuts)
Called just after the workflow has been executed.
|
List<ConvertibleNut> |
Context.process(String contextPath,
String workflowId,
UrlProviderFactory urlProviderFactory,
ProcessContext processContext,
EngineType... skip)
Processes a workflow and returns the resulting nuts.
|
Modifier and Type | Method and Description |
---|---|
ConvertibleNut |
ContextInterceptorAdapter.afterProcess(ConvertibleNut nut,
String path)
Called just after the workflow has been executed to retrieve one path.
|
ConvertibleNut |
ContextInterceptor.afterProcess(ConvertibleNut nut,
String path)
Called just after the workflow has been executed to retrieve one path.
|
Modifier and Type | Method and Description |
---|---|
List<ConvertibleNut> |
ContextInterceptorAdapter.afterProcess(List<ConvertibleNut> nuts)
Called just after the workflow has been executed.
|
List<ConvertibleNut> |
ContextInterceptor.afterProcess(List<ConvertibleNut> nuts)
Called just after the workflow has been executed.
|
Modifier and Type | Method and Description |
---|---|
ConvertibleNut |
SpriteProvider.getSprite(String workflowId,
UrlProvider urlProvider,
String nutNamePrefix,
List<ConvertibleNut> originals)
|
abstract ConvertibleNut |
HeadEngine.parse(EngineRequest request,
String path)
Parses the given request and returns the nut associated to the given path.
|
Modifier and Type | Method and Description |
---|---|
abstract List<? extends ConvertibleNut> |
LineInspector.appendTransformation(Matcher matcher,
StringBuilder replacement,
EngineRequest request,
CompositeNut.CompositeInputStream cis,
ConvertibleNut originalNut)
Computes the replacement to be made inside the text for the given
Matcher which its find()
method as just been called. |
List<? extends ConvertibleNut> |
LineInspector.ReplacementInfo.getConvertibleNuts()
Gets the nuts
|
List<ConvertibleNut> |
EngineRequestBuilder.getNuts()
Gets the nuts.
|
List<ConvertibleNut> |
EngineRequest.getNuts()
Gets the nuts.
|
protected abstract List<ConvertibleNut> |
Engine.internalParse(EngineRequest request)
Internal method that parses eventually called by
NodeEngine.parse(EngineRequest) method during its invocation. |
Iterator<List<? extends ConvertibleNut>> |
EngineRequest.iterator()
Creates a new iterator on the
nuts . |
static List<? extends ConvertibleNut> |
LineInspector.manageAppend(ConvertibleNut nut,
StringBuilder replacement,
EngineRequest request,
NutsHeap heap,
EngineType... skippedEngine)
Manages the given nut that corresponds to the specified referenced path and append the transformation with proper
path.
|
List<ConvertibleNut> |
NodeEngine.parse(EngineRequest request)
Parses the given nuts and returns the result of this operation.
|
List<ConvertibleNut> |
HeadEngine.parse(EngineRequest request)
Parses the given nuts and returns the result of this operation.
|
abstract List<ConvertibleNut> |
Engine.parse(EngineRequest request)
Parses the given nuts and returns the result of this operation.
|
static List<ConvertibleNut> |
HeadEngine.runChains(EngineRequest request)
This method parses the sequences of
ConvertibleNut of the same type and
aggregates the nuts with same names between the results. |
Modifier and Type | Method and Description |
---|---|
abstract List<? extends ConvertibleNut> |
LineInspector.appendTransformation(Matcher matcher,
StringBuilder replacement,
EngineRequest request,
CompositeNut.CompositeInputStream cis,
ConvertibleNut originalNut)
Computes the replacement to be made inside the text for the given
Matcher which its find()
method as just been called. |
static NutsHeap |
LineInspector.getHeap(EngineRequest request,
ConvertibleNut originalNut,
CompositeNut.CompositeInputStream cis,
Matcher matcher,
int groupIndex)
|
void |
SpriteProvider.init(ConvertibleNut nut)
Initializes this provider with a new image.
|
static List<? extends ConvertibleNut> |
LineInspector.manageAppend(ConvertibleNut nut,
StringBuilder replacement,
EngineRequest request,
NutsHeap heap,
EngineType... skippedEngine)
Manages the given nut that corresponds to the specified referenced path and append the transformation with proper
path.
|
protected abstract String |
LineInspector.toString(ConvertibleNut convertibleNut)
Converts the given
ConvertibleNut to a String representation that is possible to append directly
to the referencer. |
Modifier and Type | Method and Description |
---|---|
ConvertibleNut |
SpriteProvider.getSprite(String workflowId,
UrlProvider urlProvider,
String nutNamePrefix,
List<ConvertibleNut> originals)
|
LineInspector.ReplacementInfo |
LineInspector.replacementInfo(int startIndex,
int endIndex,
Nut referencer,
List<? extends ConvertibleNut> convertibleNuts)
Builds a new
LineInspector.ReplacementInfo . |
Constructor and Description |
---|
EngineRequest.Key(String wKey,
List<ConvertibleNut> nutsList,
EngineType... s)
Builds a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected ConvertibleNut |
AbstractSpriteProvider.getImage()
Gets the image.
|
ConvertibleNut |
JavascriptSpriteProvider.getSprite(String workflowId,
UrlProvider urlProvider,
String nutNameSuffix,
List<ConvertibleNut> originals)
|
ConvertibleNut |
CssSpriteProvider.getSprite(String workflowId,
UrlProvider urlProvider,
String nutNameSuffix,
List<ConvertibleNut> originals)
|
ConvertibleNut |
AbstractCacheEngine.parse(EngineRequest request,
String path)
Parses the given request and returns the nut associated to the given path.
|
Modifier and Type | Method and Description |
---|---|
List<ConvertibleNut> |
TextAggregatorEngine.aggregationParse(EngineRequest request)
Do aggregation parsing.
|
List<ConvertibleNut> |
ImageAggregatorEngine.aggregationParse(EngineRequest request)
Do aggregation parsing.
|
protected abstract List<ConvertibleNut> |
AbstractAggregatorEngine.aggregationParse(EngineRequest request)
Do aggregation parsing.
|
List<? extends ConvertibleNut> |
SourceMapLineInspector.appendTransformation(Matcher matcher,
StringBuilder replacement,
EngineRequest request,
CompositeNut.CompositeInputStream cis,
ConvertibleNut originalNut)
Computes the replacement to be made inside the text for the given
Matcher which its find()
method as just been called. |
List<? extends ConvertibleNut> |
CssUrlLineInspector.appendTransformation(Matcher matcher,
StringBuilder replacement,
EngineRequest request,
CompositeNut.CompositeInputStream cis,
ConvertibleNut originalNut)
Computes the replacement to be made inside the text for the given
Matcher which its find()
method as just been called. |
List<? extends ConvertibleNut> |
AngularTemplateInspector.appendTransformation(Matcher matcher,
StringBuilder replacement,
EngineRequest request,
CompositeNut.CompositeInputStream cis,
ConvertibleNut originalNut)
Computes the replacement to be made inside the text for the given
Matcher which its find()
method as just been called. |
List<ConvertibleNut> |
TextInspectorEngine.internalParse(EngineRequest request)
Internal method that parses eventually called by
NodeEngine.parse(EngineRequest) method during its invocation. |
protected List<ConvertibleNut> |
StaticEngine.internalParse(EngineRequest request)
Internal method that parses eventually called by
NodeEngine.parse(EngineRequest) method during its invocation. |
List<ConvertibleNut> |
SpriteInspectorEngine.internalParse(EngineRequest request)
Internal method that parses eventually called by
NodeEngine.parse(EngineRequest) method during its invocation. |
List<ConvertibleNut> |
HtmlInspectorEngine.internalParse(EngineRequest request)
Internal method that parses eventually called by
NodeEngine.parse(EngineRequest) method during its invocation. |
protected List<ConvertibleNut> |
GzipEngine.internalParse(EngineRequest request)
Internal method that parses eventually called by
NodeEngine.parse(EngineRequest) method during its invocation. |
List<ConvertibleNut> |
AbstractConverterEngine.internalParse(EngineRequest request)
Internal method that parses eventually called by
NodeEngine.parse(EngineRequest) method during its invocation. |
List<ConvertibleNut> |
AbstractCompressorEngine.internalParse(EngineRequest request)
Internal method that parses eventually called by
NodeEngine.parse(EngineRequest) method during its invocation. |
List<ConvertibleNut> |
AbstractCacheEngine.internalParse(EngineRequest request)
Internal method that parses eventually called by
NodeEngine.parse(EngineRequest) method during its invocation. |
List<ConvertibleNut> |
AbstractAggregatorEngine.internalParse(EngineRequest request)
Internal method that parses eventually called by
NodeEngine.parse(EngineRequest) method during its invocation. |
Map<Region,ConvertibleNut> |
ImageAggregatorEngine.pack(List<ConvertibleNut> nuts)
Packs the given nuts (which embed images) in the smallest area.
|
Modifier and Type | Method and Description |
---|---|
List<? extends ConvertibleNut> |
SourceMapLineInspector.appendTransformation(Matcher matcher,
StringBuilder replacement,
EngineRequest request,
CompositeNut.CompositeInputStream cis,
ConvertibleNut originalNut)
Computes the replacement to be made inside the text for the given
Matcher which its find()
method as just been called. |
List<? extends ConvertibleNut> |
CssUrlLineInspector.appendTransformation(Matcher matcher,
StringBuilder replacement,
EngineRequest request,
CompositeNut.CompositeInputStream cis,
ConvertibleNut originalNut)
Computes the replacement to be made inside the text for the given
Matcher which its find()
method as just been called. |
List<? extends ConvertibleNut> |
AngularTemplateInspector.appendTransformation(Matcher matcher,
StringBuilder replacement,
EngineRequest request,
CompositeNut.CompositeInputStream cis,
ConvertibleNut originalNut)
Computes the replacement to be made inside the text for the given
Matcher which its find()
method as just been called. |
void |
AbstractSpriteProvider.init(ConvertibleNut nut)
Initializes this provider with a new image.
|
protected void |
TextInspectorEngine.inspect(ConvertibleNut nut,
EngineRequest request)
Extracts from the given nut all the nuts referenced by the @import statement in CSS.
|
protected String |
TextInspectorEngine.inspectLine(String line,
EngineRequest request,
LineInspector inspector,
List<LineInspector.ReplacementInfo> replacementInfoList,
CompositeNut.CompositeInputStream cis,
ConvertibleNut original)
Inspects the given line and eventually adds some extracted nuts to the nut referencing it.
|
protected String |
SourceMapLineInspector.toString(ConvertibleNut convertibleNut)
Converts the given
ConvertibleNut to a String representation that is possible to append directly
to the referencer. |
protected String |
CssUrlLineInspector.toString(ConvertibleNut convertibleNut)
Converts the given
ConvertibleNut to a String representation that is possible to append directly
to the referencer. |
protected String |
AngularTemplateInspector.toString(ConvertibleNut convertibleNut)
Converts the given
ConvertibleNut to a String representation that is possible to append directly
to the referencer. |
void |
ImageCompressorEngine.transform(InputStream source,
OutputStream target,
ConvertibleNut nut)
Reads the stream and writes the transformed bytes.
|
void |
EngineRequestTransformer.transform(InputStream is,
OutputStream os,
ConvertibleNut convertible)
Reads the stream and writes the transformed bytes.
|
void |
TextInspectorEngine.transform(InputStream is,
OutputStream os,
ConvertibleNut convertibleNut,
EngineRequest request)
Matches the
Pipe.Transformer.transform(java.io.InputStream, java.io.OutputStream, Object)
signature with an additional EngineRequest . |
void |
EngineRequestTransformer.RequireEngineRequestTransformer.transform(InputStream is,
OutputStream os,
ConvertibleNut nut,
EngineRequest request)
Matches the
Pipe.Transformer.transform(java.io.InputStream, java.io.OutputStream, Object)
signature with an additional EngineRequest . |
Modifier and Type | Method and Description |
---|---|
ConvertibleNut |
JavascriptSpriteProvider.getSprite(String workflowId,
UrlProvider urlProvider,
String nutNameSuffix,
List<ConvertibleNut> originals)
|
ConvertibleNut |
CssSpriteProvider.getSprite(String workflowId,
UrlProvider urlProvider,
String nutNameSuffix,
List<ConvertibleNut> originals)
|
Map<Region,ConvertibleNut> |
ImageAggregatorEngine.pack(List<ConvertibleNut> nuts)
Packs the given nuts (which embed images) in the smallest area.
|
String |
HtmlInspectorEngine.ParseInfo.replacement(EngineRequest request,
UrlProvider urlProvider,
List<ConvertibleNut> referenced)
Creates a replacement for this information
|
Constructor and Description |
---|
AbstractCacheEngine.CacheResult.Entry(ConvertibleNut staticNut)
Builds an entry wrapping a static nut.
|
Constructor and Description |
---|
AbstractCacheEngine.CacheResult.Entry(List<ConvertibleNut> dynamicReferencedNuts,
String dynamicName,
Set<Pipe.Transformer<ConvertibleNut>> dynamicTransformers)
Builds an entry wrapping a dynamic nut.
|
AbstractCacheEngine.CacheResult.Entry(List<ConvertibleNut> dynamicReferencedNuts,
String dynamicName,
Set<Pipe.Transformer<ConvertibleNut>> dynamicTransformers)
Builds an entry wrapping a dynamic nut.
|
ImageAggregatorEngine(Boolean aggregate,
DimensionPacker<ConvertibleNut> packer)
Builds a new aggregator engine.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractConvertibleNut
Base class for
ConvertibleNut implementation with state management (attributes like transformers or referenced
nuts). |
class |
ByteArrayNut
Represents an in-memory nut which can be created on the fly in any context.
|
class |
CompositeNut
A composite
Nut is able to chain all the stream provided by each element of the composition. |
class |
ImageNut
This class wraps a
Nut that corresponds to an image and provide its position inside a combination. |
class |
NotReachableNut
This class represents a nut that is not reachable.
|
class |
NutWrapper
|
class |
PipedConvertibleNut
This
ConvertibleNut pipes transformers with the Pipe class. |
class |
PrefixedNut
This class wraps a
Nut that should be named with a particular prefix. |
class |
TransformedNut
A transformed nut wraps a
ConvertibleNut and considers its input stream as the result of the transformation. |
Modifier and Type | Method and Description |
---|---|
ConvertibleNut |
CompositeNut.CompositeInputStream.nutAt(int position)
Retrieves the nut owning the byte at the given position/
|
static ConvertibleNut |
ByteArrayNut.toByteArrayNut(ConvertibleNut nut)
Converts the given nut and its referenced nuts into nuts wrapping an in memory byte array.
|
Modifier and Type | Method and Description |
---|---|
List<ConvertibleNut> |
CompositeNut.CompositeInputStream.getComposition()
Gets the outer composition list.
|
List<ConvertibleNut> |
NutWrapper.getOriginalNuts()
When this nut is the result of the transformation of another one, then it is actually a processed nut.
|
List<ConvertibleNut> |
ConvertibleNut.getOriginalNuts()
When this nut is the result of the transformation of another one, then it is actually a processed nut.
|
List<ConvertibleNut> |
AbstractConvertibleNut.getOriginalNuts()
When this nut is the result of the transformation of another one, then it is actually a processed nut.
|
List<ConvertibleNut> |
NutWrapper.getReferencedNuts()
Gets the nuts referenced by this nut.
|
List<ConvertibleNut> |
ConvertibleNut.getReferencedNuts()
Gets the nuts referenced by this nut.
|
List<ConvertibleNut> |
AbstractConvertibleNut.getReferencedNuts()
Gets the nuts referenced by this nut.
|
Set<Pipe.Transformer<ConvertibleNut>> |
NutWrapper.getTransformers()
Gets the registered transformers.
|
Set<Pipe.Transformer<ConvertibleNut>> |
ConvertibleNut.getTransformers()
Gets the registered transformers.
|
Set<Pipe.Transformer<ConvertibleNut>> |
AbstractConvertibleNut.getTransformers()
Gets the registered transformers.
|
static List<ConvertibleNut> |
CompositeNut.mergeNuts(ProcessContext processContext,
List<ConvertibleNut> nuts)
Merges all sequences
nuts with the same name into one CompositeNut . |
List<ConvertibleNut> |
CompositeNut.Combiner.mergeNuts(ProcessContext processContext,
List<ConvertibleNut> nuts)
Merges the given nuts.
|
static List<ConvertibleNut> |
ByteArrayNut.toByteArrayNut(List<ConvertibleNut> nuts)
Converts the given nuts list and its referenced nuts into nuts wrapping an in memory byte array.
|
Modifier and Type | Method and Description |
---|---|
void |
TransformedNut.addReferencedNut(ConvertibleNut referenced)
Adds a new nut referenced by this nut.
|
void |
NutWrapper.addReferencedNut(ConvertibleNut referenced)
Adds a new nut referenced by this nut.
|
void |
ConvertibleNut.addReferencedNut(ConvertibleNut referenced)
Adds a new nut referenced by this nut.
|
void |
AbstractConvertibleNut.addReferencedNut(ConvertibleNut referenced)
Adds a new nut referenced by this nut.
|
static ConvertibleNut |
ByteArrayNut.toByteArrayNut(ConvertibleNut nut)
Converts the given nut and its referenced nuts into nuts wrapping an in memory byte array.
|
static void |
PipedConvertibleNut.transform(ConvertibleNut convertibleNut,
Set<Pipe.Transformer<ConvertibleNut>> transformers,
List<Pipe.OnReady> callbacks)
Apply transformers by chaining each transformer specified in the given list.
|
Modifier and Type | Method and Description |
---|---|
void |
NutWrapper.addTransformer(Pipe.Transformer<ConvertibleNut> transformer)
Adds a
Pipe.Transformer . |
void |
ConvertibleNut.addTransformer(Pipe.Transformer<ConvertibleNut> transformer)
Adds a
Pipe.Transformer . |
void |
AbstractConvertibleNut.addTransformer(Pipe.Transformer<ConvertibleNut> transformer)
Adds a
Pipe.Transformer . |
static List<ConvertibleNut> |
CompositeNut.mergeNuts(ProcessContext processContext,
List<ConvertibleNut> nuts)
Merges all sequences
nuts with the same name into one CompositeNut . |
List<ConvertibleNut> |
CompositeNut.Combiner.mergeNuts(ProcessContext processContext,
List<ConvertibleNut> nuts)
Merges the given nuts.
|
protected void |
AbstractConvertibleNut.setOriginalNuts(List<ConvertibleNut> o)
Sets the original nuts.
|
static List<ConvertibleNut> |
ByteArrayNut.toByteArrayNut(List<ConvertibleNut> nuts)
Converts the given nuts list and its referenced nuts into nuts wrapping an in memory byte array.
|
static void |
PipedConvertibleNut.transform(ConvertibleNut convertibleNut,
Set<Pipe.Transformer<ConvertibleNut>> transformers,
List<Pipe.OnReady> callbacks)
Apply transformers by chaining each transformer specified in the given list.
|
Constructor and Description |
---|
ByteArrayNut(byte[] bytes,
String name,
NutType nt,
ConvertibleNut originalNut)
Builds a new
Nut transformed nut based on a given byte array and only one original nut. |
CompositeNut(Boolean avn,
String specificName,
byte[] separator,
ProcessContext processContext,
ConvertibleNut... composition)
Builds a new instance.
|
ImageNut(ConvertibleNut image,
Region r)
Builds a new instance.
|
NutWrapper(ConvertibleNut w)
Builds a new instance.
|
PrefixedNut(ConvertibleNut nut,
String prefixPath)
Builds a new instance.
|
PrefixedNut(ConvertibleNut nut,
String prefix,
Boolean asPath)
Builds a new instance.
|
TransformedNut(ConvertibleNut w)
Builds a new instance.
|
Constructor and Description |
---|
ByteArrayNut(byte[] bytes,
String name,
NutType nt,
List<ConvertibleNut> originalNuts,
Long version)
Builds a new
Nut transformed nut based on a specified byte array. |
Modifier and Type | Method and Description |
---|---|
void |
HttpUtil.write(ConvertibleNut nut,
HttpServletResponse response)
Serves the given nut by changing the specified response's state.
|
Modifier and Type | Method and Description |
---|---|
static ConvertibleNut |
NutUtils.findByName(ConvertibleNut nut,
String nutName)
Finds a nut with a name matching the given path.
|
static ConvertibleNut |
NutUtils.findByName(List<ConvertibleNut> nuts,
String name)
Finds a nut with a name matching the given path.
|
Modifier and Type | Method and Description |
---|---|
static int |
HtmlUtil.cssImport(ConvertibleNut nut,
UrlProvider urlProvider,
StringBuilder sb)
Generates import for CSS script.
|
static ConvertibleNut |
NutUtils.findByName(ConvertibleNut nut,
String nutName)
Finds a nut with a name matching the given path.
|
String |
UrlProvider.getUrl(ConvertibleNut nut)
Generates the URL to use to access to the given nut.
|
static int |
HtmlUtil.iconImport(ConvertibleNut nut,
UrlProvider urlProvider,
StringBuilder sb)
Generates import for icons.
|
static int |
HtmlUtil.imgImport(ConvertibleNut nut,
UrlProvider urlProvider,
StringBuilder sb)
Generates import for images.
|
static int |
HtmlUtil.javascriptImport(ConvertibleNut nut,
UrlProvider urlProvider,
StringBuilder sb)
Generates import for Javascript script.
|
static String |
NutUtils.readTransform(ConvertibleNut n)
Reads the result of the transformation process configured on the
Nut . |
File |
NutDiskStore.store(ConvertibleNut nut)
Creates a
File for the given nut and returns the object created for the stored file. |
static String |
HtmlUtil.writeScriptImport(ConvertibleNut nut,
String workflowContextPath,
String... attributes)
Writes the import statement in HTML into the output stream for the given nut, using a default
UrlProviderFactory . |
static String |
HtmlUtil.writeScriptImport(ConvertibleNut nut,
UrlProvider urlProvider,
String... attributes)
Writes the import statement in HTML into the output stream for the given nut.
|
Modifier and Type | Method and Description |
---|---|
static ConvertibleNut |
NutUtils.findByName(List<ConvertibleNut> nuts,
String name)
Finds a nut with a name matching the given path.
|
Copyright © 2012-2015. All Rights Reserved.