本文整理汇总了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;
}
示例2: alterProperties
import org.apache.jackrabbit.webdav.property.PropEntry; //导入依赖的package包/类
public MultiStatusResponse alterProperties(List<? extends PropEntry> changeList) throws DavException{
throw new UnsupportedOperationException();
}
示例3: alterProperties
import org.apache.jackrabbit.webdav.property.PropEntry; //导入依赖的package包/类
@Override
public MultiStatusResponse alterProperties(List<? extends PropEntry> propEntries) throws DavException {
return null;
}