@Service(value=java.lang.Object.class) @Property(name="javax.ws.rs", boolValue=true) public class Generator extends Object
Constructor and Description |
---|
Generator() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
download(String baseUri,
String targetUri,
String rootLinkPrefix,
List<String> formatExtensions)
The service takes the following argumens:
- 1 base-uri: for all resources with a URI starting with this Uri
creation of the specified target fomats is attempted
- 1 target-uri: where base-uri appears in the representations it is
replaces with target-uri
- 0 or 1 root link prefix: prefix to be prepended to links with Uri
reference starting with a slash
- 1 - n target formats: the file- extensions represing the different
formats to be produced, the extensions are added to the generated files
where the file would not otherwise end with the extension.
|
public javax.ws.rs.core.Response download(String baseUri, String targetUri, String rootLinkPrefix, List<String> formatExtensions) throws IOException
IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.