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 VirtualServerInfo { 36 37 40 private String host; 41 42 45 private int port; 46 47 50 private String protocol; 51 52 53 public VirtualServerInfo(String protocol, String host, int port) { 54 this.protocol = protocol; 55 this.host = host; 56 this.port = port; 57 } 58 59 63 public String getHost() { 64 return this.host; 65 } 66 67 71 public int getPort() { 72 return this.port; 73 } 74 75 79 public String getProtocol() { 80 return this.protocol; 81 } 82 83 86 public URL getWebServerRootURL() throws MalformedURLException { 87 return new URL (protocol, host, port, ""); 88 } 89 } 90 | Popular Tags |