Package org.apache.ivy.osgi.updatesite
Class UpdateSiteLoader
java.lang.Object
org.apache.ivy.osgi.updatesite.UpdateSiteLoader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private final CacheResourceOptions
private final RepositoryCacheManager
private final TimeoutConstraint
private final URLRepository
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateSiteLoader
(RepositoryCacheManager repositoryCacheManager, EventManager eventManager, CacheResourceOptions options, TimeoutConstraint timeoutConstraint) -
Method Summary
Modifier and TypeMethodDescriptionprivate ZipInputStream
findEntry
(InputStream in, String entryName) private UpdateSiteDescriptor
loadFromDigest
(UpdateSite site) private UpdateSiteDescriptor
loadFromSite
(UpdateSite site) private P2Descriptor
private UpdateSite
private URI
normalizeSiteUri
(URI uri, URI defaultValue) private boolean
populateP2Descriptor
(URI repoUri, P2Descriptor p2Descriptor) private boolean
readArtifacts
(URI repoUri, P2Descriptor p2Descriptor) private boolean
readCompositeArtifact
(URI repoUri, String name, P2Descriptor p2Descriptor) private boolean
readCompositeContent
(URI repoUri, String name, P2Descriptor p2Descriptor) private boolean
readContent
(URI repoUri, P2Descriptor p2Descriptor) private boolean
readJarOrXml
(URI repoUri, String baseName, XMLInputParser reader) void
setLogLevel
(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:
IOException
ParseException
SAXException
-
loadP2
- Throws:
IOException
ParseException
SAXException
-
populateP2Descriptor
private boolean populateP2Descriptor(URI repoUri, P2Descriptor p2Descriptor) throws IOException, ParseException, SAXException - Throws:
IOException
ParseException
SAXException
-
readContent
private boolean readContent(URI repoUri, P2Descriptor p2Descriptor) throws IOException, ParseException, SAXException - Throws:
IOException
ParseException
SAXException
-
readArtifacts
private boolean readArtifacts(URI repoUri, P2Descriptor p2Descriptor) throws IOException, ParseException, SAXException - Throws:
IOException
ParseException
SAXException
-
readCompositeContent
private boolean readCompositeContent(URI repoUri, String name, P2Descriptor p2Descriptor) throws IOException, ParseException, SAXException - Throws:
IOException
ParseException
SAXException
-
readCompositeArtifact
private boolean readCompositeArtifact(URI repoUri, String name, P2Descriptor p2Descriptor) throws IOException, ParseException, SAXException - Throws:
IOException
ParseException
SAXException
-
readJarOrXml
private boolean readJarOrXml(URI repoUri, String baseName, XMLInputParser reader) throws IOException, ParseException, SAXException - Throws:
IOException
ParseException
SAXException
-
loadSite
- Throws:
IOException
SAXException
-
normalizeSiteUri
-
loadFromDigest
- Throws:
IOException
SAXException
-
loadFromSite
- Throws:
IOException
SAXException
-
findEntry
- Throws:
IOException
-