Package org.apache.ivy.osgi.updatesite
Class UpdateSiteLoader
java.lang.Object
org.apache.ivy.osgi.updatesite.UpdateSiteLoader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final CacheResourceOptionsprivate final RepositoryCacheManagerprivate final TimeoutConstraintprivate final URLRepository -
Constructor Summary
ConstructorsConstructorDescriptionUpdateSiteLoader(RepositoryCacheManager repositoryCacheManager, EventManager eventManager, CacheResourceOptions options, TimeoutConstraint timeoutConstraint) -
Method Summary
Modifier and TypeMethodDescriptionprivate ZipInputStreamfindEntry(InputStream in, String entryName) private UpdateSiteDescriptorloadFromDigest(UpdateSite site) private UpdateSiteDescriptorloadFromSite(UpdateSite site) private P2Descriptorprivate UpdateSiteprivate URInormalizeSiteUri(URI uri, URI defaultValue) private booleanpopulateP2Descriptor(URI repoUri, P2Descriptor p2Descriptor) private booleanreadArtifacts(URI repoUri, P2Descriptor p2Descriptor) private booleanreadCompositeArtifact(URI repoUri, String name, P2Descriptor p2Descriptor) private booleanreadCompositeContent(URI repoUri, String name, P2Descriptor p2Descriptor) private booleanreadContent(URI repoUri, P2Descriptor p2Descriptor) private booleanreadJarOrXml(URI repoUri, String baseName, XMLInputParser reader) voidsetLogLevel(int logLevel)
-
Field Details
-
repositoryCacheManager
-
urlRepository
-
options
-
timeoutConstraint
-
logLevel
private int logLevel
-
-
Constructor Details
-
UpdateSiteLoader
public UpdateSiteLoader(RepositoryCacheManager repositoryCacheManager, EventManager eventManager, CacheResourceOptions options, TimeoutConstraint timeoutConstraint)
-
-
Method Details
-
setLogLevel
public void setLogLevel(int logLevel) -
load
- Throws:
IOExceptionParseExceptionSAXException
-
loadP2
- Throws:
IOExceptionParseExceptionSAXException
-
populateP2Descriptor
private boolean populateP2Descriptor(URI repoUri, P2Descriptor p2Descriptor) throws IOException, ParseException, SAXException - Throws:
IOExceptionParseExceptionSAXException
-
readContent
private boolean readContent(URI repoUri, P2Descriptor p2Descriptor) throws IOException, ParseException, SAXException - Throws:
IOExceptionParseExceptionSAXException
-
readArtifacts
private boolean readArtifacts(URI repoUri, P2Descriptor p2Descriptor) throws IOException, ParseException, SAXException - Throws:
IOExceptionParseExceptionSAXException
-
readCompositeContent
private boolean readCompositeContent(URI repoUri, String name, P2Descriptor p2Descriptor) throws IOException, ParseException, SAXException - Throws:
IOExceptionParseExceptionSAXException
-
readCompositeArtifact
private boolean readCompositeArtifact(URI repoUri, String name, P2Descriptor p2Descriptor) throws IOException, ParseException, SAXException - Throws:
IOExceptionParseExceptionSAXException
-
readJarOrXml
private boolean readJarOrXml(URI repoUri, String baseName, XMLInputParser reader) throws IOException, ParseException, SAXException - Throws:
IOExceptionParseExceptionSAXException
-
loadSite
- Throws:
IOExceptionSAXException
-
normalizeSiteUri
-
loadFromDigest
- Throws:
IOExceptionSAXException
-
loadFromSite
- Throws:
IOExceptionSAXException
-
findEntry
- Throws:
IOException
-