org.commonjava.maven.galley.model.Transfer.lastModified()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中org.commonjava.maven.galley.model.Transfer.lastModified()方法的一些代码示例,展示了Transfer.lastModified()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Transfer.lastModified()方法的具体详情如下:
包路径:org.commonjava.maven.galley.model.Transfer
类名称:Transfer
方法名:lastModified

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;
}

相关文章