Examples of ItsNatSessionImpl


Examples of org.itsnat.impl.core.servlet.ItsNatSessionImpl

        else
        {
            // La sesi�n que se quiere monitorizar no tiene porqu� ser la misma del monitorizador
            String targetSessionId = getAttrOrParamExist("itsnat_session_id"); // Debe existir (sino da error)
            ItsNatServletContextImpl context = itsNatRequest.getItsNatServletContext();
            ItsNatSessionImpl targetSession = context.findItsNatSessionByItsNatId(targetSessionId);
            if (targetSession == null)
            {
                processTargetSessionNotFound(targetSessionId);
                return;
            }

            // El documento a monitorizar est� registrado en la sesi�n remota:
            String targetDocId = getAttrOrParamExist("itsnat_doc_id"); // Debe existir (sino da error)
            itsNatDoc = targetSession.getItsNatStfulDocumentById(targetDocId);
            if ((itsNatDoc == null) || itsNatDoc.isInvalid()) // El caso itsNatDoc.isInvalid() devolviendo true es muy raro porque al invalidarse se desregistra de su sesi�n pero puede ocurrir, as� tenemos la seguridad de que la request se realiza sobre un documento v�lido
            {
                processTargetDocumentNotFound(targetSessionId,targetDocId);
                return;
            }
View Full Code Here

Examples of org.itsnat.impl.core.servlet.ItsNatSessionImpl

    {
        // Evaluamos si est� autorizado para controlar rem�tamente
        // EL DOCUMENTO NO ESTA SINCRONIZADO PARA PODER PREGUNTAR AL USUARIO MONITORIZADO
        Browser browser = itsNatDoc.getItsNatStfulDocumentTemplateVersion().getBrowser(itsNatRequest); // No hay problema de sincronizaci�n (multihilo) en estas llamadas

        ItsNatSessionImpl itsNatSession = itsNatRequest.getItsNatSessionImpl();

        // Phase ItsNatAttachedClientEvent.REQUEST;
        ClientDocumentAttachedClientImpl clientDoc = null;

        if (refreshMethod.equals("timer"))
View Full Code Here

Examples of org.itsnat.impl.core.servlet.ItsNatSessionImpl

        response.process();
    }

    public void prepareErrorResponse()
    {
        ItsNatSessionImpl session = getItsNatSession();
        ClientDocumentAttachedClientErrorImpl clientDoc = new ClientDocumentAttachedClientErrorImpl(session);
        clientDoc.setPhase(ItsNatAttachedClientEvent.REQUEST);

        bindClientToRequest(clientDoc,false)// El documento es nulo, no se vincula por tanto
    }
View Full Code Here
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.