Package org.itsnat.impl.core.resp.attachsrv

Source Code of org.itsnat.impl.core.resp.attachsrv.ResponseAttachedServerLoadMarkupFormImpl

/*
  ItsNat Java Web Application Framework
  Copyright (C) 2007-2011 Jose Maria Arranz Santamaria, Spanish citizen

  This software is free software; you can redistribute it and/or modify it
  under the terms of the GNU Lesser General Public License as
  published by the Free Software Foundation; either version 3 of
  the License, or (at your option) any later version.
  This software is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  Lesser General Public License for more details. You should have received
  a copy of the GNU Lesser General Public License along with this program.
  If not, see <http://www.gnu.org/licenses/>.
*/

package org.itsnat.impl.core.resp.attachsrv;

import org.itsnat.impl.core.clientdoc.ClientDocumentAttachedServerFormImpl;
import org.itsnat.impl.core.req.attachsrv.RequestAttachedServerLoadMarkupImpl;

/**
*
* @author jmarranz
*/
public class ResponseAttachedServerLoadMarkupFormImpl extends ResponseAttachedServerLoadMarkupImpl
{

    /** Creates a new instance of ResponseNormalLoadDocImpl */
    public ResponseAttachedServerLoadMarkupFormImpl(RequestAttachedServerLoadMarkupImpl request)
    {
        super(request);
    }

    public void processResponse()
    {
        // En el caso de <form> se env�a el markup de una sola vez
        ClientDocumentAttachedServerFormImpl clientDoc =
                (ClientDocumentAttachedServerFormImpl)getClientDocumentAttachedServer();
        synchronized(clientDoc)
        {
            clientDoc.setMarkupLoaded(true);
            clientDoc.notifyAll();
        }

        // No devolvemos nada pues es la "p�gina" de retorno del iframe auxiliar
        // como el form ha podido ser enviado a un dominio diferente
        // cualquier script metido no tendr� acceso a la p�gina padre
        // por eso ser� el onload del iframe el que siga el proceso.
        // Si no devolvemos nada valdr� el resultado para cualquier MIME
        // teniendo en cuenta que el MIME resultado es del template (lo normal ser� text/html).
    }

}
TOP

Related Classes of org.itsnat.impl.core.resp.attachsrv.ResponseAttachedServerLoadMarkupFormImpl

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.