File tree Expand file tree Collapse file tree 4 files changed +8
-12
lines changed
MVC1.0-samples/MVC-TiposRetornos/src/main Expand file tree Collapse file tree 4 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 3838 */
3939@ ApplicationPath ("app" )
4040public class APP extends Application {
41-
42- /* (non-Javadoc)
43- * @see javax.ws.rs.core.Application#getProperties()
44- */
41+
4542 @ Override
4643 public Map <String , Object > getProperties () {
47- Map <String ,Object > ma = new HashMap <>();
48- ma .put (Properties .DEFAULT_VIEW_FILE_EXTENSION , "jsp" );
49- return ma ;
50-
44+ Map <String ,Object > defaultViewFile = new HashMap <>();
45+ defaultViewFile .put (Properties .DEFAULT_VIEW_FILE_EXTENSION , "jsp" );
46+ return defaultViewFile ;
5147 }
5248}
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ public Response getResponse() {
6969@ GET
7070@ Path ("ViewAble" )
7171public Viewable getViewAble () {
72- this .models .put ("retorno" , "Retorno do Tipo Viewable,especifico da RI OZARK " );
72+ this .models .put ("retorno" , "Retorno do Tipo Viewable,especifico da RI Krazo " );
7373return new Viewable ("retorno" );
7474}
7575}
Original file line number Diff line number Diff line change 44<html >
55<head >
66<meta http-equiv =" Content-Type" content =" text/html; charset=UTF-8" >
7- <title >MVC- Tipo de Retornos</title >
7+ <title >MVC- Tipos de Retornos</title >
88</head >
99<body >
10- Parabéns, chegou aqui usando ${ retorno } ! .
10+ < h1 > Parabéns, chegou aqui usando ${ retorno } ! .</ h1 >
1111</body >
1212</html >
Original file line number Diff line number Diff line change 1010<a href =" app/retornos/void" >Retorno com Void - @View</a > <br >
1111<a href =" app/retornos/String" >Retorno com String</a > <br >
1212<a href =" app/retornos/Response" >Retorno com Response - JAX-RS</a > <br >
13- <a href =" app/retornos/ViewAble" >Retorno com Viewable - Ozark -RI</a >
13+ <a href =" app/retornos/ViewAble" >Retorno com Viewable - Krazo -RI</a >
1414</body >
1515</html >
You can’t perform that action at this time.
0 commit comments