Examples of DavItem


Examples of com.ecyrd.jspwiki.dav.items.DavItem

                if( p.getName().toLowerCase().startsWith(st) )
                {
                    DavPath np = new DavPath( path );
                    np.append( p.getName()+".txt" );
                   
                    DavItem di = new PageDavItem( this, np, p );
               
                    davItems.add( di );
                }
            }
        }
View Full Code Here

Examples of com.ecyrd.jspwiki.dav.items.DavItem

                                null, true );
    }
   
    public DavItem getItem( DavPath dp )
    {
        DavItem di = null;
   
        try
        {
            di = (DavItem)m_davItemCache.getFromCache( dp.toString(),
                                                       m_refreshPeriod );
           
            if( di == null )
            {
                di = getItemNoCache( dp );
            }
        }
        catch( NeedsRefreshException e )
        {
            DavItem old = (DavItem)e.getCacheContent();
           
            if( old != null && old instanceof PageDavItem )
            {
                WikiPage cached = ((PageDavItem)old).getPage();
               
View Full Code Here

Examples of com.ecyrd.jspwiki.dav.items.DavItem

    }
   
    public void execute( HttpServletRequest req, HttpServletResponse res, DavPath dp )
        throws IOException
    {       
        DavItem di = m_provider.getItem( dp );
       
        if( di != null )
        {
            String mime = di.getContentType();
            res.setContentType( mime );
       
            long length = di.getLength();
       
            if( length >= 0 )
            {
                res.setContentLength( (int)di.getLength() );
            }
       
            InputStream in = di.getInputStream();
           
            if( in != null )
            {
                FileUtil.copyContents( in, res.getOutputStream() );
               
View Full Code Here

Examples of com.ecyrd.jspwiki.dav.items.DavItem

        log.debug("Retrieving all property names for context "+dc);
       
        Namespace davns = Namespace.getNamespace( "DAV:" );
        Element root = new Element("multistatus", davns);
   
        DavItem di = m_provider.getItem( dc.getPath() );

        for( Iterator i = di.iterator(dc.getDepth()); i.hasNext(); )
        {
            di = (DavItem) i.next();
                   
            Element response = new Element("response", davns);

            response.addContent( new Element("href",davns).setText( di.getHref() ) );
                   
            Element propstat = new Element("propstat", davns);
                   
            //
            //  Wiki specifics.
            //
            Collection c = di.getPropertySet();
           
            Element prop = new Element("prop",davns);
           
            for( Iterator j = c.iterator(); j.hasNext(); )
            {
View Full Code Here

Examples of com.ecyrd.jspwiki.dav.items.DavItem

    {
        Namespace davns = Namespace.getNamespace( "DAV:" );
       
        Element root = new Element("multistatus", davns);

        DavItem di = m_provider.getItem( dc.getPath() );

        if( di == null )
        {
            throw new FileNotFoundException( dc.getPath().toString() );
        }
       
        for( Iterator i = di.iterator(dc.getDepth()); i.hasNext(); )
        {
            di = (DavItem) i.next();
                   
            Element response = new Element("response", davns);

            response.addContent( new Element("href",davns).setText( di.getHref() ) );
                   
            Element props = new Element("prop", davns);
            Element failedprops = new Element("prop", davns );
           
            //
            //  Get the matching property set
            //
            Collection c = di.getPropertySet();
           
            if( askedprops == null )
            {
                for( Iterator j = c.iterator(); j.hasNext(); )
                {
View Full Code Here

Examples of org.apache.wiki.dav.items.DavItem

                if( p.getName().toLowerCase().startsWith(st) )
                {
                    DavPath dp = new DavPath( path );
                    dp.append( p.getName()+".html" );
                   
                    DavItem di = new HTMLPageDavItem( this, dp, p );
               
                    davItems.add( di );
                }
            }
        }
View Full Code Here

Examples of org.apache.wiki.dav.items.DavItem

                if( p.getName().toLowerCase().startsWith(st) )
                {
                    DavPath np = new DavPath( path );
                    np.append( p.getName()+".txt" );
                   
                    DavItem di = new PageDavItem( this, np, p );
               
                    davItems.add( di );
                }
            }
        }
View Full Code Here

Examples of org.apache.wiki.dav.items.DavItem

                                null, true );
    }
   
    public DavItem getItem( DavPath dp )
    {
        DavItem di = null;
   
        try
        {
            di = (DavItem)m_davItemCache.getFromCache( dp.toString(),
                                                       m_refreshPeriod );
           
            if( di == null )
            {
                di = getItemNoCache( dp );
            }
        }
        catch( NeedsRefreshException e )
        {
            DavItem old = (DavItem)e.getCacheContent();
           
            if( old != null && old instanceof PageDavItem )
            {
                WikiPage cached = ((PageDavItem)old).getPage();
               
View Full Code Here

Examples of org.apache.wiki.dav.items.DavItem

    }
   
    public void execute( HttpServletRequest req, HttpServletResponse res, DavPath dp )
        throws IOException
    {       
        DavItem di = m_provider.getItem( dp );
       
        if( di != null )
        {
            String mime = di.getContentType();
            res.setContentType( mime );
       
            long length = di.getLength();
       
            if( length >= 0 )
            {
                res.setContentLength( (int)di.getLength() );
            }
       
            InputStream in = di.getInputStream();
           
            if( in != null )
            {
                FileUtil.copyContents( in, res.getOutputStream() );
               
View Full Code Here

Examples of org.apache.wiki.dav.items.DavItem

        log.debug("Retrieving all property names for context "+dc);
       
        Namespace davns = Namespace.getNamespace( "DAV:" );
        Element root = new Element("multistatus", davns);
   
        DavItem di = m_provider.getItem( dc.getPath() );

        for( Iterator i = di.iterator(dc.getDepth()); i.hasNext(); )
        {
            di = (DavItem) i.next();
                   
            Element response = new Element("response", davns);

            response.addContent( new Element("href",davns).setText( di.getHref() ) );
                   
            Element propstat = new Element("propstat", davns);
                   
            //
            //  Wiki specifics.
            //
            Collection c = di.getPropertySet();
           
            Element prop = new Element("prop",davns);
           
            for( Iterator j = c.iterator(); j.hasNext(); )
            {
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.