本文整理了Java中org.commonjava.maven.galley.model.Transfer.lastModified()
方法的一些代码示例,展示了Transfer.lastModified()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Transfer.lastModified()
方法的具体详情如下:
包路径:org.commonjava.maven.galley.model.Transfer
类名称:Transfer
方法名:lastModified
暂无
代码示例来源:origin: org.commonjava.aprox/aprox-promote-common
@Override
public long lastModified()
{
return delegate.lastModified();
}
代码示例来源:origin: org.commonjava.indy/indy-subsys-jaxrs
HttpUtils.formatDateHeader( item.lastModified() ) );
代码示例来源:origin: org.commonjava.indy/indy-dot-maven-common
@Override
public StoredObject getStoredObject( final ITransaction transaction, final String uri )
throws WebdavException
{
final StoredObject so = new StoredObject();
final StoreURIMatcher matcher = new StoreURIMatcher( uri );
if ( matcher.hasStorePath() )
{
final Transfer item = getTransfer( matcher );
if ( item == null )
{
return null;
}
so.setCreationDate( new Date( item.lastModified() ) );
so.setLastModified( new Date( item.lastModified() ) );
so.setFolder( item.isDirectory() );
so.setResourceLength( item.length() );
}
else
{
final Date d = new Date();
so.setCreationDate( d );
so.setLastModified( d );
so.setFolder( true );
}
return so;
}
代码示例来源:origin: org.commonjava.aprox/aprox-dot-maven-common
@Override
public StoredObject getStoredObject( final ITransaction transaction, final String uri )
throws WebdavException
{
final StoredObject so = new StoredObject();
final StoreURIMatcher matcher = new StoreURIMatcher( uri );
if ( matcher.hasStorePath() )
{
final Transfer item = getTransfer( matcher );
if ( item == null )
{
return null;
}
so.setCreationDate( new Date( item.lastModified() ) );
so.setLastModified( new Date( item.lastModified() ) );
so.setFolder( item.isDirectory() );
so.setResourceLength( item.length() );
}
else
{
final Date d = new Date();
so.setCreationDate( d );
so.setLastModified( d );
so.setFolder( true );
}
return so;
}
内容来源于网络,如有侵权,请联系作者删除!