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.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidattributes(Tag cr, Map<String, Object> attributes) compress()private voiddirectives(Tag cr, Map<String, String> directives) increment(long increment) Note that callingname(String)sets increment toSystem.currentTimeMillis().indent(int n) private booleanNote that callingname(String)sets increment toSystem.currentTimeMillis().private Stringrelativize(String value) repository(org.osgi.service.repository.Repository repository) resource(org.osgi.resource.Resource resource) resources(Collection<? extends org.osgi.resource.Resource> resources) voidvoidsave(OutputStream out)
-
Field Details
-
repository
-
visited
-
indent
private int indent -
compress
private boolean compress -
base
-
-
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
-
directives
-
attributes
-
isContent
-
relativize
-
indent
-
compress
-
base
- Parameters:
base- the base URI from which the index urls are relative
-