1 23 24 package com.sun.enterprise.deployment.util; 25 26 import java.net.URL ; 27 import java.net.MalformedURLException ; 28 29 35 public class WebServerInfo { 36 37 40 private VirtualServerInfo httpVS; 41 42 45 private VirtualServerInfo httpsVS; 46 47 48 public WebServerInfo() { 49 } 50 51 55 public VirtualServerInfo getHttpVS() { 56 return this.httpVS; 57 } 58 59 63 public void setHttpVS(VirtualServerInfo httpVS) { 64 this.httpVS = httpVS; 65 } 66 67 71 public VirtualServerInfo getHttpsVS() { 72 return this.httpsVS; 73 } 74 75 79 public void setHttpsVS(VirtualServerInfo httpsVS) { 80 this.httpsVS = httpsVS; 81 } 82 83 public URL getWebServerRootURL(boolean secure) throws MalformedURLException { 84 if (secure) { 85 if (httpsVS!=null) 86 return httpsVS.getWebServerRootURL(); 87 88 } else { 89 if (httpVS!=null) 90 return httpVS.getWebServerRootURL(); 91 } 92 return null; 93 } 94 95 } 96 | Popular Tags |