org.apache.maven.doxia.macro.snippet
public class SnippetMacro extends AbstractMacro
Constructor and Description |
---|
SnippetMacro() |
Modifier and Type | Method and Description |
---|---|
void |
cacheSnippet(java.net.URL url,
java.lang.String id,
java.lang.String content)
Puts the given snippet into the cache.
|
void |
execute(Sink sink,
MacroRequest request)
Execute the current macro using the given MacroRequest,
and emit events into the given sink.
|
void |
setCacheTimeout(int time)
Set the cache timeout.
|
enableLogging, getAttributesFromMap, getLog, required
public void execute(Sink sink, MacroRequest request) throws MacroExecutionException
sink
- The sink to receive the events.request
- The corresponding MacroRequest.MacroExecutionException
- if an error occurred during execution.public void cacheSnippet(java.net.URL url, java.lang.String id, java.lang.String content)
url
- The URL to parse.id
- The id of the snippet.content
- The content of the snippet.public void setCacheTimeout(int time)
time
- The timeout to set.Copyright © 2005-2014. All Rights Reserved.