Ray Milkey | 2b21714 | 2014-12-15 09:24:24 -0800 | [diff] [blame] | 1 | /* |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2015-present Open Networking Laboratory |
Ray Milkey | 2b21714 | 2014-12-15 09:24:24 -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 | */ |
Jonathan Hart | 9bb32ab | 2015-05-05 18:17:31 -0700 | [diff] [blame] | 16 | package org.onosproject.rest.resources; |
Ray Milkey | 2b21714 | 2014-12-15 09:24:24 -0800 | [diff] [blame] | 17 | |
Author Name | e252a00 | 2016-09-26 22:42:24 +0530 | [diff] [blame] | 18 | import com.fasterxml.jackson.databind.node.ArrayNode; |
Jian Li | c2a542b | 2016-05-10 11:48:19 -0700 | [diff] [blame] | 19 | import com.fasterxml.jackson.databind.node.ObjectNode; |
Ayaka Koshibe | c06c89b | 2015-02-10 19:25:41 -0800 | [diff] [blame] | 20 | import org.onosproject.core.ApplicationId; |
| 21 | import org.onosproject.core.CoreService; |
Author Name | e252a00 | 2016-09-26 22:42:24 +0530 | [diff] [blame] | 22 | import org.onosproject.net.flow.FlowEntry; |
| 23 | import org.onosproject.net.flow.FlowRuleService; |
Chiara Contoli | a8f69ff | 2016-07-28 01:06:07 +0900 | [diff] [blame] | 24 | import org.onosproject.net.intent.SinglePointToMultiPointIntent; |
| 25 | import org.onosproject.net.intent.PointToPointIntent; |
Ray Milkey | c95bb9d | 2015-01-06 10:28:24 -0800 | [diff] [blame] | 26 | import org.onosproject.net.intent.HostToHostIntent; |
Ray Milkey | 2b21714 | 2014-12-15 09:24:24 -0800 | [diff] [blame] | 27 | import org.onosproject.net.intent.Intent; |
Chiara Contoli | a8f69ff | 2016-07-28 01:06:07 +0900 | [diff] [blame] | 28 | import org.onosproject.net.intent.IntentState; |
Ray Milkey | 67c2272 | 2015-03-09 15:48:57 -0700 | [diff] [blame] | 29 | import org.onosproject.net.intent.IntentEvent; |
| 30 | import org.onosproject.net.intent.IntentListener; |
Ray Milkey | 2b21714 | 2014-12-15 09:24:24 -0800 | [diff] [blame] | 31 | import org.onosproject.net.intent.IntentService; |
Ray Milkey | f9af43c | 2015-02-09 16:45:48 -0800 | [diff] [blame] | 32 | import org.onosproject.net.intent.Key; |
Author Name | e252a00 | 2016-09-26 22:42:24 +0530 | [diff] [blame] | 33 | import org.onosproject.net.intent.util.IntentFilter; |
Jonathan Hart | 9bb32ab | 2015-05-05 18:17:31 -0700 | [diff] [blame] | 34 | import org.onosproject.rest.AbstractWebResource; |
Ray Milkey | 67c2272 | 2015-03-09 15:48:57 -0700 | [diff] [blame] | 35 | import org.slf4j.Logger; |
Ray Milkey | 2b21714 | 2014-12-15 09:24:24 -0800 | [diff] [blame] | 36 | |
Jian Li | c2a542b | 2016-05-10 11:48:19 -0700 | [diff] [blame] | 37 | import javax.ws.rs.Consumes; |
| 38 | import javax.ws.rs.DELETE; |
| 39 | import javax.ws.rs.GET; |
| 40 | import javax.ws.rs.POST; |
| 41 | import javax.ws.rs.Path; |
| 42 | import javax.ws.rs.PathParam; |
| 43 | import javax.ws.rs.Produces; |
| 44 | import javax.ws.rs.core.Context; |
| 45 | import javax.ws.rs.core.MediaType; |
| 46 | import javax.ws.rs.core.Response; |
| 47 | import javax.ws.rs.core.UriBuilder; |
| 48 | import javax.ws.rs.core.UriInfo; |
| 49 | import java.io.IOException; |
| 50 | import java.io.InputStream; |
Author Name | e252a00 | 2016-09-26 22:42:24 +0530 | [diff] [blame] | 51 | import java.util.List; |
Jian Li | c2a542b | 2016-05-10 11:48:19 -0700 | [diff] [blame] | 52 | import java.util.Objects; |
| 53 | import java.util.concurrent.CountDownLatch; |
| 54 | import java.util.concurrent.TimeUnit; |
Ray Milkey | 2b21714 | 2014-12-15 09:24:24 -0800 | [diff] [blame] | 55 | |
Thomas Vachuska | f8cac48 | 2015-04-08 19:40:12 -0700 | [diff] [blame] | 56 | import static org.onlab.util.Tools.nullIsNotFound; |
Ray Milkey | 67c2272 | 2015-03-09 15:48:57 -0700 | [diff] [blame] | 57 | import static org.onosproject.net.intent.IntentState.FAILED; |
| 58 | import static org.onosproject.net.intent.IntentState.WITHDRAWN; |
| 59 | import static org.slf4j.LoggerFactory.getLogger; |
| 60 | |
Ray Milkey | 2b21714 | 2014-12-15 09:24:24 -0800 | [diff] [blame] | 61 | /** |
Thomas Vachuska | 0fa2aa1 | 2015-08-18 12:53:04 -0700 | [diff] [blame] | 62 | * Query, submit and withdraw network intents. |
Ray Milkey | 2b21714 | 2014-12-15 09:24:24 -0800 | [diff] [blame] | 63 | */ |
Ray Milkey | 2b21714 | 2014-12-15 09:24:24 -0800 | [diff] [blame] | 64 | @Path("intents") |
| 65 | public class IntentsWebResource extends AbstractWebResource { |
Ray Milkey | 303e671 | 2015-07-17 14:06:21 -0700 | [diff] [blame] | 66 | |
Ray Milkey | 67c2272 | 2015-03-09 15:48:57 -0700 | [diff] [blame] | 67 | private static final Logger log = getLogger(IntentsWebResource.class); |
| 68 | private static final int WITHDRAW_EVENT_TIMEOUT_SECONDS = 5; |
| 69 | |
Kavitha Alagesan | e6840cf | 2016-10-21 10:58:05 +0530 | [diff] [blame] | 70 | private static final String APP_ID_NOT_FOUND = "Application Id not found"; |
Author Name | e252a00 | 2016-09-26 22:42:24 +0530 | [diff] [blame] | 71 | private static final String HOST_TO_HOST_INTENT = "HostToHostIntent"; |
| 72 | private static final String POINT_TO_POINT_INTENT = "PointToPointIntent"; |
| 73 | private static final String SINGLE_TO_MULTI_POINT_INTENT = |
| 74 | "SinglePointToMultiPointIntent"; |
| 75 | private static final String INTENT = "Intent"; |
| 76 | private static final String APP_ID = "appId"; |
| 77 | private static final String ID = "id"; |
| 78 | private static final String INTENT_PATHS = "paths"; |
| 79 | private static final String INTENT_TYPE = "type"; |
Jian Li | cc730a6 | 2016-05-10 16:36:16 -0700 | [diff] [blame] | 80 | private static final String INTENT_NOT_FOUND = "Intent is not found"; |
Ray Milkey | 2b21714 | 2014-12-15 09:24:24 -0800 | [diff] [blame] | 81 | |
Author Name | e252a00 | 2016-09-26 22:42:24 +0530 | [diff] [blame] | 82 | @Context |
| 83 | private UriInfo uriInfo; |
| 84 | |
Ray Milkey | 2b21714 | 2014-12-15 09:24:24 -0800 | [diff] [blame] | 85 | /** |
Jian Li | cc730a6 | 2016-05-10 16:36:16 -0700 | [diff] [blame] | 86 | * Gets all intents. |
Thomas Vachuska | 0fa2aa1 | 2015-08-18 12:53:04 -0700 | [diff] [blame] | 87 | * Returns array containing all the intents in the system. |
Jian Li | cc730a6 | 2016-05-10 16:36:16 -0700 | [diff] [blame] | 88 | * |
| 89 | * @return 200 OK with array of all the intents in the system |
Andrea Campanella | 10c4adc | 2015-12-03 15:27:54 -0800 | [diff] [blame] | 90 | * @onos.rsModel Intents |
Ray Milkey | 2b21714 | 2014-12-15 09:24:24 -0800 | [diff] [blame] | 91 | */ |
| 92 | @GET |
| 93 | @Produces(MediaType.APPLICATION_JSON) |
| 94 | public Response getIntents() { |
| 95 | final Iterable<Intent> intents = get(IntentService.class).getIntents(); |
| 96 | final ObjectNode root = encodeArray(Intent.class, "intents", intents); |
Ray Milkey | 3f02569 | 2015-01-26 11:15:41 -0800 | [diff] [blame] | 97 | return ok(root).build(); |
Ray Milkey | 2b21714 | 2014-12-15 09:24:24 -0800 | [diff] [blame] | 98 | } |
| 99 | |
| 100 | /** |
Jian Li | cc730a6 | 2016-05-10 16:36:16 -0700 | [diff] [blame] | 101 | * Gets intent by application and key. |
Thomas Vachuska | 0fa2aa1 | 2015-08-18 12:53:04 -0700 | [diff] [blame] | 102 | * Returns details of the specified intent. |
Jian Li | cc730a6 | 2016-05-10 16:36:16 -0700 | [diff] [blame] | 103 | * |
Thomas Vachuska | 0fa2aa1 | 2015-08-18 12:53:04 -0700 | [diff] [blame] | 104 | * @param appId application identifier |
| 105 | * @param key intent key |
Jian Li | cc730a6 | 2016-05-10 16:36:16 -0700 | [diff] [blame] | 106 | * @return 200 OK with intent data |
| 107 | * @onos.rsModel Intents |
Ray Milkey | 2b21714 | 2014-12-15 09:24:24 -0800 | [diff] [blame] | 108 | */ |
| 109 | @GET |
| 110 | @Produces(MediaType.APPLICATION_JSON) |
Ayaka Koshibe | c06c89b | 2015-02-10 19:25:41 -0800 | [diff] [blame] | 111 | @Path("{appId}/{key}") |
Ray Milkey | f7cb401 | 2015-07-20 13:01:07 -0700 | [diff] [blame] | 112 | public Response getIntentById(@PathParam("appId") String appId, |
Ayaka Koshibe | c06c89b | 2015-02-10 19:25:41 -0800 | [diff] [blame] | 113 | @PathParam("key") String key) { |
| 114 | final ApplicationId app = get(CoreService.class).getAppId(appId); |
Kavitha Alagesan | e6840cf | 2016-10-21 10:58:05 +0530 | [diff] [blame] | 115 | nullIsNotFound(app, APP_ID_NOT_FOUND); |
Ayaka Koshibe | c06c89b | 2015-02-10 19:25:41 -0800 | [diff] [blame] | 116 | Intent intent = get(IntentService.class).getIntent(Key.of(key, app)); |
| 117 | if (intent == null) { |
Ray Milkey | f7cb401 | 2015-07-20 13:01:07 -0700 | [diff] [blame] | 118 | long numericalKey = Long.decode(key); |
| 119 | intent = get(IntentService.class).getIntent(Key.of(numericalKey, app)); |
Ayaka Koshibe | c06c89b | 2015-02-10 19:25:41 -0800 | [diff] [blame] | 120 | } |
| 121 | nullIsNotFound(intent, INTENT_NOT_FOUND); |
| 122 | |
Ray Milkey | c95bb9d | 2015-01-06 10:28:24 -0800 | [diff] [blame] | 123 | final ObjectNode root; |
| 124 | if (intent instanceof HostToHostIntent) { |
| 125 | root = codec(HostToHostIntent.class).encode((HostToHostIntent) intent, this); |
| 126 | } else if (intent instanceof PointToPointIntent) { |
| 127 | root = codec(PointToPointIntent.class).encode((PointToPointIntent) intent, this); |
Chiara Contoli | a8f69ff | 2016-07-28 01:06:07 +0900 | [diff] [blame] | 128 | } else if (intent instanceof SinglePointToMultiPointIntent) { |
| 129 | root = codec(SinglePointToMultiPointIntent.class).encode((SinglePointToMultiPointIntent) intent, this); |
Ray Milkey | c95bb9d | 2015-01-06 10:28:24 -0800 | [diff] [blame] | 130 | } else { |
| 131 | root = codec(Intent.class).encode(intent, this); |
| 132 | } |
Ray Milkey | 3f02569 | 2015-01-26 11:15:41 -0800 | [diff] [blame] | 133 | return ok(root).build(); |
Ray Milkey | 2b21714 | 2014-12-15 09:24:24 -0800 | [diff] [blame] | 134 | } |
Ray Milkey | 67c2272 | 2015-03-09 15:48:57 -0700 | [diff] [blame] | 135 | |
Jian Li | cc730a6 | 2016-05-10 16:36:16 -0700 | [diff] [blame] | 136 | /** |
Author Name | e252a00 | 2016-09-26 22:42:24 +0530 | [diff] [blame] | 137 | * Gets all related flow entries created by a particular intent. |
| 138 | * Returns all flow entries of the specified intent. |
| 139 | * |
| 140 | * @param appId application identifier |
| 141 | * @param key intent key |
| 142 | * @return 200 OK with intent data |
| 143 | * @onos.rsModel Relatedflows |
| 144 | */ |
| 145 | @GET |
| 146 | @Produces(MediaType.APPLICATION_JSON) |
| 147 | @Path("relatedflows/{appId}/{key}") |
| 148 | public Response getIntentFlowsById(@PathParam("appId") String appId, |
| 149 | @PathParam("key") String key) { |
| 150 | ApplicationId applicationId = get(CoreService.class).getAppId(appId); |
| 151 | nullIsNotFound(applicationId, APP_ID_NOT_FOUND); |
| 152 | IntentService intentService = get(IntentService.class); |
| 153 | FlowRuleService flowService = get(FlowRuleService.class); |
| 154 | |
| 155 | Intent intent = intentService.getIntent(Key.of(key, applicationId)); |
| 156 | if (intent == null) { |
| 157 | long numericalKey = Long.decode(key); |
| 158 | intent = intentService.getIntent( |
| 159 | Key.of(numericalKey, applicationId)); |
| 160 | } |
| 161 | nullIsNotFound(intent, INTENT_NOT_FOUND); |
| 162 | |
| 163 | ObjectNode root = mapper().createObjectNode(); |
| 164 | root.put(APP_ID, appId); |
| 165 | root.put(ID, key); |
| 166 | |
| 167 | IntentFilter intentFilter = new IntentFilter(intentService, flowService); |
| 168 | |
| 169 | List<Intent> installables = |
| 170 | intentService.getInstallableIntents(intent.key()); |
| 171 | |
| 172 | if (intent instanceof HostToHostIntent) { |
| 173 | root.put(INTENT_TYPE, HOST_TO_HOST_INTENT); |
| 174 | } else if (intent instanceof PointToPointIntent) { |
| 175 | root.put(INTENT_TYPE, POINT_TO_POINT_INTENT); |
| 176 | } else if (intent instanceof SinglePointToMultiPointIntent) { |
| 177 | root.put(INTENT_TYPE, SINGLE_TO_MULTI_POINT_INTENT); |
| 178 | } else { |
| 179 | root.put(INTENT_TYPE, INTENT); |
| 180 | } |
| 181 | |
| 182 | ArrayNode pathsNode = root.putArray(INTENT_PATHS); |
| 183 | |
| 184 | for (List<FlowEntry> flowEntries : |
| 185 | intentFilter.readIntentFlows(installables)) { |
| 186 | ArrayNode flowNode = pathsNode.addArray(); |
| 187 | |
| 188 | for (FlowEntry entry : flowEntries) { |
| 189 | flowNode.add(codec(FlowEntry.class).encode(entry, this)); |
| 190 | } |
| 191 | } |
| 192 | return ok(root).build(); |
| 193 | } |
| 194 | |
| 195 | /** |
Jian Li | cc730a6 | 2016-05-10 16:36:16 -0700 | [diff] [blame] | 196 | * Internal listener for tracking the intent deletion events. |
| 197 | */ |
| 198 | private class DeleteListener implements IntentListener { |
Ray Milkey | 67c2272 | 2015-03-09 15:48:57 -0700 | [diff] [blame] | 199 | final Key key; |
| 200 | final CountDownLatch latch; |
| 201 | |
Jian Li | cc730a6 | 2016-05-10 16:36:16 -0700 | [diff] [blame] | 202 | /** |
| 203 | * Default constructor. |
| 204 | * |
| 205 | * @param key key |
| 206 | * @param latch count down latch |
| 207 | */ |
Ray Milkey | 67c2272 | 2015-03-09 15:48:57 -0700 | [diff] [blame] | 208 | DeleteListener(Key key, CountDownLatch latch) { |
| 209 | this.key = key; |
| 210 | this.latch = latch; |
| 211 | } |
| 212 | |
| 213 | @Override |
| 214 | public void event(IntentEvent event) { |
| 215 | if (Objects.equals(event.subject().key(), key) && |
Thomas Vachuska | 0fa2aa1 | 2015-08-18 12:53:04 -0700 | [diff] [blame] | 216 | (event.type() == IntentEvent.Type.WITHDRAWN || |
| 217 | event.type() == IntentEvent.Type.FAILED)) { |
Ray Milkey | 67c2272 | 2015-03-09 15:48:57 -0700 | [diff] [blame] | 218 | latch.countDown(); |
| 219 | } |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | /** |
Jian Li | cc730a6 | 2016-05-10 16:36:16 -0700 | [diff] [blame] | 224 | * Submits a new intent. |
Thomas Vachuska | 0fa2aa1 | 2015-08-18 12:53:04 -0700 | [diff] [blame] | 225 | * Creates and submits intent from the JSON request. |
Jian Li | cc730a6 | 2016-05-10 16:36:16 -0700 | [diff] [blame] | 226 | * |
Ray Milkey | b82c42b | 2015-06-30 09:42:20 -0700 | [diff] [blame] | 227 | * @param stream input JSON |
| 228 | * @return status of the request - CREATED if the JSON is correct, |
| 229 | * BAD_REQUEST if the JSON is invalid |
Jian Li | cc730a6 | 2016-05-10 16:36:16 -0700 | [diff] [blame] | 230 | * @onos.rsModel IntentHost |
Ray Milkey | b82c42b | 2015-06-30 09:42:20 -0700 | [diff] [blame] | 231 | */ |
| 232 | @POST |
| 233 | @Consumes(MediaType.APPLICATION_JSON) |
| 234 | @Produces(MediaType.APPLICATION_JSON) |
| 235 | public Response createIntent(InputStream stream) { |
Ray Milkey | b82c42b | 2015-06-30 09:42:20 -0700 | [diff] [blame] | 236 | try { |
| 237 | IntentService service = get(IntentService.class); |
| 238 | ObjectNode root = (ObjectNode) mapper().readTree(stream); |
| 239 | Intent intent = codec(Intent.class).decode(root, this); |
| 240 | service.submit(intent); |
Ray Milkey | 303e671 | 2015-07-17 14:06:21 -0700 | [diff] [blame] | 241 | UriBuilder locationBuilder = uriInfo.getBaseUriBuilder() |
| 242 | .path("intents") |
Ray Milkey | 8d07640 | 2015-08-31 15:43:18 -0700 | [diff] [blame] | 243 | .path(intent.appId().name()) |
Ray Milkey | 303e671 | 2015-07-17 14:06:21 -0700 | [diff] [blame] | 244 | .path(Long.toString(intent.id().fingerprint())); |
| 245 | return Response |
| 246 | .created(locationBuilder.build()) |
| 247 | .build(); |
| 248 | } catch (IOException ioe) { |
| 249 | throw new IllegalArgumentException(ioe); |
Ray Milkey | b82c42b | 2015-06-30 09:42:20 -0700 | [diff] [blame] | 250 | } |
Ray Milkey | b82c42b | 2015-06-30 09:42:20 -0700 | [diff] [blame] | 251 | } |
| 252 | |
Thomas Vachuska | 0fa2aa1 | 2015-08-18 12:53:04 -0700 | [diff] [blame] | 253 | /** |
Jian Li | cc730a6 | 2016-05-10 16:36:16 -0700 | [diff] [blame] | 254 | * Withdraws intent. |
Thomas Vachuska | 0fa2aa1 | 2015-08-18 12:53:04 -0700 | [diff] [blame] | 255 | * Withdraws the specified intent from the system. |
| 256 | * |
| 257 | * @param appId application identifier |
| 258 | * @param key intent key |
Jian Li | c2a542b | 2016-05-10 11:48:19 -0700 | [diff] [blame] | 259 | * @return 204 NO CONTENT |
Thomas Vachuska | 0fa2aa1 | 2015-08-18 12:53:04 -0700 | [diff] [blame] | 260 | */ |
| 261 | @DELETE |
| 262 | @Path("{appId}/{key}") |
Jian Li | c2a542b | 2016-05-10 11:48:19 -0700 | [diff] [blame] | 263 | public Response deleteIntentById(@PathParam("appId") String appId, |
Jian Li | cc730a6 | 2016-05-10 16:36:16 -0700 | [diff] [blame] | 264 | @PathParam("key") String key) { |
Thomas Vachuska | 0fa2aa1 | 2015-08-18 12:53:04 -0700 | [diff] [blame] | 265 | final ApplicationId app = get(CoreService.class).getAppId(appId); |
Kavitha Alagesan | e6840cf | 2016-10-21 10:58:05 +0530 | [diff] [blame] | 266 | nullIsNotFound(app, APP_ID_NOT_FOUND); |
Thomas Vachuska | 0fa2aa1 | 2015-08-18 12:53:04 -0700 | [diff] [blame] | 267 | Intent intent = get(IntentService.class).getIntent(Key.of(key, app)); |
| 268 | IntentService service = get(IntentService.class); |
| 269 | |
| 270 | if (intent == null) { |
| 271 | intent = service |
| 272 | .getIntent(Key.of(Long.decode(key), app)); |
| 273 | } |
| 274 | if (intent == null) { |
| 275 | // No such intent. REST standards recommend a positive status code |
| 276 | // in this case. |
Jian Li | c2a542b | 2016-05-10 11:48:19 -0700 | [diff] [blame] | 277 | return Response.noContent().build(); |
Thomas Vachuska | 0fa2aa1 | 2015-08-18 12:53:04 -0700 | [diff] [blame] | 278 | } |
| 279 | |
Thomas Vachuska | 0fa2aa1 | 2015-08-18 12:53:04 -0700 | [diff] [blame] | 280 | Key k = intent.key(); |
| 281 | |
| 282 | // set up latch and listener to track uninstall progress |
| 283 | CountDownLatch latch = new CountDownLatch(1); |
| 284 | |
| 285 | IntentListener listener = new DeleteListener(k, latch); |
| 286 | service.addListener(listener); |
| 287 | |
| 288 | try { |
| 289 | // request the withdraw |
| 290 | service.withdraw(intent); |
| 291 | |
| 292 | try { |
| 293 | latch.await(WITHDRAW_EVENT_TIMEOUT_SECONDS, TimeUnit.SECONDS); |
| 294 | } catch (InterruptedException e) { |
| 295 | log.info("REST Delete operation timed out waiting for intent {}", k); |
Yuta HIGUCHI | 4f8a377 | 2017-05-16 20:23:49 -0700 | [diff] [blame] | 296 | Thread.currentThread().interrupt(); |
Thomas Vachuska | 0fa2aa1 | 2015-08-18 12:53:04 -0700 | [diff] [blame] | 297 | } |
| 298 | // double check the state |
| 299 | IntentState state = service.getIntentState(k); |
| 300 | if (state == WITHDRAWN || state == FAILED) { |
| 301 | service.purge(intent); |
| 302 | } |
| 303 | |
| 304 | } finally { |
| 305 | // clean up the listener |
| 306 | service.removeListener(listener); |
| 307 | } |
Jian Li | c2a542b | 2016-05-10 11:48:19 -0700 | [diff] [blame] | 308 | return Response.noContent().build(); |
Thomas Vachuska | 0fa2aa1 | 2015-08-18 12:53:04 -0700 | [diff] [blame] | 309 | } |
Ray Milkey | 2b21714 | 2014-12-15 09:24:24 -0800 | [diff] [blame] | 310 | } |