File tree Expand file tree Collapse file tree 3 files changed +9
-147
lines changed
jaxrs/link/src/main/java/org Expand file tree Collapse file tree 3 files changed +9
-147
lines changed Original file line number Diff line number Diff line change 3737 * only if the new code is made subject to such option by the copyright
3838 * holder.
3939 */
40- package org .sample .link ;
40+ package org .javaee7 . jaxrs .link ;
4141
42- import java .util .Set ;
4342import javax .ws .rs .ApplicationPath ;
4443import javax .ws .rs .core .Application ;
4544
4847 */
4948@ ApplicationPath ("webresources" )
5049public class MyApplication extends Application {
51- @ Override
52- public Set <Class <?>> getClasses () {
53- Set <Class <?>> resources = new java .util .HashSet <>();
54- resources .add (MyResource .class );
55- return resources ;
56- }
50+ // @Override
51+ // public Set<Class<?>> getClasses() {
52+ // Set<Class<?>> resources = new java.util.HashSet<>();
53+ // resources.add(MyResource.class);
54+ // return resources;
55+ // }
5756}
Original file line number Diff line number Diff line change 3737 * only if the new code is made subject to such option by the copyright
3838 * holder.
3939 */
40- package org .sample .link ;
40+ package org .javaee7 . jaxrs .link ;
4141
4242import java .net .URI ;
4343import java .net .URISyntaxException ;
5252@ Path ("fruits" )
5353public class MyResource {
5454
55- private String [] response = {"apple" , "banana" , "mango" };
55+ private final String [] response = {"apple" , "banana" , "mango" };
5656
5757 @ GET
5858 public String getList () {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments