public RMINotifier(BindingTemplate bindingTemplate) throws IOException, URISyntaxException, NotBoundException { super(); if (!AccessPointType.END_POINT.toString().equalsIgnoreCase(bindingTemplate.getAccessPointType())) { log.error("rmi enpoints only support AccessPointType " + AccessPointType.END_POINT); } String accessPointUrl = bindingTemplate.getAccessPointUrl().toLowerCase(); if (!accessPointUrl.startsWith("rmi")) { log.warn("rmi accessPointUrl for bindingTemplate " + bindingTemplate.getEntityKey() + " should start with 'rmi'"); } URI accessPointURI = new URI(accessPointUrl); String host = accessPointURI.getHost(); int port = accessPointURI.getPort(); String path = accessPointURI.getPath(); log.debug("Connecting to " + host + ":" + port); Registry registry = LocateRegistry.getRegistry(host, port); subscriptionListenerPort = (UDDISubscriptionListenerPortType) registry.lookup(path); }
public RMINotifier(BindingTemplate bindingTemplate) throws IOException, URISyntaxException, NotBoundException { super(); if (!AccessPointType.END_POINT.toString().equalsIgnoreCase(bindingTemplate.getAccessPointType())) { log.error("rmi enpoints only support AccessPointType " + AccessPointType.END_POINT); } String accessPointUrl = bindingTemplate.getAccessPointUrl().toLowerCase(); if (!accessPointUrl.startsWith("rmi")) { log.warn("rmi accessPointUrl for bindingTemplate " + bindingTemplate.getEntityKey() + " should start with 'rmi'"); } URI accessPointURI = new URI(accessPointUrl); String host = accessPointURI.getHost(); int port = accessPointURI.getPort(); String path = accessPointURI.getPath(); log.debug("Connecting to " + host + ":" + port); Registry registry = LocateRegistry.getRegistry(host, port); subscriptionListenerPort = (UDDISubscriptionListenerPortType) registry.lookup(path); }
public SMTPNotifier(BindingTemplate bindingTemplate) throws URISyntaxException, Exception { super(); if (!AccessPointType.END_POINT.toString().equalsIgnoreCase(bindingTemplate.getAccessPointType())) { log.error("smtp enpoints only support AccessPointType " + AccessPointType.END_POINT);
public JNDI_RMINotifier(BindingTemplate bindingTemplate) throws IOException, URISyntaxException, NotBoundException, NamingException, JAXBException { super(); if (!AccessPointType.END_POINT.toString().equalsIgnoreCase(bindingTemplate.getAccessPointType())) { log.error("jndi-rmi enpoints only support AccessPointType " + AccessPointType.END_POINT);
if (AccessPointType.WSDL_DEPLOYMENT.toString().equalsIgnoreCase(bindingTemplate.getAccessPointType())) { Service service = Service.create(new URL(bindingTemplate.getAccessPointUrl()), qName); subscriptionListenerPort = (UDDISubscriptionListenerPortType) service.getPort(UDDISubscriptionListenerPortType.class); } else if (AccessPointType.END_POINT.toString().equalsIgnoreCase(bindingTemplate.getAccessPointType())) {
public SMTPNotifier(BindingTemplate bindingTemplate) throws URISyntaxException, Exception { super(); if (!AccessPointType.END_POINT.toString().equalsIgnoreCase(bindingTemplate.getAccessPointType())) { log.error("smtp enpoints only support AccessPointType " + AccessPointType.END_POINT);
public JNDI_RMINotifier(BindingTemplate bindingTemplate) throws IOException, URISyntaxException, NotBoundException, NamingException, JAXBException { super(); if (!AccessPointType.END_POINT.toString().equalsIgnoreCase(bindingTemplate.getAccessPointType())) { log.error("jndi-rmi enpoints only support AccessPointType " + AccessPointType.END_POINT);
if (AccessPointType.WSDL_DEPLOYMENT.toString().equalsIgnoreCase(bindingTemplate.getAccessPointType())) { Service service = Service.create(new URL(bindingTemplate.getAccessPointUrl()), qName); subscriptionListenerPort = (UDDISubscriptionListenerPortType) service.getPort(UDDISubscriptionListenerPortType.class); } else if (AccessPointType.END_POINT.toString().equalsIgnoreCase(bindingTemplate.getAccessPointType())) {
AccessPoint accessPoint = bindingTemplate.getAccessPoint(); if (accessPoint!=null){ if (AccessPointType.END_POINT.toString().equals(accessPoint.getUseType())) { String url = accessPoint.getValue(); log.debug("epr= " + url); eprs.add(url); } else if(AccessPointType.WSDL_DEPLOYMENT.toString().equals(accessPoint.getUseType())) { } else if(AccessPointType.BINDING_TEMPLATE.toString().equals(accessPoint.getUseType())) {
} else if (usetype.equalsIgnoreCase(AccessPointType.BINDING_TEMPLATE.toString())) { } else if (usetype.equalsIgnoreCase(AccessPointType.HOSTING_REDIRECTOR.toString())) { } else if (usetype.equalsIgnoreCase(AccessPointType.WSDL_DEPLOYMENT.toString())) { } else if (usetype.equalsIgnoreCase(AccessPointType.END_POINT.toString())) { items.add(get.getAccessPoint().getValue()); } else {
private void validateAccessPoint(EntityManager em, AccessPoint value, Configuration config) throws ValueNotAllowedException { if (log.isDebugEnabled()) { log.debug("validateAccessPoint"); } if (value != null) { if (value.getValue().length() > ValidationConstants.MAX_accessPoint) { throw new ValueNotAllowedException(new ErrorMessage("errors.accessPoint.TooLong")); } validateUseType(value.getUseType()); if (value.getUseType() != null) { if (value.getUseType().equalsIgnoreCase(AccessPointType.BINDING_TEMPLATE.toString())) { //validate that the referenced binding key exists already Object obj = em.find(org.apache.juddi.model.BindingTemplate.class, value.getValue()); if (obj == null) { throw new ValueNotAllowedException(new ErrorMessage("errors.accessPoint.bindingtemplateRedirect.keynotexist")); } } else if (value.getUseType().equalsIgnoreCase(AccessPointType.HOSTING_REDIRECTOR.toString())) { try { //no validation necessary other than confirm that it's a URL new URL(value.getValue()); } catch (MalformedURLException ex) { throw new ValueNotAllowedException(new ErrorMessage("errors.accessPoint.hostingRedirector.notaurl")); } } //TODO determine if additional validation is required. //potentials, if its a wsdl deployment, is the Value a valid URI //if endpoint, is it a valid URI? } } }
private void validateAccessPoint(EntityManager em, AccessPoint value, Configuration config) throws ValueNotAllowedException { if (log.isDebugEnabled()) { log.debug("validateAccessPoint"); } if (value != null) { if (value.getValue().length() > ValidationConstants.MAX_accessPoint) { throw new ValueNotAllowedException(new ErrorMessage("errors.accessPoint.TooLong")); } validateUseType(value.getUseType()); if (value.getUseType() != null) { if (value.getUseType().equalsIgnoreCase(AccessPointType.BINDING_TEMPLATE.toString())) { //validate that the referenced binding key exists already Object obj = em.find(org.apache.juddi.model.BindingTemplate.class, value.getValue()); if (obj == null) { throw new ValueNotAllowedException(new ErrorMessage("errors.accessPoint.bindingtemplateRedirect.keynotexist")); } } else if (value.getUseType().equalsIgnoreCase(AccessPointType.HOSTING_REDIRECTOR.toString())) { try { //no validation necessary other than confirm that it's a URL new URL(value.getValue()); } catch (MalformedURLException ex) { throw new ValueNotAllowedException(new ErrorMessage("errors.accessPoint.hostingRedirector.notaurl")); } } //TODO determine if additional validation is required. //potentials, if its a wsdl deployment, is the Value a valid URI //if endpoint, is it a valid URI? } } }
if (AccessPointType.END_POINT.toString().equalsIgnoreCase(bindingTemplate.getAccessPointType()) || AccessPointType.WSDL_DEPLOYMENT.toString().equalsIgnoreCase(bindingTemplate.getAccessPointType())) { try { Notifier notifier = new NotifierFactory().getNotifier(bindingTemplate); log.info("Binding " + bindingTemplate.getEntityKey() + " has an unsupported binding type of " + bindingTemplate.getAccessPointType() + ". Only " + AccessPointType.END_POINT.toString() + " and " + AccessPointType.WSDL_DEPLOYMENT.toString() + " are supported."); addBadNotificationToList(subscriptionKey, bindingTemplate.getAccessPointType() + " not supported");
if (AccessPointType.END_POINT.toString().equalsIgnoreCase(bindingTemplate.getAccessPointType()) || AccessPointType.WSDL_DEPLOYMENT.toString().equalsIgnoreCase(bindingTemplate.getAccessPointType())) { try { Notifier notifier = new NotifierFactory().getNotifier(bindingTemplate); log.info("Binding " + bindingTemplate.getEntityKey() + " has an unsupported binding type of " + bindingTemplate.getAccessPointType() + ". Only " + AccessPointType.END_POINT.toString() + " and " + AccessPointType.WSDL_DEPLOYMENT.toString() + " are supported."); addBadNotificationToList(subscriptionKey, bindingTemplate.getAccessPointType() + " not supported");
accessPoint.setUseType(AccessPointType.END_POINT.toString()); accessPoint.setValue(urlLocalizer.rewrite(serviceUrl)); bindingTemplate.setAccessPoint(accessPoint);
overviewURL.setUseType(AccessPointType.WSDL_DEPLOYMENT.toString()); overviewURL.setValue(wsdlURL); OverviewDoc overviewDoc = new OverviewDoc();
accessPoint.setUseType(AccessPointType.END_POINT.toString()); accessPoint.setValue(urlLocalizer.rewrite(serviceUrl)); bindingTemplate.setAccessPoint(accessPoint); URL locationURI = new URL(location); AccessPoint accessPoint = new AccessPoint(); accessPoint.setUseType(AccessPointType.END_POINT.toString()); accessPoint.setValue(urlLocalizer.rewrite(locationURI)); bindingTemplate.setAccessPoint(accessPoint);
overviewURL.setUseType(AccessPointType.WSDL_DEPLOYMENT.toString()); overviewURL.setValue(wsdlURL); OverviewDoc overviewDoc = new OverviewDoc();
accessPoint.setUseType(AccessPointType.WSDL_DEPLOYMENT.toString()); if (!"".equals(uddiServiceBinding.accessPointType())) { accessPoint.setUseType(uddiServiceBinding.accessPointType());