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

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

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

Transfer.getResource介绍

暂无

代码示例

代码示例来源:origin: org.commonjava.aprox/aprox-promote-common

@Override
public ConcreteResource getResource()
{
  return delegate.getResource();
}

代码示例来源:origin: org.commonjava.aprox/aprox-promote-common

public ReadOnlyTransfer( Transfer transfer )
{
  super( transfer.getResource(), null, null, null );
  delegate = transfer;
}

代码示例来源:origin: org.commonjava.maven.galley/galley-api

public TransferTimeoutException( final Transfer target, final String format, final Object... params )
{
  super( target.getLocation(), format, params );
  this.url = composeUrl( target.getResource() );
}

代码示例来源:origin: org.commonjava.maven.galley/galley-api

public TransferTimeoutException( final Transfer target, final String format, final Throwable error, final Object... params )
{
  super( target.getLocation(), format, error, params );
  this.url = composeUrl( target.getResource() );
}

代码示例来源:origin: org.commonjava.aprox/aprox-core

private Boolean doDelete( final Transfer item, final EventMetadata eventMetadata )
  throws AproxWorkflowException
{
  try
  {
    transfers.delete( item.getResource(), eventMetadata );
  }
  catch ( final TransferException e )
  {
    throw new AproxWorkflowException( "Failed to delete: {}. Reason: {}", e, item, e.getMessage() );
  }
  return true;
}

代码示例来源:origin: org.commonjava.maven.galley/galley-transport-httpclient

@Override
public Transfer getTransfer()
{
  if ( eventMetadata.get( STORAGE_PATH ) != null )
  {
    target.setResource( ResourceUtils.storageResource( target.getResource(), eventMetadata ) );
  }
  return target;
}

代码示例来源:origin: org.commonjava.indy/indy-core

private Boolean doDelete( final Transfer item, final EventMetadata eventMetadata )
    throws IndyWorkflowException
{
  try
  {
    final ConcreteResource res = item.getResource();
    transfers.delete( res, eventMetadata );
  }
  catch ( final TransferException e )
  {
    throw new IndyWorkflowException( "Failed to delete: {}. Reason: {}", e, item, e.getMessage() );
  }
  return true;
}

代码示例来源:origin: org.commonjava.maven.galley/galley-transport-httpclient

ConcreteResource resource = target.getResource();
try

代码示例来源:origin: org.commonjava.indy/indy-core

if ( item != null )
  logger.debug( "Resource generated for {}, clean NFC and delete obsolete http-metadata.json", item.getResource() );
  nfc.clearMissing( item.getResource() );
  Transfer httpMeta = item.getSiblingMeta( HTTP_METADATA_EXT );
  try
    logger.warn( "Failed to delete {}", httpMeta.getResource() );

代码示例来源:origin: org.commonjava.maven.galley/galley-core

contentLogger.info( "BEGIN: Delete {} ({})", item.getResource(), eventMetadata );
      contentLogger.info( "FAIL: Delete: {}", item.getResource() );
      return false;
contentLogger.info( "FINISH: Delete: {}", item.getResource() );

代码示例来源:origin: org.commonjava.maven.galley/galley-api

public void copyFrom( final Transfer f, final EventMetadata eventMetadata )
  throws IOException
{
  provider.waitForWriteUnlock( resource );
  provider.lockWrite( resource );
  try
  {
    if ( decorator != null )
    {
      decorator.decorateCopyFrom( f, this, eventMetadata );
    }
    provider.copy( f.getResource(), resource );
  }
  finally
  {
    provider.unlockWrite( resource );
  }
}

代码示例来源:origin: org.commonjava.maven.galley/galley-core

logger.info( "STORE {}", target.getResource() );

代码示例来源:origin: org.commonjava.maven.galley/galley-core

cacheProvider.createAlias( retrieved.getResource(), target.getResource() );

相关文章