1 4 5 9 10 package org.openlaszlo.servlets.responders; 11 12 import java.io.*; 13 import java.util.*; 14 import javax.servlet.*; 15 import javax.servlet.http.*; 16 import org.openlaszlo.compiler.*; 17 import org.openlaszlo.connection.*; 18 import org.apache.log4j.*; 19 20 public final class ResponderDISCONNECT extends ResponderConnection 21 { 22 private static boolean mIsInitialized = false; 23 private static Object mIsInitializedLock = new Object (); 24 25 private static Logger mLogger = Logger.getLogger(ResponderDISCONNECT.class); 26 27 28 protected void respondImpl(HttpServletRequest req, HttpServletResponse res, 29 Application app, int serial, String username) 30 throws IOException 31 { 32 mLogger.debug("respondImpl(username=" + username + ")"); 33 34 HTTPConnection connection = app.getConnection(req.getParameter("i")); 37 if (connection != null) { 38 connection.disconnect(); 39 app.unregister(connection); 40 } 41 42 respondWithStatusSWF(res, HttpServletResponse.SC_OK, 43 "disconnected", serial); 44 } 45 } 46 | Popular Tags |