public interface IPreProcessor extends IProcessor
Complete handling
String qs = ctx.getHttpServletRequest().getQueryString(); if ( qs.equals("/my/requested/cached/file")){ try { ctx.write("Hello World"); } catch (UnsupportedEncodingException e) { } catch (IOException e) { } } return STATUS.HANDLED;
Modifying the request
ctx.getHttpServletResponse().addCookie(new Cookie("extentionCookie","C is for Cookie"));
IProcessor.STATUS
Modifier and Type | Method and Description |
---|---|
IProcessor.STATUS |
preProcess(ModApexContext ctx)
Preprocessing of the request.
|
IProcessor.STATUS preProcess(ModApexContext ctx)
ctx
- The context which contains the http parameters