Package org.itsnat.impl.core.servlet

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


    public MapUniqueId<MarkupTemplateVersionImpl> getUsedTemplateVersionsWithCachedNodes()
    {
        if (usedTemplatesWithCachedNodes == null)
        {
            ItsNatServletImpl itsNatServlet = getItsNatServlet();
            this.usedTemplatesWithCachedNodes = createUsedTemplateVersionsWithCachedNodesMap(itsNatServlet);
        }
        return usedTemplatesWithCachedNodes;
    }
View Full Code Here


    }

    protected void processEvent()
    {
        RequestEventStatelessImpl request = getRequestEventStatelessImpl();
        ItsNatServletImpl itsNatServlet = request.getItsNatServletRequest().getItsNatServletImpl();
           
        if (itsNatServlet.hasGlobalEventListenerListeners()) // No miramos m�s pues sabemos que no hay documento y el ClientDocument es temporal y el programador no tuvo la oportunidad de registrar listeners
        {
            ClientItsNatEventStatelessCustomAndDocTemplateNotFoundImpl evt = new ClientItsNatEventStatelessCustomAndDocTemplateNotFoundImpl(request);
            EventListenerUtil.handleEventIncludingGlobalListeners(null,evt);
        }
    }   
View Full Code Here

    public static boolean processGlobalListeners(ResponseAttachedClient response)
    {
        RequestAttachedClient request = response.getRequestAttachedClient();

        ItsNatServletImpl itsNatServlet = ((RequestImpl)request).getItsNatServletRequest().getItsNatServletImpl();

        if (!itsNatServlet.hasItsNatAttachedClientEventListeners())
            return false;

        LinkedList<ItsNatAttachedClientEventListener> listeners = new LinkedList<ItsNatAttachedClientEventListener>();
        itsNatServlet.getItsNatAttachedClientEventListenerList(listeners);

        ItsNatAttachedClientEventErrorImpl event = new ItsNatAttachedClientEventErrorImpl(request);
        ItsNatAttachedClientEventListenerUtil.handleEventListeners(event, listeners);

        return true;
View Full Code Here

    }

    private static void addGlobalEventListeners(ItsNatAttachedClientEvent evt,LinkedList<ItsNatAttachedClientEventListener> listeners)
    {
        ItsNatEventImpl itsNatEvt = (ItsNatEventImpl)evt;
        ItsNatServletImpl servlet = itsNatEvt.getItsNatServletRequestImpl().getItsNatServletImpl();

        servlet.getItsNatAttachedClientEventListenerList(listeners);

        ItsNatStfulDocumentImpl itsNatDoc = itsNatEvt.getItsNatStfulDocument();

        itsNatDoc.getItsNatDocumentTemplateImpl().getItsNatAttachedClientEventListenerList(listeners);
View Full Code Here

        return res;
    }

    private void writeObject(ObjectOutputStream out) throws IOException
    {
        ItsNatServletImpl itsNatServlet = docTemplate.getItsNatServletImpl();
        ItsNatServletImpl.writeObject(itsNatServlet,out);

        MarkupTemplateImpl.writeObject(docTemplate, out);

        out.defaultWriteObject();
View Full Code Here

        // as�, si se redirecciona a una request normal de carga, dicha request har� el popItsNatStfulDocument()
        // volviendo a definir el referrer en la request

        setItsNatStfulDocumentReferrer( getItsNatSession().getReferrer().getItsNatStfulDocument() );
      
        ItsNatServletImpl itsNatServlet = itsNatRequest.getItsNatServletImpl();
        itsNatServlet.dispatchItsNatServletRequestListeners(itsNatRequest);
    }
View Full Code Here

                }
            }
        }

        ItsNatDocumentTemplateImpl docTemplate = itsNatDoc.getItsNatDocumentTemplateImpl();
        ItsNatServletImpl itsNatServlet = docTemplate.getItsNatServletImpl();
        Iterator<ItsNatServletRequestListener> iterator;

        iterator = itsNatServlet.getItsNatServletRequestListenerIterator();
        itsNatResponse.dispatchItsNatServletRequestListeners(iterator);

        iterator = docTemplate.getItsNatServletRequestListenerIterator();
        itsNatResponse.dispatchItsNatServletRequestListeners(iterator);
    }
View Full Code Here

        // Sabemos que NO es un unload.

        // No obtenemos el referrer porque el proceso del file upload no es el de una p�gina normal

        ItsNatServletRequestImpl itsNatRequest = itsNatResponse.getItsNatServletRequestImpl();
        ItsNatServletImpl itsNatServlet = itsNatRequest.getItsNatServletImpl();
        return itsNatServlet.dispatchItsNatServletRequestListeners(itsNatRequest);
    }
View Full Code Here

    }

    public boolean hasBeforeAfterCreateItsNatComponentListener()
    {
        ItsNatDocumentTemplateImpl docTemplate = itsNatDoc.getItsNatDocumentTemplateImpl();
        ItsNatServletImpl servlet = docTemplate.getItsNatServletImpl();
        boolean res;

        res = servlet.hasCreateItsNatComponentList();
        if (res) return true;

        res = docTemplate.hasCreateItsNatComponentList();
        if (res) return true;
View Full Code Here

    {
        ItsNatComponent comp = null;
        Iterator<CreateItsNatComponentListener> createCompIterator = null;

        ItsNatDocumentTemplateImpl docTemplate = itsNatDoc.getItsNatDocumentTemplateImpl();
        ItsNatServletImpl servlet = docTemplate.getItsNatServletImpl();

        createCompIterator = servlet.getCreateItsNatComponentListenerIterator();
        if (createCompIterator != null)
        {
            comp = processBeforeCreateItsNatComponentListener(createCompIterator,node,componentType,artifacts);
            if (comp != null) return comp;
        }
View Full Code Here

TOP

Related Classes of org.itsnat.impl.core.servlet.ItsNatServletImpl

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.