return factory.getRailoPageContext(factory.getServlet(), req, rsp, null, false, -1, false);
}
private void writeBackResponse(PageContext pc, HttpServletResponse rsp) {
HttpServletResponseDummy hsrd=(HttpServletResponseDummy) pc.getHttpServletResponse();
// Cookie
Cookie[] cookies = hsrd.getCookies();
if(cookies!=null) {
for(int i=0;i<cookies.length;i++) {
rsp.addCookie(cookies[i]);
}
}
// header
Pair<String,Object>[] headers = hsrd.getHeaders();
Pair<String,Object> header ;
Object value;
if(headers!=null) {
for(int i=0;i<headers.length;i++) {
header=headers[i];