Package org.apache.juddi.v3.client.mapping

Examples of org.apache.juddi.v3.client.mapping.ServiceLocator


   
    String error = null;
    try {
   
      try {
        UDDIClerkManager manager = WebHelper.getUDDIClerkManager(session.getServletContext());
        UDDIClerk clerk = manager.getClientConfig().getUDDIClerks().get(modelSubscription.getFromClerkName());
        Transport transport = WebHelper.getTransport(session.getServletContext(), clerk.getUDDINode());
        UDDISubscriptionPortType subscriptionService = transport.getUDDISubscriptionService();
        DeleteSubscription deleteSubscription = new DeleteSubscription();
        String authToken = (String) session.getAttribute("token-" + clerk.getName());
        deleteSubscription.setAuthInfo(authToken);
View Full Code Here


*/
public class UDDI_010_PublisherIntegrationTest {
 
  @BeforeClass
  public static void startRegistry() throws ConfigurationException {
    UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(null);
    String clazz = manager.getClientConfig().getUDDINode("default").getProxyTransport();
    if (InVMTransport.class.getName().equals(clazz)) {
      Registry.start();
    }
  }
View Full Code Here

    }
  }
 
  @AfterClass
  public static void stopRegistry() throws ConfigurationException {
    UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(null);
    String clazz = manager.getClientConfig().getUDDINode("default").getProxyTransport();
    if (InVMTransport.class.getName().equals(clazz)) {
      Registry.stop();
    }
  }
View Full Code Here

        throw new UnsupportedOperationException("operation " + operation + " not supported");
    }

  public Node secure(Element uddiReq) throws Exception
  {
    UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(null);
    String clazz = manager.getClientConfig().getUDDINode(DEFAULT_NODE_NAME).getProxyTransport();
        Class<?> transportClass = Loader.loadClass(clazz);
        Transport transport = (Transport) transportClass.getConstructor(String.class).newInstance(DEFAULT_NODE_NAME);
      UDDISecurityPortType security = transport.getUDDISecurityService();
   
    //new RequestHandler on it's own thread
View Full Code Here

        throw new UnsupportedOperationException("operation " + operation + " not supported");
  }

  public Node publish(Element uddiReq) throws Exception
  {
    UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(null);
    String clazz = manager.getClientConfig().getUDDINode(DEFAULT_NODE_NAME).getProxyTransport();
        Class<?> transportClass = Loader.loadClass(clazz);
        Transport transport = (Transport) transportClass.getConstructor(String.class).newInstance(DEFAULT_NODE_NAME);
    UDDIPublicationPortType publish = transport.getUDDIPublishService();

      //new RequestHandler on it's own thread
View Full Code Here

      if ((operation == null) || (operation.trim().length() == 0))
        throw new UnsupportedOperationException("operation " + operation + " not supported");
  }
 
  public Node inquire(Element uddiReq) throws Exception {
    UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(null);
    String clazz = manager.getClientConfig().getUDDINode(DEFAULT_NODE_NAME).getProxyTransport();
        Class<?> transportClass = Loader.loadClass(clazz);
        Transport transport = (Transport) transportClass.getConstructor(String.class).newInstance(DEFAULT_NODE_NAME);
    UDDIInquiryPortType inquiry = transport.getUDDIInquiryService();
       
      //new RequestHandler on it's own thread
View Full Code Here

    initContext();
  }
 
  private void initContext() throws NamingException, ConfigurationException {
    Properties env = new Properties();
    UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(managerName);
    String factoryInitial = manager.getClientConfig().getConfiguration().getString(Property.UDDI_PROXY_FACTORY_INITIAL);
    String factoryURLPkgs = manager.getClientConfig().getConfiguration().getString(Property.UDDI_PROXY_FACTORY_URL_PKS);
    String factoryNamingProvider = manager.getClientConfig().getConfiguration().getString(Property.UDDI_PROXY_PROVIDER_URL);
        if (factoryInitial!=null && factoryInitial!="") env.setProperty(Property.UDDI_PROXY_FACTORY_INITIAL, factoryInitial);
        if (factoryURLPkgs!=null && factoryURLPkgs!="") env.setProperty(Property.UDDI_PROXY_FACTORY_URL_PKS, factoryURLPkgs);
        if (factoryNamingProvider!=null && factoryNamingProvider!="") env.setProperty(Property.UDDI_PROXY_PROVIDER_URL, factoryNamingProvider);
      logger.debug("Initial Context using env=" + env.toString());
      context = new InitialContext(env);
View Full Code Here

  public UDDIInquiryPortType getUDDIInquiryService(String endpointURL) throws TransportException {
    if (inquiryService==null) {
      try {
        if (endpointURL==null) {
          UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(managerName);
          endpointURL = manager.getClientConfig().getUDDINode(nodeName).getInquiryUrl();
        }
        URI endpointURI = new URI(endpointURL);
          String service    = endpointURI.getPath();
          logger.debug("Looking up service=" + service);
          Object requestHandler = context.lookup(service);
View Full Code Here

 
  public UDDISecurityPortType getUDDISecurityService(String endpointURL) throws TransportException {
    if (securityService==null) {
      try {
        if (endpointURL==null) {
          UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(managerName);
          endpointURL = manager.getClientConfig().getUDDINode(nodeName).getSecurityUrl();
        }
        URI endpointURI = new URI(endpointURL);
          String service    = endpointURI.getPath();
          logger.debug("Looking up service=" + service);
          Object requestHandler = context.lookup(service);
View Full Code Here

 
  public UDDIPublicationPortType getUDDIPublishService(String endpointURL) throws TransportException {
    if (publishService==null) {
      try {
        if (endpointURL==null) {
          UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(managerName);
          endpointURL = manager.getClientConfig().getUDDINode(nodeName).getPublishUrl();
        }
        URI endpointURI = new URI(endpointURL);
          String service    = endpointURI.getPath();
          logger.debug("Looking up service=" + service);
          Object requestHandler = context.lookup(service);
View Full Code Here

TOP

Related Classes of org.apache.juddi.v3.client.mapping.ServiceLocator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.