本文整理匯總了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;
}