public interface IPostProcessor extends IProcessor
if (results.isClob() ){ CharBuffer cbuf; /// place holder.. BufferedReader reader = new BufferedReader(results.getCharacterStream()); String line=null; StringBuilder sb = new StringBuilder(); while( (line = reader.readLine())!=null){ sb.append(line.replaceAll("regex", "regular expression")); } results.setBody(sb.toString()); } else { results.getContent().replaceAll("#REPLACE_ME#","sdfsdfg"); } return STATUS.MODIFIED;
IProcessor.STATUS
Modifier and Type | Method and Description |
---|---|
IProcessor.STATUS |
postProcess(ModApexContext ctx,
OWAResults results)
Post processing of the values printed to htp.
|
IProcessor.STATUS postProcess(ModApexContext ctx, OWAResults results)
ctx
- The context which contains the http parametersresults
- the results from the database