當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。