Package org.itsnat.core

Examples of org.itsnat.core.ItsNatException


        throw new ItsNatException("INTERNAL ERROR");
    }

    public boolean containsAll(Collection<?> col)
    {
        throw new ItsNatException("INTERNAL ERROR");
    }
View Full Code Here


        throw new ItsNatException("INTERNAL ERROR");
    }

    public boolean removeAll(Collection<?> col)
    {
        throw new ItsNatException("INTERNAL ERROR");
    }
View Full Code Here

        throw new ItsNatException("INTERNAL ERROR");
    }

    public boolean retainAll(Collection<?> col)
    {
        throw new ItsNatException("INTERNAL ERROR");
    }
View Full Code Here

    public static ItsNatStfulDocumentTemplateAttachedServerImpl createItsNatStfulDocumentTemplateAttachedServer(String name,String mime,ItsNatServletImpl servlet)
    {
        if (NamespaceUtil.isStatefulMime(mime))
            return new ItsNatStfulDocumentTemplateAttachedServerImpl(name,mime,servlet);
        else
            throw new ItsNatException("This MIME " + mime + " is not recognized as stateful and stateless is not valid in attached server mode");
    }
View Full Code Here

        {
            // Esto ayuda al programador final cuando genera c�digo JavaScript y no envia al cliente,
            // pero tambi�n puede ayudar en el desarrollo del framework, pues si se detectara
            // esta excepci�n el paso siguiente podr�a ser guardar un Exception creado en los constructores
            // para recordar cual fue el contexto en el que se cre�.
            throw new ItsNatException("Some nodes have been cached in server but not in client, generated JavaScript code was not sent to the client.");
            //ex.printStackTrace();
            //throw ex;
        }
    }   
View Full Code Here

        getCodeToSendRegistry().removeCodeToSendListener(listener);
    }

    public CometNotifier createCometNotifier()
    {
        throw new ItsNatException("Not supported in this context");
    }
View Full Code Here

        throw new ItsNatException("Not supported in this context");
    }

    public CometNotifier createCometNotifier(long eventTimeout)
    {
        throw new ItsNatException("Not supported in this context");
    }
View Full Code Here

        throw new ItsNatException("Not supported in this context");
    }

    public CometNotifier createCometNotifier(int commMode,long eventTimeout)
    {
        throw new ItsNatException("Not supported in this context");
    }
View Full Code Here

        throw new ItsNatException("Not supported in this context");
    }

    public void startEventDispatcherThread(Runnable task)
    {
        throw new ItsNatException("Not supported in this context");
    }
View Full Code Here

        if ((nodeCacheOwner == null) || nodeCacheOwner.isEmpty())
            return;

        StringBuilder code = new StringBuilder();
        NodeCacheRegistryImpl nodeCacheObserver = clientAttached.getNodeCacheRegistry(); // DEBE existir
        if (!nodeCacheObserver.isEmpty()) throw new ItsNatException("INTERNAL ERROR"); // Debe estar "virgen" no sea que hayamos ya antes cacheado nodos en el observador y estar�amos cacheando dos veces aunque sea con el mismo id lo cual no est� permitido, provocamos error antes.
        ArrayList<LinkedList<Map.Entry<Node,String>>> cacheCopy = nodeCacheOwner.getOrderedByHeight();
        boolean cacheParentIfPossible = false// De esta manera evitamos un cacheado indirecto, el objetivo de este c�digo es copiar una cach� a otra, exactamente los mismos nodos
        for(int h = 0; h < cacheCopy.size(); h++)
        {
            LinkedList<Map.Entry<Node,String>> sameH = cacheCopy.get(h);
            if (sameH == null) continue;
            for(Map.Entry<Node,String> entry : sameH)
            {
                Node node = entry.getKey();
                String id = entry.getValue();
                // Los ids de los nodos son generados por el ItsNatDocumentImpl
                // por lo que pueden compartirse entre cach�s de clientes.

                if (isIgnoredNodeForCaching(node)) continue;

                nodeCacheObserver.addNode(node,id); // node no puede ser nulo

                NodeLocationWithParentImpl nodeLoc = NodeLocationWithParentImpl.getNodeLocationWithParentUsingCache(node,id,cacheParentIfPossible,nodeCacheObserver);
                if (!nodeLoc.isJustCached())
                    throw new ItsNatException("INTERNAL ERROR");
                code.append( JSRenderNodeImpl.addNodeToCache(nodeLoc) );
            }
        }

        clientAttached.addCodeToSend(code);
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.