01: package vicazh.hyperpool.stream.net.http;
02:
03: import vicazh.hyperpool.stream.Connection;
04:
05: /**
06: * The document service
07: *
08: * @author Victor Zhigunov
09: * @version 0.4.0
10: */
11: public class DocumentService extends Service implements
12: DocumentServiceMBean {
13: private String url;
14:
15: public void setUrl(String url) {
16: this .url = url;
17: }
18:
19: public String getUrl() {
20: return url;
21: }
22:
23: public Connection getConnection() {
24: return new DocumentConnection(this );
25: }
26:
27: public void setAttribute(String name, Object value)
28: throws Exception {
29: if (name.equals(DocumentServiceMBean.URL))
30: setUrl((String) value);
31: super.setAttribute(name, value);
32: }
33: }
|