Package org.ctan.site.resources.mirrors
Class Mirrors3Resource
java.lang.Object
org.ctan.site.resources.mirrors.Mirrors3Resource
@Path("/3.0")
@Produces({"application/json","application/xml"})
public class Mirrors3Resource
extends Object
The class
Mirror3Resource
contains the controller for the
mirrors resource.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
The classMirrorTo
contains the transport object for the license resource in the licenses list. -
Constructor Summary
ConstructorsConstructorDescriptionMirrors3Resource
(@NonNull MirrorService service) This is the constructor for the classMirrors3Resource
. -
Method Summary
Modifier and TypeMethodDescriptionThe methodgetAllMirrors
provides means to retrieve a list of all mirror servers.
-
Constructor Details
-
Mirrors3Resource
This is the constructor for the classMirrors3Resource
.- Parameters:
service
- the underlying service
-
-
Method Details
-
getActiveMirrors
@GET @Path("/mirrors") @PermitAll @UnitOfWork("mirrors") public List<Mirrors3Resource.MirrorTo> getActiveMirrors()The methodgetAllMirrors
provides means to retrieve a list of all mirror servers.- Returns:
- a list of matching mirrors
-