01: /*
02: * Created on Apr 13, 2004
03: *
04: * To change the template for this generated file go to
05: * Window>Preferences>Java>Code Generation>Code and Comments
06: */
07: package org.xdev.base.xssl.util;
08:
09: import java.net.InetAddress;
10: import java.util.HashMap;
11:
12: import org.xdev.base.xssl.XSSLReturn;
13:
14: /**
15: * @author AYegorov
16: *
17: * To change the template for this generated type comment go to
18: * Window>Preferences>Java>Code Generation>Code and Comments
19: */
20: public abstract class AbstractLocalHost extends XSSLReturn {
21: private Object returnObject = null;
22:
23: /**
24: * @param id
25: */
26: public AbstractLocalHost(String id) {
27: super (id);
28: // XXX Auto-generated constructor stub
29: }
30:
31: /**
32: * @param id
33: * @param properties
34: */
35: public AbstractLocalHost(String id, HashMap properties) {
36: super (id, properties);
37: }
38:
39: /* (non-Javadoc)
40: * @see org.xdev.base.core.object.Configuration#getValue()
41: */
42: public Object getObjectValue() {
43: return this .returnObject;
44: }
45:
46: /* (non-Javadoc)
47: * @see org.xdev.base.xssl.XSSLAction#set()
48: */
49: protected void set() throws Exception {
50: this .returnObject = this .processLocalHost(InetAddress
51: .getLocalHost());
52: }
53:
54: protected abstract Object processLocalHost(InetAddress localHost)
55: throws Exception;
56: }
|