-
Notifications
You must be signed in to change notification settings - Fork 13
/
RouteTypeDictionary.java
46 lines (37 loc) · 1.14 KB
/
RouteTypeDictionary.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package org.eclipse.store.storage.restservice.sparkjava.types;
/*-
* #%L
* EclipseStore Storage REST Service Sparkjava
* %%
* Copyright (C) 2023 MicroStream Software
* %%
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
* #L%
*/
import org.eclipse.store.storage.restadapter.types.StorageRestAdapterTypeDictionary;
import spark.Request;
import spark.Response;
public class RouteTypeDictionary extends RouteBase<StorageRestAdapterTypeDictionary>
{
///////////////////////////////////////////////////////////////////////////
// constructors //
/////////////////
public RouteTypeDictionary(final StorageRestAdapterTypeDictionary apiAdapter)
{
super(apiAdapter);
}
///////////////////////////////////////////////////////////////////////////
// methods //
////////////
@Override
public String handle(final Request request, final Response response)
{
final String string = this.apiAdapter.getTypeDictionary();
response.type("application/text");
return string;
}
}