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

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


  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();
        }
        QName qName = new QName(UDDI_V3_SERVICE_NAMESPACE, INQUIRY_SERVICE);
        Service service = Service.create(new URL(endpointURL), qName);
        inquiryService = (UDDIInquiryPortType) service.getPort(UDDIInquiryPortType.class);
      } catch (Exception e) {
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();
        }
        QName qName = new QName(UDDI_V3_SERVICE_NAMESPACE, SECURITY_SERVICE);
        Service service = Service.create(new URL(endpointURL), qName);
        securityService = (UDDISecurityPortType) service.getPort(UDDISecurityPortType.class);
      } catch (Exception e) {
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();
        }
        QName qName = new QName(UDDI_V3_SERVICE_NAMESPACE, PUBLISH_SERVICE);
        Service service = Service.create(new URL(endpointURL), qName);
        publishService = (UDDIPublicationPortType) service.getPort(UDDIPublicationPortType.class);
      } catch (Exception e) {
View Full Code Here

  public UDDISubscriptionPortType getUDDISubscriptionService(String endpointURL) throws TransportException {

    if (subscriptionService==null) {
      try {
        if (endpointURL==null)  {
          UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(managerName);
          endpointURL = manager.getClientConfig().getUDDINode(nodeName).getSubscriptionUrl();
        }
        QName qName = new QName(UDDI_V3_SERVICE_NAMESPACE, SUBSCRIPTION_SERVICE);
        Service service = Service.create(new URL(endpointURL), qName);
        subscriptionService = (UDDISubscriptionPortType) service.getPort(UDDISubscriptionPortType.class);
      } catch (Exception e) {
View Full Code Here

       Transport transport = WebHelper.getTransport(session.getServletContext());
           JUDDIApiPortType apiService = transport.getJUDDIApiService();
           PublisherDetail publisherDetail = apiService.getPublisherDetail(getPublisherDetail);
              org.apache.juddi.api_v3.Publisher publisher = publisherDetail.getPublisher().get(0);
              if ("true".equalsIgnoreCase(publisher.getIsAdmin())) {
               UDDIClerkManager manager =  WebHelper.getUDDIClerkManager(session.getServletContext());
               logger.info("managerName=" + manager.getName());
               manager.restart();
               response.setMessage("Successfull manager restart.");
               response.setSuccess(true);
              } else {
               response.setMessage("Only publishers with Admin privileges can perform a restart.");
               response.setSuccess(false);
View Full Code Here

 
  public UDDISubscriptionListenerPortType getUDDISubscriptionListenerService(String endpointURL) throws TransportException {
    if (subscriptionListenerService == null) {
      try {
        if (endpointURL==null)  {
          UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(managerName);
          endpointURL = manager.getClientConfig().getUDDINode(nodeName).getSubscriptionListenerUrl();
        }
        QName qName = new QName(UDDI_V3_SERVICE_NAMESPACE, SUBSCRIPTION_LISTENER_SERVICE);
        Service service = Service.create(new URL(endpointURL), qName);
        subscriptionListenerService = (UDDISubscriptionListenerPortType) service.getPort(UDDISubscriptionListenerPortType.class);
      } catch (Exception e) {
View Full Code Here

 
  public UDDICustodyTransferPortType getUDDICustodyTransferService(String endpointURL) throws TransportException {
    if (custodyTransferService == null) {
      try {
        if (endpointURL==null)  {
          UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(managerName);
          endpointURL = manager.getClientConfig().getUDDINode(nodeName).getCustodyTransferUrl();
        }
        QName qName = new QName(UDDI_V3_SERVICE_NAMESPACE, CUSTODY_TRANSFER_SERVICE);
        Service service = Service.create(new URL(endpointURL), qName);
        custodyTransferService = (UDDICustodyTransferPortType) service.getPort(UDDICustodyTransferPortType.class);
      } catch (Exception e) {
View Full Code Here

 
  public JUDDIApiPortType getJUDDIApiService(String endpointURL) throws TransportException {
    if (publisherService == null) {
      try {
        if (endpointURL==null)  {
          UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(managerName);
          endpointURL = manager.getClientConfig().getUDDINode(nodeName).getJuddiApiUrl();
        }
        QName qName = new QName(JUDDI_V3_SERVICE_NAMESPACE, PUBLISHER_SERVICE);
        Service service = Service.create(new URL(endpointURL), qName);
        publisherService = (JUDDIApiPortType) service.getPort(JUDDIApiPortType.class);
      } catch (Exception e) {
View Full Code Here

    logger.debug("Publisher " + publisher + " sending getSubscription request..");
    try {
      boolean isMatchingClerk=false;
      UDDIClerk toClerk = null;
      UDDIClerkManager manager = WebHelper.getUDDIClerkManager(session.getServletContext());
      UDDINode homeNode = WebHelper.getUDDIHomeNode(session.getServletContext());
      Map<String, UDDIClerk> clerks = manager.getClientConfig().getUDDIClerks();
      for (UDDIClerk clerk : clerks.values()) {
        if (publisher.equals(clerk.getPublisher())
            && homeNode.getName().equals(clerk.getUDDINode().getName())) {
          toClerk = clerk;
        }
      }
      for (UDDIClerk clerk : clerks.values()) {
        if (publisher.equals(clerk.getPublisher())) {
View Full Code Here

  }

  private Node getSubscriptions(HttpSession session, UDDIClerk clerk, UDDIClerk toClerk) {

    Node modelNode = new Node();
    UDDINode node = clerk.getUDDINode();
    modelNode.setName(node.getName());
    modelNode.setClerkName(clerk.getName());
    modelNode.setDescription(node.getDescription());
    try {
      UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(clerk.getManagerName());
      String clazz = manager.getClientConfig().getUDDINode(clerk.getUDDINode().getName()).getProxyTransport();
      Class<?> transportClass = ClassUtil.forName(clazz, Transport.class);
      Transport transport = (Transport) transportClass.getConstructor(String.class,String.class).newInstance(clerk.getManagerName(),clerk.getUDDINode().getName())
View Full Code Here

TOP

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

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.