1 23 24 31 32 package com.sun.enterprise.admin.verifier.tests; 33 34 37 38 import java.io.File ; 39 40 import com.sun.enterprise.config.serverbeans.Server; 42 import com.sun.enterprise.config.serverbeans.*; 43 import com.sun.enterprise.config.serverbeans.Resources; 44 import com.sun.enterprise.config.serverbeans.Applications; 45 import com.sun.enterprise.config.ConfigContext; 46 import com.sun.enterprise.config.ConfigContextEvent; 47 import com.sun.enterprise.config.ConfigException; 48 import com.sun.enterprise.config.serverbeans.*; 49 50 import com.sun.enterprise.admin.verifier.*; 51 52 import java.util.logging.Logger ; 54 import java.util.logging.Level ; 55 import com.sun.logging.LogDomains; 56 57 public class HttpServiceTest extends ServerXmlTest implements ServerCheck { 58 59 static Logger _logger = LogDomains.getLogger(LogDomains.APPVERIFY_LOGGER); 61 62 public HttpServiceTest() { 63 } 64 65 public Result check(ConfigContext context) 67 { 68 Result result; 69 result = super.getInitializedResult(); 70 112 return result; 113 } 114 115 public Result check(ConfigContextEvent ccce) 117 { 118 Result result; 119 Object value = ccce.getObject(); 120 result = new Result(); 121 String beanName = ccce.getBeanName(); 122 result.passed("Passed***"); 123 if(beanName!=null) { 124 String name = ccce.getName(); 125 result = testSave(name,(String )value); 126 return result; 127 } 128 164 return result; 165 } 166 167 public Result testSave(String name, String value) { 168 Result result = new Result(); 169 result.passed("passed ** "); 170 194 return result; 195 } 196 197 } 198 | Popular Tags |