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 );