Debian Codegraph @

samples/jersey-cdi/README.html

raw
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <!--
3
4 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
5
6 Copyright (c) 2010-2011 Oracle and/or its affiliates. All rights reserved.
7
8 The contents of this file are subject to the terms of either the GNU
9 General Public License Version 2 only ("GPL") or the Common Development
10 and Distribution License("CDDL") (collectively, the "License"). You
11 may not use this file except in compliance with the License. You can
12 obtain a copy of the License at
13 http://glassfish.java.net/public/CDDL+GPL_1_1.html
14 or packager/legal/LICENSE.txt. See the License for the specific
15 language governing permissions and limitations under the License.
16
17 When distributing the software, include this License Header Notice in each
18 file and include the License file at packager/legal/LICENSE.txt.
19
20 GPL Classpath Exception:
21 Oracle designates this particular file as subject to the "Classpath"
22 exception as provided by Oracle in the GPL Version 2 section of the License
23 file that accompanied this code.
24
25 Modifications:
26 If applicable, add the following below the License Header, with the fields
27 enclosed by brackets [] replaced by your own identifying information:
28 "Portions Copyright [year] [name of copyright owner]"
29
30 Contributor(s):
31 If you wish your version of this file to be governed by only the CDDL or
32 only the GPL Version 2, indicate your decision by adding "[Contributor]
33 elects to include this software in this distribution under the [CDDL or GPL
34 Version 2] license." If you don't indicate a single choice of license, a
35 recipient has the option to distribute your version of this file under
36 either the CDDL, the GPL Version 2 or to extend the choice of license to
37 its licensees as provided above. However, if you add GPL Version 2 code
38 and therefore, elected the GPL Version 2 license, then the option applies
39 only if the new code is made subject to such option by the copyright
40 holder.
41
42 -->
43 <html><head><title>JCDI Beans WebApp Sample</title></head>
44
45
46 <body>
47 <h1>Jersey CDI Sample</h1>
48
49 <p>This example demonstrates how to develop RESTful web service with
50 JCDI managed beans and a Servlet 3.0 Web container.</p>
51
52 <h2>Running the Example</h2>
53
54 <p>This example currently works only with a standalone GlassFish 3.1.x instance.
55 The easiest way to get the application running is to use the GlassFish Update Center client,
56 install "Jersey examples and documentation" IPS module from there
57 and follow instructions at the module README file in order to deploy the example.
58 If you have already installed from the Update Center, the module readme file should be
59 accessible <a href="../../README.html">here</a>
60
61 <p>After you successfully deploy the application, visit the following URLs:</p>
62 <blockquote>
63 <table border="1">
64 <tr>
65 <th>Description</th>
66 <th>URL</th>
67 <th>Expected Results</th>
68 </tr>
69 <tr>
70 <td>A managed bean with no use of injection whatsoever</td>
71 <td><code><a href="http://localhost:8080/jersey-cdi/helloworld">http://localhost:8080/jersey-cdi/helloworld</a></code></td>
72 <td><code>Hello World</code></td>
73 </tr>
74 <tr>
75 <td>Shows injection of context objects into the fields of a managed bean.</td>
76 <td><code><a href="http://localhost:8080/jersey-cdi/simple">http://localhost:8080/jersey-cdi/simple</a></code></td>
77 <td><code>OK GET http://localhost:8080/jersey-cdi/simple</code></td>
78 </tr>
79 <tr>
80 <td>Shows injection of context objects and path parameters into the fields of a managed bean.</td>
81 <td><code><a href="http://localhost:8080/jersey-cdi/other/c/d">http://localhost:8080/jersey-cdi/other/c/d</a></code></td>
82 <td><code>OTHER c d</code></td>
83 </tr>
84 <tr>
85 <td>Shows constructor injection of a path parameter in a managed bean.</td>
86 <td><code><a href="http://localhost:8080/jersey-cdi/echoconstructor/a">http://localhost:8080/jersey-cdi/echoconstructor/a</a></code></td>
87 <td><code>ECHO a</code></td>
88 </tr>
89 <tr>
90 <td>Shows injection of path and query parameters into the fields of a managed bean.</td>
91 <td><code><a href="http://localhost:8080/jersey-cdi/echofield/b">http://localhost:8080/jersey-cdi/echofield/b</a></code></td>
92 <td><code>ECHO null b</code></td>
93 </tr>
94 <tr>
95 <td>A managed bean that uses (but does not inject) a path parameter.</td>
96 <td><code><a href="http://localhost:8080/jersey-cdi/echo/a">http://localhost:8080/jersey-cdi/echo/a</a></code></td>
97 <td><code>ECHO a</code></td>
98 </tr>
99 <tr>
100 <td>Shows injection of context objects into the fields of a EJB Stateless Session bean.</td>
101 <td><code><a href="http://localhost:8080/jersey-cdi/ejb/stateless">http://localhost:8080/jersey-cdi/ejb/stateless</a></code></td>
102 <td><code>1</code></td>
103 </tr>
104 <tr>
105 <td>Shows injection of query parameters into the fields of a managed bean.</td>
106 <td><code><a href="http://localhost:8080/jersey-cdi/jcdibean/per-request">http://localhost:8080/jersey-cdi/jcdibean/per-request</a></code></td>
107 <td><code>null1</code></td>
108 </tr>
109 <tr>
110 <td>Shows injection of context objects into the fields of a managed bean.</td>
111 <td><code><a href="http://localhost:8080/jersey-cdi/jcdibean/singleton">http://localhost:8080/jersey-cdi/jcdibean/singleton</a></code></td>
112 <td><code>1</code></td>
113 </tr>
114 <tr>
115 <td>Shows injection of context objects and query parameters into the fields of a managed bean.</td>
116 <td><code><a href="http://localhost:8080/jersey-cdi/jcdibean/dependent/per-request">http://localhost:8080/jersey-cdi/jcdibean/dependent/per-request</a></code></td>
117 <td><code>null1</code></td>
118 </tr><tr>
119 <td>Shows injection of context objects into the fields of a managed bean.</td>
120 <td><code><a href="http://localhost:8080/jersey-cdi/jcdibean/dependent/singleton">http://localhost:8080/jersey-cdi/jcdibean/dependent/singleton</a></code></td>
121 <td><code>1</code></td>
122 </tr>
123 </table>
124 </blockquote>
125 </body>
126 </html>