Endpoint for serving Ceylon modules from repositories.
By default this will serve modules obtained from a standard
RepositoryManager
on the
given root path. Meaning that when the root path is
/modules
a request for
/modules/ceylon/math/2.0/ceylon.math-2.0.js
will look
up the ceylon.math/2.0
module on the local filesystem
or will download it from the Herd if necessary and then
send its JS file to the client as a response.
Usage:
shared void run() { value extraRepo = Collections.singletonList("/custom/path/to/modules"); value manager = CeylonUtils .repoManager() .extraUserRepos(extraRepo) .buildManager(); value server = newServer { RepositoryEndpoint { root = "/modules"; repoManager = myRepoManager; } }; }
no subtypes hierarchy
Initializer |
RepositoryEndpoint(String root, RepositoryManager repoManager = ...) Parameters:
|
Inherited Attributes |
Attributes inherited from: EndpointBase |
Attributes inherited from: HttpEndpoint |
Attributes inherited from: Object |
Inherited Methods |
Methods inherited from: AsynchronousEndpoint |
Methods inherited from: Object |