Thomas Vachuska | a026be7 | 2015-12-07 16:00:37 -0800 | [diff] [blame] | 1 | /* |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2015-present Open Networking Laboratory |
Thomas Vachuska | a026be7 | 2015-12-07 16:00:37 -0800 | [diff] [blame] | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package org.onosproject.rest.resources; |
| 18 | |
| 19 | import org.onlab.rest.AbstractWebApplication; |
Jonathan Hart | bc7a8bf | 2016-03-26 20:37:20 -0700 | [diff] [blame^] | 20 | import org.onosproject.rest.exceptions.InvalidConfigExceptionMapper; |
Thomas Vachuska | a026be7 | 2015-12-07 16:00:37 -0800 | [diff] [blame] | 21 | |
| 22 | import java.util.Set; |
| 23 | |
| 24 | /** |
| 25 | * Core REST APIs web application. |
| 26 | */ |
| 27 | public class CoreWebApplication extends AbstractWebApplication { |
| 28 | |
| 29 | @Override |
| 30 | public Set<Class<?>> getClasses() { |
| 31 | return getClasses(ApiDocResource.class, |
Jian Li | 5c41123 | 2015-12-16 15:29:16 -0800 | [diff] [blame] | 32 | ApplicationsWebResource.class, |
| 33 | ComponentConfigWebResource.class, |
| 34 | NetworkConfigWebResource.class, |
| 35 | ClusterWebResource.class, |
| 36 | DevicesWebResource.class, |
| 37 | LinksWebResource.class, |
| 38 | HostsWebResource.class, |
| 39 | IntentsWebResource.class, |
| 40 | FlowsWebResource.class, |
| 41 | GroupsWebResource.class, |
| 42 | MetersWebResource.class, |
| 43 | TopologyWebResource.class, |
Jian Li | 5c41123 | 2015-12-16 15:29:16 -0800 | [diff] [blame] | 44 | PathsWebResource.class, |
| 45 | StatisticsWebResource.class, |
Jian Li | e9ac2c5 | 2016-01-13 17:42:05 -0800 | [diff] [blame] | 46 | MetricsWebResource.class, |
Jonathan Hart | 07eb041 | 2016-02-08 16:42:29 -0800 | [diff] [blame] | 47 | FlowObjectiveWebResource.class, |
Brian Stanke | b9170d9 | 2016-02-19 14:18:42 -0500 | [diff] [blame] | 48 | MulticastRouteWebResource.class, |
Jian Li | 0c45180 | 2016-02-24 22:39:25 +0900 | [diff] [blame] | 49 | DeviceKeyWebResource.class, |
Claudine Chiu | fb8b816 | 2016-04-01 23:50:51 +0000 | [diff] [blame] | 50 | RegionsWebResource.class, |
| 51 | TenantWebResource.class, |
Jian Li | f96d41f | 2016-05-03 09:49:12 -0700 | [diff] [blame] | 52 | VirtualNetworkWebResource.class, |
Jonathan Hart | bc7a8bf | 2016-03-26 20:37:20 -0700 | [diff] [blame^] | 53 | MastershipWebResource.class, |
| 54 | InvalidConfigExceptionMapper.class |
Thomas Vachuska | a026be7 | 2015-12-07 16:00:37 -0800 | [diff] [blame] | 55 | ); |
| 56 | } |
Jonathan Hart | 07eb041 | 2016-02-08 16:42:29 -0800 | [diff] [blame] | 57 | } |