@Service @ConditionalOnProperty(value="puncher.enabled", havingValue="true") public class PuncherService extends Object
Constructor and Description |
---|
PuncherService() |
Modifier and Type | Method and Description |
---|---|
static org.thales.punch.libraries.punchlang.api.Punchlet |
createPunchlet(String name,
String code,
String grokResources) |
String |
dissect(String input,
String pattern) |
String |
executePunchlet(org.thales.punch.libraries.punchlang.api.Punchlet punchlet,
String input)
Execute a punchlet
|
String |
grok(String input,
String pattern,
String resourcesDir) |
String |
punchlet(String input,
String pattern) |
public String executePunchlet(org.thales.punch.libraries.punchlang.api.Punchlet punchlet, String input)
punchlet
- Punchlet to executeinput
- Data given to the punchletpublic String grok(String input, String pattern, String resourcesDir) throws IOException
IOException
public String dissect(String input, String pattern) throws IOException
IOException
public String punchlet(String input, String pattern) throws IOException
IOException
public static org.thales.punch.libraries.punchlang.api.Punchlet createPunchlet(String name, String code, String grokResources) throws IOException
IOException
Copyright © 2023. All rights reserved.