1
- package io .reactivex .lab .edge .routes ;
1
+ package io .reactivex .lab .gateway .routes ;
2
2
3
3
import io .netty .buffer .ByteBuf ;
4
- import io .reactivex .lab .edge . EdgeServer ;
5
- import io .reactivex .lab .edge .clients .BookmarkCommand ;
6
- import io .reactivex .lab .edge .clients .BookmarksCommand . Bookmark ;
7
- import io .reactivex .lab .edge .clients .PersonalizedCatalogCommand ;
8
- import io .reactivex .lab .edge .clients .PersonalizedCatalogCommand . Video ;
9
- import io .reactivex .lab .edge .clients .RatingsCommand ;
10
- import io .reactivex .lab .edge .clients .RatingsCommand . Rating ;
11
- import io .reactivex .lab .edge .clients .SocialCommand ;
12
- import io .reactivex .lab .edge .clients .UserCommand ;
13
- import io .reactivex .lab .edge .clients .VideoMetadataCommand ;
14
- import io .reactivex .lab .edge .clients .VideoMetadataCommand .VideoMetadata ;
15
- import io .reactivex .lab .edge .common .SimpleJson ;
4
+ import io .reactivex .lab .gateway . StartGatewayServer ;
5
+ import io .reactivex .lab .gateway .clients .BookmarkCommand ;
6
+ import io .reactivex .lab .gateway .clients .PersonalizedCatalogCommand ;
7
+ import io .reactivex .lab .gateway .clients .RatingsCommand ;
8
+ import io .reactivex .lab .gateway .clients .SocialCommand ;
9
+ import io .reactivex .lab .gateway .clients .UserCommand ;
10
+ import io .reactivex .lab .gateway .clients .VideoMetadataCommand ;
11
+ import io .reactivex .lab .gateway .clients .BookmarksCommand . Bookmark ;
12
+ import io .reactivex .lab .gateway .clients .PersonalizedCatalogCommand . Video ;
13
+ import io .reactivex .lab .gateway .clients .RatingsCommand . Rating ;
14
+ import io .reactivex .lab .gateway .clients .VideoMetadataCommand .VideoMetadata ;
15
+ import io .reactivex .lab .gateway .common .SimpleJson ;
16
16
import io .reactivex .netty .protocol .http .server .HttpServerRequest ;
17
17
import io .reactivex .netty .protocol .http .server .HttpServerResponse ;
18
18
@@ -37,7 +37,7 @@ public static RouteForDeviceHome getInstance() {
37
37
public Observable <Void > handle (HttpServerRequest <ByteBuf > request , HttpServerResponse <ByteBuf > response ) {
38
38
List <String > userId = request .getQueryParameters ().get ("userId" );
39
39
if (userId == null || userId .size () != 1 ) {
40
- return EdgeServer .writeError (request , response , "A single 'userId' is required." );
40
+ return StartGatewayServer .writeError (request , response , "A single 'userId' is required." );
41
41
}
42
42
43
43
return new UserCommand (userId ).observe ().flatMap (user -> {
0 commit comments