File tree Expand file tree Collapse file tree 10 files changed +22
-22
lines changed
java/org/javaee8/jaxrs/sseproducer
test/java/org/javaee8/jaxrs/sseproducer Expand file tree Collapse file tree 10 files changed +22
-22
lines changed Original file line number Diff line number Diff line change
1
+ # Java EE 8 Samples: JAX-RS 2.1#
2
+
3
+ The [ JSR 370] ( https://www.jcp.org/en/jsr/detail?id=370 ) specifies the JavaTM API for RESTful Web Services.
4
+
5
+ ## Samples ##
6
+
7
+ - producer
Original file line number Diff line number Diff line change 7
7
<version >1.0-SNAPSHOT</version >
8
8
</parent >
9
9
10
- <artifactId >sse </artifactId >
10
+ <artifactId >jaxrs </artifactId >
11
11
<packaging >pom</packaging >
12
12
13
- <name >Java EE 8 Samples: Server Sent Events </name >
13
+ <name >Java EE 8 Samples: JAX-RS </name >
14
14
15
15
<modules >
16
- <module >producer</module >
16
+ <module >sse- producer</module >
17
17
</modules >
18
18
19
19
<dependencies >
Original file line number Diff line number Diff line change 3
3
4
4
<parent >
5
5
<groupId >org.javaee8</groupId >
6
- <artifactId >sse </artifactId >
6
+ <artifactId >jaxrs </artifactId >
7
7
<version >1.0-SNAPSHOT</version >
8
8
</parent >
9
9
10
10
<artifactId >sse-producer</artifactId >
11
11
<packaging >war</packaging >
12
- <name >Java EE 8 Samples: Server Sent Events [Producer]</name >
13
- <dependencies >
14
- </dependencies >
12
+ <name >Java EE 8 Samples: JAX-RS - SSE Producer</name >
15
13
</project >
Original file line number Diff line number Diff line change 1
- package org .javaee8 .sse .data ;
1
+ package org .javaee8 .jaxrs . sseproducer .data ;
2
2
3
3
import java .util .Date ;
4
4
import java .util .UUID ;
Original file line number Diff line number Diff line change 1
- package org .javaee8 .sse .producer ;
1
+ package org .javaee8 .jaxrs . sseproducer .producer ;
2
2
3
3
import javax .annotation .PostConstruct ;
4
4
import javax .json .bind .Jsonb ;
11
11
import javax .ws .rs .sse .Sse ;
12
12
import javax .ws .rs .sse .SseBroadcaster ;
13
13
import javax .ws .rs .sse .SseEventSink ;
14
- import org .javaee8 .sse .data .EventData ;
14
+
15
+ import org .javaee8 .jaxrs .sseproducer .data .EventData ;
15
16
16
17
/**
17
18
* @author Daniel Contreras
Original file line number Diff line number Diff line change 1
- package org .javaee8 .sse .rest ;
1
+ package org .javaee8 .jaxrs . sseproducer .rest ;
2
2
3
3
import javax .ws .rs .ApplicationPath ;
4
4
import javax .ws .rs .core .Application ;
File renamed without changes.
Original file line number Diff line number Diff line change 1
- package org .javaee8 .sse . producer ;
1
+ package org .javaee8 .jaxrs . sseproducer ;
2
2
3
3
import static org .jboss .shrinkwrap .api .ShrinkWrap .create ;
4
4
9
9
import javax .json .bind .Jsonb ;
10
10
import javax .json .bind .JsonbBuilder ;
11
11
12
+ import org .javaee8 .jaxrs .sseproducer .data .EventData ;
13
+ import org .javaee8 .jaxrs .sseproducer .producer .SseResource ;
14
+ import org .javaee8 .jaxrs .sseproducer .rest .RestApplication ;
12
15
import org .jboss .arquillian .container .test .api .Deployment ;
13
16
import org .jboss .arquillian .container .test .api .RunAsClient ;
14
17
import org .jboss .arquillian .junit .Arquillian ;
24
27
import javax .ws .rs .client .WebTarget ;
25
28
import javax .ws .rs .sse .SseEventSource ;
26
29
import static org .hamcrest .CoreMatchers .instanceOf ;
27
- import org .javaee8 .sse .data .EventData ;
28
- import org .javaee8 .sse .rest .RestApplication ;
29
30
import static org .junit .Assert .assertNotNull ;
30
31
import static org .junit .Assert .assertThat ;
31
32
import static org .junit .Assert .assertTrue ;
Original file line number Diff line number Diff line change 101
101
<modules >
102
102
<module >test-utils</module >
103
103
<module >servlet</module >
104
- <module >sse </module >
104
+ <module >jaxrs </module >
105
105
<module >security</module >
106
106
<module >jsf</module >
107
107
<module >cdi</module >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments