1 23 24 29 30 package com.sun.enterprise.admin.jmx.remote.internal; 31 32 import java.util.Map ; 33 import javax.management.remote.JMXServiceURL ; 34 import com.sun.enterprise.admin.jmx.remote.http.HttpUrlConnector; 35 import com.sun.enterprise.admin.jmx.remote.https.HttpsUrlConnector; 36 import com.sun.enterprise.admin.jmx.remote.UrlConnector; 37 38 44 45 public class UrlConnectorFactory { 46 47 private UrlConnectorFactory() { 48 } 49 53 public static UrlConnector getHttpConnector(JMXServiceURL url, Map env) { 54 return new HttpUrlConnector(url, env); 55 } 56 57 public static UrlConnector getHttpsConnector(JMXServiceURL url, Map env) { 58 return new HttpsUrlConnector(url, env); 59 } 60 } | Popular Tags |