org.rhq.gui.content
Class YumMetadata

java.lang.Object
  extended by org.rhq.gui.content.YumMetadata

public class YumMetadata
extends Object


Field Summary
static String PRIMARY_XML
           
static String REPOMD_XML
           
 
Constructor Summary
YumMetadata()
           
 
Method Summary
static boolean generate(StringBuffer sb, org.rhq.core.domain.content.Repo repo, List<org.rhq.core.domain.content.PackageVersion> pvs, String filename)
           
protected static void generatePrimary(StringBuffer sb, org.rhq.core.domain.content.Repo repo, List<org.rhq.core.domain.content.PackageVersion> pvs)
           
protected static boolean generateRepoMD(StringBuffer sb, org.rhq.core.domain.content.Repo repo, List<org.rhq.core.domain.content.PackageVersion> pvs)
           
protected static String getSHA(StringBuffer primaryXML)
           
protected static String modifyLocation(String metadata, String repoName, String filename)
           
protected static String unzip(byte[] zippedMetadata)
           
protected static void writeRepoMDEntry(StringBuffer sb, String type, String sum, String ts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRIMARY_XML

public static final String PRIMARY_XML
See Also:
Constant Field Values

REPOMD_XML

public static final String REPOMD_XML
See Also:
Constant Field Values
Constructor Detail

YumMetadata

public YumMetadata()
Method Detail

generate

public static boolean generate(StringBuffer sb,
                               org.rhq.core.domain.content.Repo repo,
                               List<org.rhq.core.domain.content.PackageVersion> pvs,
                               String filename)

generatePrimary

protected static void generatePrimary(StringBuffer sb,
                                      org.rhq.core.domain.content.Repo repo,
                                      List<org.rhq.core.domain.content.PackageVersion> pvs)

generateRepoMD

protected static boolean generateRepoMD(StringBuffer sb,
                                        org.rhq.core.domain.content.Repo repo,
                                        List<org.rhq.core.domain.content.PackageVersion> pvs)

getSHA

protected static String getSHA(StringBuffer primaryXML)
                        throws NoSuchAlgorithmException,
                               IOException
Throws:
NoSuchAlgorithmException
IOException

writeRepoMDEntry

protected static void writeRepoMDEntry(StringBuffer sb,
                                       String type,
                                       String sum,
                                       String ts)

unzip

protected static String unzip(byte[] zippedMetadata)

modifyLocation

protected static String modifyLocation(String metadata,
                                       String repoName,
                                       String filename)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.