org.apache.maven.mercury.builder.api
Interface MetadataReader


public interface MetadataReader

This interface implementation is supplied to MetadataProcessor to simplify it's access to remote repositories

Version:
$Id: MetadataReader.java 720564 2008-11-25 18:58:02Z ogusakov $
Author:
Oleg Gusakov

Method Summary
 byte[] readMetadata(ArtifactBasicMetadata bmd)
          read metadata for the artifact, pointed by bmd.
 byte[] readRawData(ArtifactBasicMetadata bmd, java.lang.String classifier, java.lang.String type)
          read content pointed by bmd.
 

Method Detail

readRawData

byte[] readRawData(ArtifactBasicMetadata bmd,
                   java.lang.String classifier,
                   java.lang.String type)
                   throws MetadataReaderException
read content pointed by bmd. It will return POM bytes regardless of actual bmd type

Parameters:
bmd - coordinates
classifier - - replaces the getClassifier() from bmd if not null
type - - replaces the getType() from bmd if not null
Returns:
Throws:
MetadataReaderException
RepositoryException

readMetadata

byte[] readMetadata(ArtifactBasicMetadata bmd)
                    throws MetadataReaderException
read metadata for the artifact, pointed by bmd. It will return POM bytes regardless of actual bmd type

Parameters:
bmd -
Returns:
Throws:
MetadataReaderException


Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.