当前位置: 首页>>代码示例>>Java>>正文


Java PropEntry类代码示例

本文整理汇总了Java中org.apache.jackrabbit.webdav.property.PropEntry的典型用法代码示例。如果您正苦于以下问题:Java PropEntry类的具体用法?Java PropEntry怎么用?Java PropEntry使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


PropEntry类属于org.apache.jackrabbit.webdav.property包,在下文中一共展示了PropEntry类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: alterProperties

import org.apache.jackrabbit.webdav.property.PropEntry; //导入依赖的package包/类
@Override
    public
    @Nullable
    MultiStatusResponse alterProperties( @Nullable List<? extends PropEntry> changeList ) throws DavException {
        if( !exists() ) {
            throw new DavException( DavServletResponse.SC_NOT_FOUND );
        }

        MultiStatusResponse response = new MultiStatusResponse( getHref(), null );
        /*
         * loop over list of properties/names that were successfully altered
         * and add them to the multistatus response respecting the result of the
         * complete action. in case of failure set the status to 'failed-dependency'
         * in order to indicate, that altering those names/properties would
         * have succeeded, if no other error occurred.
         */
        for( PropEntry propEntry : n1( changeList ) ) {
            int statusCode = DavServletResponse.SC_OK;

            if( propEntry instanceof DavProperty ) {
                DavProperty<?> dprop = (DavProperty<?>) propEntry;
                if( dprop.getName().equals( new DefaultDavProperty<>( DavPropertyName.GETLASTMODIFIED, "1" ).getName() ) ) {
                    Filess.setLastModifiedTime( file, FileTime.fromMillis( LocalDateTime.parse( (String) dprop.getValue(), DateTimeFormatter.RFC_1123_DATE_TIME ).toEpochSecond( ZoneOffset.ofTotalSeconds( 0 ) ) * 1000 ) );
                }
//                response.add( ( dprop ).getName(), statusCode );
                response.add( dprop );
            } else {
                response.add( (DavPropertyName) propEntry, statusCode );
            }
        }
        return response;
    }
 
开发者ID:openCage,项目名称:niodav,代码行数:33,代码来源:DavPath.java

示例2: alterProperties

import org.apache.jackrabbit.webdav.property.PropEntry; //导入依赖的package包/类
public MultiStatusResponse alterProperties(List<? extends PropEntry> changeList) throws DavException{
    throw new UnsupportedOperationException();
}
 
开发者ID:1and1,项目名称:cosmo,代码行数:4,代码来源:DavResourceBase.java

示例3: alterProperties

import org.apache.jackrabbit.webdav.property.PropEntry; //导入依赖的package包/类
@Override
public MultiStatusResponse alterProperties(List<? extends PropEntry> propEntries) throws DavException {
    return null;
}
 
开发者ID:Benky,项目名称:webdav-cassandra,代码行数:5,代码来源:AbstractDavResource.java


注:本文中的org.apache.jackrabbit.webdav.property.PropEntry类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。