@Override
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
try {
Context cx = ContextFactory.getGlobal().enterContext();
cx.setWrapFactory(new PrimitiveWrapFactory());
Scriptable requestProxy = cx.newObject(parent);
ScriptableObject.putProperty(requestProxy, "address", request.getRemoteAddr());
ScriptableObject.putProperty(requestProxy, "remoteaddr", request.getRemoteAddr());
ScriptableObject.putProperty(requestProxy, "url", request.getServletPath());