<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="$B#M#S(B $B#P%4%7%C%/(B" size="2"><span style="font-size:10pt;">
<div align="left" style="text-align:justify;">$B$O$8$a$^$7$F!"@h$[$I(BML$B$KEPO?$5$;$F$$$?$@$-$^$7$?!#(B</div>
<div align="left" style="text-align:justify;">Seasar$B=i?4<T$G$9!#(B</div>
<div align="left" style="text-align:justify;">$B$h$m$7$/$*4j$$$7$^$9!#(B</div>
<div align="left" style="text-align:justify;"><font face="Times New Roman" size="2"><span style="font-size:10.5pt;"> </span></font></div>
<div align="left" style="text-align:justify;">$B8=:_!"(Bs2axis2-examples$B$G(BWeb$B%5!<%S%9$N3X=,$r$7$F$*$j$^$9!#(B</div>
<div align="left" style="text-align:justify;"><font face="Times New Roman" size="2"><span style="font-size:10.5pt;"> </span></font></div>
<div align="left" style="text-align:justify;">$B0J2<(B rest/ex02 $B$N%5%s%W%k$rF0:n3NG'$7$F$$$k$N$G$9$,!"(B</div>
<div align="left" style="text-align:justify;">addressBook.html$B$N2hLL$r3+$-!"EPO?%\%?%s$r2!2<$7$F!"(B</div>
<div align="left" style="text-align:justify;">AddressBookServiceImpl$B$N(BaddEntry(Entry entry)$B$r8F$S=P$9$H$3$m$^$G$O(B</div>
<div align="left" style="text-align:justify;">$B3NG'$G$-$?$N$G$9$,!"(Bentry$B$NCM$,(BNULL$B$K$J$j$^$9!#(B</div>
<div align="left" style="text-align:justify;"><font face="Times New Roman" size="2"><span style="font-size:10.5pt;"> </span></font></div>
<div align="left" style="text-align:justify;">$B!D(B<font face="$B#M#S(B $B%4%7%C%/(B">\</font>s2axis2-examples\src\main\java\org\seasar\remoting\axis2\examples\rest\ex02\AddressBookService</div>
<div align="left" style="text-align:justify;">$B!D(B<font face="$B#M#S(B $B%4%7%C%/(B">\</font>s2axis2-examples\src\main\webapp\rest<font face="$B#M#S(B $B%4%7%C%/(B">\</font>addressBook.html</div>
<div align="left" style="text-align:justify;"><font face="Times New Roman" size="2"><span style="font-size:10.5pt;"> </span></font></div>
<div align="left" style="text-align:justify;">$B$I$&$9$l$PCM$,%;%C%H$5$l$k$N$+65$($FD:$1$J$$$G$7$g$&$+!#(B</div>
<div align="left" style="text-align:justify;">$B$^$?!"4pK\E*$J$3$H$+$b$7$l$^$;$s$,!"(BREST$B$G%5!<%S%9%a%=%C%I$N0z?t$,(BDTO$B$N>l9g(B</div>
<div align="left" style="text-align:justify;">$BCM$r0z$-EO$9J}K!$K$D$$$F$bJdB-D:$1$k$H9,$$$G$9!#(B</div>
<div align="left" style="text-align:justify;"><font face="Times New Roman" size="2"><span style="font-size:10.5pt;"> </span></font></div>
<div align="left" style="text-align:justify;">$B0J2<%=!<%9$NH4?h$K$J$j$^$9!#(B</div>
<div align="left" style="text-align:justify;"><font face="Times New Roman" size="2"><span style="font-size:10.5pt;"> </span></font></div>
<div align="left" style="text-align:justify;">-- $B"-(BAddressBookService.java --</div>
<div align="left" style="text-align:justify;"><font face="Times New Roman" size="2"><span style="font-size:10.5pt;"> </span></font></div>
<div align="left" style="text-align:justify;">@RestUriTemplate("/addressBook")</div>
<div align="left" style="text-align:justify;">public interface AddressBookService {</div>
<div align="left" style="text-align:justify;"> </div>
<div align="left" style="text-align:justify;"> void addEntry(Entry entry);</div>
<div align="left" style="text-align:justify;"> </div>
<div align="left" style="text-align:justify;"> void updateEntry(Entry entry);</div>
<div align="left" style="text-align:justify;"> </div>
<div align="left" style="text-align:justify;"> void deleteEntry(@RestUriParam("id")</div>
<div align="left" style="text-align:justify;"> Integer id);</div>
<div align="left" style="text-align:justify;"> </div>
<div align="left" style="text-align:justify;"> Entry findEntry(@RestUriParam("id")</div>
<div align="left" style="text-align:justify;"> Integer id);</div>
<div align="left" style="text-align:justify;"> </div>
<div align="left" style="text-align:justify;"> Entry[] findAllEntry();</div>
<div align="left" style="text-align:justify;">}</div>
<div align="left" style="text-align:justify;"> </div>
<div align="left" style="text-align:justify;">-- $B",(BAddressBookService.java --</div>
<div align="left" style="text-align:justify;"><font face="Times New Roman" size="2"><span style="font-size:10.5pt;"> </span></font></div>
<div align="left" style="text-align:justify;">-- $B"-(BAddressBookServiceImpl.java --</div>
<div align="left" style="text-align:justify;"><font face="Times New Roman" size="2"><span style="font-size:10.5pt;"> </span></font></div>
<div align="left" style="text-align:justify;">public class AddressBookServiceImpl implements AddressBookService {</div>
<div align="left" style="text-align:justify;"> </div>
<div align="left" style="text-align:justify;"> private Map<Integer, Entry> entries = new TreeMap<Integer, Entry>();</div>
<div align="left" style="text-align:justify;"> </div>
<div align="left" style="text-align:justify;"> public AddressBookServiceImpl() {}</div>
<div align="left" style="text-align:justify;"> </div>
<div align="left" style="text-align:justify;"> public void addEntry(Entry entry) {</div>
<div align="left" style="text-align:justify;"> if (entry == null) {</div>
<div align="left" style="text-align:justify;"> return;</div>
<div align="left" style="text-align:justify;"> }</div>
<div align="left" style="text-align:justify;"> this.entries.put(entry.getId(), entry);</div>
<div align="left" style="text-align:justify;"> }</div>
<div align="left" style="text-align:justify;"> </div>
<div align="left" style="text-align:justify;">-- $B",(BAddressBookServiceImpl.java --</div>
<div align="left" style="text-align:justify;"><font face="Times New Roman" size="2"><span style="font-size:10.5pt;"> </span></font></div>
<div align="left" style="text-align:justify;">-- $B"-(BaddressBook.html --</div>
<div align="left" style="text-align:justify;"><font face="Times New Roman" size="2"><span style="font-size:10.5pt;"> </span></font></div>
<div align="left" style="text-align:justify;"><form name="addressBook" method="post" enctype="application/xml" action="/s2axis2-examples/services/addressBook/addEntry"></div>
<div align="left" style="text-align:justify;"> </div>
<div align="left" style="text-align:justify;"><table></div>
<div align="left" style="text-align:justify;"> <tr></div>
<div align="left" style="text-align:justify;"> <th>Id</th></div>
<div align="left" style="text-align:justify;"> <td><input type="text" id="id" name="id" value="1" /></td></div>
<div align="left" style="text-align:justify;"> </tr></div>
<div align="left" style="text-align:justify;"> <tr></div>
<div align="left" style="text-align:justify;"> <th>Name</th></div>
<div align="left" style="text-align:justify;"> <td><input type="text" id="name" name="name" value="Abby Cadabby" /></td></div>
<div align="left" style="text-align:justify;"> </tr></div>
<div align="left" style="text-align:justify;"> <tr></div>
<div align="left" style="text-align:justify;"> <th>Street</th></div>
<div align="left" style="text-align:justify;"> <td><input type="text" id="street" name="street" value="Sesame Street" /></td></div>
<div align="left" style="text-align:justify;"> </tr></div>
<div align="left" style="text-align:justify;"> <tr></div>
<div align="left" style="text-align:justify;"> <th>City</th></div>
<div align="left" style="text-align:justify;"> <td><input type="text" id="city" name="city" value="Sesame City" /></td></div>
<div align="left" style="text-align:justify;"> </tr></div>
<div align="left" style="text-align:justify;"> <tr></div>
<div align="left" style="text-align:justify;"> <th>State</th></div>
<div align="left" style="text-align:justify;"> <td><input type="text" id="state" name="state" value="Sesame State" /></td></div>
<div align="left" style="text-align:justify;"> </tr></div>
<div align="left" style="text-align:justify;"> <tr></div>
<div align="left" style="text-align:justify;"> <th>postalCode</th></div>
<div align="left" style="text-align:justify;"> <td><input type="text" id="postalCode" name="postalCode" value="123-456" /></td></div>
<div align="left" style="text-align:justify;"> </tr></div>
<div align="left" style="text-align:justify;"></table></div>
<div align="left" style="text-align:justify;"> </div>
<div align="left" style="text-align:justify;"><br></div>
<div align="left" style="text-align:justify;"><input type="submit" id="doAdd" name="doAdd" value="$BEPO?(B" /></form></div>
<div align="left" style="text-align:justify;"><font face="Times New Roman" size="2"><span style="font-size:10.5pt;"> </span></font></div>
<div align="left" style="text-align:justify;">-- $B",(BaddressBook.html --</div>
<div align="left" style="text-align:justify;"><font face="Times New Roman" size="2"><span style="font-size:10.5pt;"> </span></font></div>
<div align="left" style="text-align:justify;">$BD9J8$H$J$j!"?=$7Lu$4$6$$$^$;$s!#(B</div>
<div align="left" style="text-align:justify;">$B$*<j?t$r$*3]$1CW$7$^$9$,!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B</div>
<div align="left" style="text-align:justify;"><font face="Times New Roman" size="2"><span style="font-size:10.5pt;"> </span></font></div>
</span></font>
</body>
</html>