You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
937 B
Java
35 lines
937 B
Java
package org.gcube.smartgears.extensions.resource;
|
|
|
|
import static org.gcube.smartgears.Constants.remote_management;
|
|
|
|
import org.gcube.smartgears.Constants;
|
|
import org.gcube.smartgears.extensions.ApiResource;
|
|
import org.gcube.smartgears.extensions.HttpController;
|
|
|
|
/**
|
|
* An {@link HttpController} for remote management of the application.
|
|
*
|
|
* @author Fabio Simeoni
|
|
*
|
|
*/
|
|
public class RemoteResource extends HttpController {
|
|
|
|
private static final String default_mapping = Constants.root_mapping+"/*";
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
/**
|
|
* Creates an instance with its {@link ApiResource}s.
|
|
*/
|
|
public RemoteResource() {
|
|
super(remote_management, default_mapping);
|
|
addResources(new FrontPageResource(), new ConfigurationResource(), new ProfileResource(),
|
|
new LifecycleResource(), new MetricsResource(), new HealthResource());
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return remote_management;
|
|
}
|
|
}
|