Package org.itsnat.core

Examples of org.itsnat.core.ItsNatException


        throw new ItsNatException("XML documents have not JavaScript",this);
    }

    public ScriptUtil getScriptUtil()
    {
        throw new ItsNatException("JavaScript utilities are not available for XML documents",this);
    }
View Full Code Here


        // Ignored
    }

    public ItsNatTimer createItsNatTimer()
    {
        throw new ItsNatException("XML documents have not events",this);
    }
View Full Code Here

        else if (evt instanceof ServerItsNatContinueEventImpl)
        {
            registries[0] = clientDoc.getContinueEventListenerRegistry();
            registries[1] = null; // para que quede claro
        }
        else throw new ItsNatException("Event type is not supported:" + event.getType(),event); // Por ahora no hay m�s casos

        return dispatchEventLocally(target,evt,registries);
    }
View Full Code Here

        // pues no es posible crear y registrar un listener especificamente para un cliente control remoto
        // cuando dicho cliente de control remoto NO puede recibir eventos "normales".
        // Antes de llegar aqu� un posible intento es ignorado (no hace nada), pero si llegamos aqu�
        // es que algo hemos hecho mal (framework) por lo que provocamos una excepci�n
        if ((clientDoc != null) && !clientDoc.canReceiveNormalEvents(this))
            throw new ItsNatException("Attempt to register a listener for a remote control client with read only permission");
    }
View Full Code Here

        // Est� bien formado porque viene del cliente.
    }

    public void initEvent(String eventTypeArg, boolean canBubbleArg, boolean cancelableArg)
    {
        throw new ItsNatException("Not implemented",this);
    }
View Full Code Here

            count += clientDoc.removeAllTimerEventListeners(eventTarget, true);
            count += clientDoc.removeAllContinueEventListeners(eventTarget, true);
        }

        if ((count > 0) && itsNatDoc.isLoadingPhaseAndFastLoadMode())
            throw new ItsNatException("An event listener was registered in a node removed in the document load phase and in fast load mode",node);
    }
View Full Code Here

        {
            boolean msie = (browser instanceof BrowserMSIEOld);
            int metaPos = -1;
            if (msie)
            {
                if (!svgWeb.hasMetaForceFlash()) throw new ItsNatException("Element <meta name='svg.render.forceflash' ..> is required when SVGWeb is used in MSIE");
                metaPos = svgWeb.getMetaForceFlashPos();
            }

            code.append( "itsnat_fix_svgweb(win," + msie + "," + metaPos + ");\n");
        }
View Full Code Here

        throw new ItsNatException("Not implemented",this);
    }

    public void setTarget(EventTarget target)
    {
        if (getTarget() != target) throw new ItsNatException("Event target cannot be changed");
    }
View Full Code Here

            }
            reader.close();
        }
        catch(IOException ex)
        {
            throw new ItsNatException("INTERNAL ERROR",ex);
        }
    }
View Full Code Here

    public static String getParameter(RequestNormalEventImpl request,String name)
    {
        name = "itsnat_evt_" + name;
        String param = request.getAttrOrParam(name);
        if (param == null)
            throw new ItsNatException(name + " parameter is not specified",request.getItsNatServletRequest());
        return param;
    }
View Full Code Here

TOP

Related Classes of org.itsnat.core.ItsNatException

Copyright © 2018 www.massapicom. 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.