Package aQute.bnd.osgi.repository
Class XMLResourceGenerator
java.lang.Object
aQute.bnd.osgi.repository.XMLResourceGenerator
Can turn an OSGi repository into an
http://www.osgi.org/xmlns/repository/v1.0.0
XML file. See the
Repository spec in OSGi.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompress()
increment
(long increment) Note that callingname(String)
sets increment toSystem.currentTimeMillis()
.indent
(int n) Note that callingname(String)
sets increment toSystem.currentTimeMillis()
.repository
(org.osgi.service.repository.Repository repository) resource
(org.osgi.resource.Resource resource) resources
(Collection<? extends org.osgi.resource.Resource> resources) void
void
save
(OutputStream out)
-
Constructor Details
-
XMLResourceGenerator
public XMLResourceGenerator()
-
-
Method Details
-
save
- Throws:
IOException
-
save
- Throws:
IOException
-
name
Note that callingname(String)
sets increment toSystem.currentTimeMillis()
. In order to retain backward compatibility that is not change. Therefore, in order to specify a valueincrement(long)
should be called after.- Parameters:
name
-- Returns:
- this
-
increment
Note that callingname(String)
sets increment toSystem.currentTimeMillis()
. In order to retain backward compatibility that is not change. Therefore, in order to specify a valueincrement(long)
should be called after.- Parameters:
increment
-- Returns:
- this
-
referral
-
repository
-
resources
-
resource
-
indent
-
compress
-
base
- Parameters:
base
- the base URI from which the index urls are relative
-