setLastScrapedData
void scrapeableFile.setLastScrapedData(String) (enterprise edition only)
Description
Overwrite the content of the "last response"
Parameters
- String Desired new content of the last response
Return Values
Returns void.
This method must be called from an extractor pattern before the pattern is run.
Examples
Replace new line characters with a space
newLastResponse = scrapeableFile.getContentAsString().replaceAll("\\n"," ");
scrapeableFile.setLastScrapedData(newLastResponse );
scrapeableFile.setLastScrapedData(newLastResponse );
jason on 06/26/2015 at 8:51 am
- Printer-friendly version
- Login or register to post comments