<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;">&nbsp;</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;">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </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;">&nbsp;</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;">&nbsp;</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;">&nbsp;</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;">&nbsp;</span></font></div>
<div align="left" style="text-align:justify;">@RestUriTemplate(&quot;/addressBook&quot;)</div>
<div align="left" style="text-align:justify;">public interface AddressBookService {</div>
<div align="left" style="text-align:justify;">&nbsp;</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp; void addEntry(Entry entry);</div>
<div align="left" style="text-align:justify;">&nbsp;</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp; void updateEntry(Entry entry);</div>
<div align="left" style="text-align:justify;">&nbsp;</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp; void deleteEntry(@RestUriParam(&quot;id&quot;)</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp; Integer id);</div>
<div align="left" style="text-align:justify;">&nbsp;</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp; Entry findEntry(@RestUriParam(&quot;id&quot;)</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp; Integer id);</div>
<div align="left" style="text-align:justify;">&nbsp;</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp; Entry[] findAllEntry();</div>
<div align="left" style="text-align:justify;">}</div>
<div align="left" style="text-align:justify;">&nbsp;</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;">&nbsp;</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;">&nbsp;</span></font></div>
<div align="left" style="text-align:justify;">public class AddressBookServiceImpl implements AddressBookService {</div>
<div align="left" style="text-align:justify;">&nbsp;</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp; private Map&lt;Integer, Entry&gt; entries = new TreeMap&lt;Integer, Entry&gt;();</div>
<div align="left" style="text-align:justify;">&nbsp;</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp; public AddressBookServiceImpl() {}</div>
<div align="left" style="text-align:justify;">&nbsp;</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp; public void addEntry(Entry entry) {</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (entry == null) {</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return;</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.entries.put(entry.getId(), entry);</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp; }</div>
<div align="left" style="text-align:justify;">&nbsp;</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;">&nbsp;</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;">&nbsp;</span></font></div>
<div align="left" style="text-align:justify;">&lt;form name=&quot;addressBook&quot; method=&quot;post&quot; enctype=&quot;application/xml&quot; action=&quot;/s2axis2-examples/services/addressBook/addEntry&quot;&gt;</div>
<div align="left" style="text-align:justify;">&nbsp;</div>
<div align="left" style="text-align:justify;">&lt;table&gt;</div>
<div align="left" style="text-align:justify;">&nbsp; &lt;tr&gt;</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp; &lt;th&gt;Id&lt;/th&gt;</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;input type=&quot;text&quot; id=&quot;id&quot; name=&quot;id&quot; value=&quot;1&quot; /&gt;&lt;/td&gt;</div>
<div align="left" style="text-align:justify;">&nbsp; &lt;/tr&gt;</div>
<div align="left" style="text-align:justify;">&nbsp; &lt;tr&gt;</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp; &lt;th&gt;Name&lt;/th&gt;</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;input type=&quot;text&quot; id=&quot;name&quot; name=&quot;name&quot; value=&quot;Abby Cadabby&quot; /&gt;&lt;/td&gt;</div>
<div align="left" style="text-align:justify;">&nbsp; &lt;/tr&gt;</div>
<div align="left" style="text-align:justify;">&nbsp; &lt;tr&gt;</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp; &lt;th&gt;Street&lt;/th&gt;</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;input type=&quot;text&quot; id=&quot;street&quot; name=&quot;street&quot; value=&quot;Sesame Street&quot; /&gt;&lt;/td&gt;</div>
<div align="left" style="text-align:justify;">&nbsp; &lt;/tr&gt;</div>
<div align="left" style="text-align:justify;">&nbsp; &lt;tr&gt;</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp; &lt;th&gt;City&lt;/th&gt;</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;input type=&quot;text&quot; id=&quot;city&quot; name=&quot;city&quot; value=&quot;Sesame City&quot; /&gt;&lt;/td&gt;</div>
<div align="left" style="text-align:justify;">&nbsp; &lt;/tr&gt;</div>
<div align="left" style="text-align:justify;">&nbsp; &lt;tr&gt;</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp; &lt;th&gt;State&lt;/th&gt;</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;input type=&quot;text&quot; id=&quot;state&quot; name=&quot;state&quot; value=&quot;Sesame State&quot; /&gt;&lt;/td&gt;</div>
<div align="left" style="text-align:justify;">&nbsp; &lt;/tr&gt;</div>
<div align="left" style="text-align:justify;">&nbsp; &lt;tr&gt;</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp; &lt;th&gt;postalCode&lt;/th&gt;</div>
<div align="left" style="text-align:justify;">&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;input type=&quot;text&quot; id=&quot;postalCode&quot; name=&quot;postalCode&quot; value=&quot;123-456&quot; /&gt;&lt;/td&gt;</div>
<div align="left" style="text-align:justify;">&nbsp; &lt;/tr&gt;</div>
<div align="left" style="text-align:justify;">&lt;/table&gt;</div>
<div align="left" style="text-align:justify;">&nbsp;</div>
<div align="left" style="text-align:justify;">&lt;br&gt;</div>
<div align="left" style="text-align:justify;">&lt;input type=&quot;submit&quot; id=&quot;doAdd&quot; name=&quot;doAdd&quot; value=&quot;$BEPO?(B&quot; /&gt;&lt;/form&gt;</div>
<div align="left" style="text-align:justify;"><font face="Times New Roman" size="2"><span style="font-size:10.5pt;">&nbsp;</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;">&nbsp;</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;">&nbsp;</span></font></div>
</span></font>
</body>
</html>