Package org.oasis_open.docs.wsn.br_2

Examples of org.oasis_open.docs.wsn.br_2.PublisherRegistrationFailedFaultType


            if (manager != null) {
                publisher.setManager(manager);
            }
            publisher.register();
            publisher.create(registerPublisherRequest);
            RegisterPublisherResponse response = new RegisterPublisherResponse();
            response.setPublisherRegistrationReference(createEndpointReference(publisher.getAddress()));
            success = true;
            return response;
        } catch (EndpointRegistrationException e) {
            PublisherRegistrationFailedFaultType fault = new PublisherRegistrationFailedFaultType();
            throw new PublisherRegistrationFailedFault("Unable to register new endpoint", fault, e);
View Full Code Here


      TopicExpressionType topicExp = new TopicExpressionType();
      topicExp.getContent().add(topic);
      registerPublisherRequest.getTopic().add(topicExp);
    }
    registerPublisherRequest.setDemand(Boolean.valueOf(demand));
    RegisterPublisherResponse response = (RegisterPublisherResponse) request(registerPublisherRequest);
    return new Publisher(response.getPublisherRegistrationReference(), getClient());
  }
View Full Code Here

                topicExp.getContent().add(topic);
                registerPublisherRequest.getTopic().add(topicExp);
            }
        }
        registerPublisherRequest.setDemand(demand);
        RegisterPublisherResponse response = getBroker().registerPublisher(registerPublisherRequest);
        return new Registration(response.getPublisherRegistrationReference());
    }
View Full Code Here

        boolean success = false;
        try {
            publisher = createPublisher(idGenerator.generateSanitizedId());
            publisher.register();
            publisher.create(registerPublisherRequest);
            RegisterPublisherResponse response = new RegisterPublisherResponse();
            response.setPublisherRegistrationReference(publisher.getEpr());
            if (publisher.getPublisherReference() != null) {
                publishers.put(WSNHelper.getWSAAddress(publisher.getPublisherReference()), publisher);
            } else {
                nonContactPublishers.add(publisher);
            }
View Full Code Here

        boolean success = false;
        try {
            publisher = createPublisher(idGenerator.generateSanitizedId());
            publisher.register();
            publisher.create(registerPublisherRequest);
            RegisterPublisherResponse response = new RegisterPublisherResponse();
            response.setPublisherRegistrationReference(publisher.getEpr());
            if (publisher.getPublisherReference() != null) {
                publishers.put(WSNHelper.getInstance()
                                   .getWSAAddress(publisher.getPublisherReference()),
                               publisher);
            } else {
View Full Code Here

    protected void destroy() throws ResourceNotDestroyedFault {
        try {
            unregister();
        } catch (EndpointRegistrationException e) {
            ResourceNotDestroyedFaultType fault = new ResourceNotDestroyedFaultType();
            throw new ResourceNotDestroyedFault("Error unregistering endpoint", fault, e);
        }
    }
View Full Code Here

        try {
            if (advisory != null) {
                advisory.stop();
            }
        } catch (Exception e) {
            ResourceNotDestroyedFaultType fault = new ResourceNotDestroyedFaultType();
            throw new ResourceNotDestroyedFault("Error destroying publisher", fault, e);
        } finally {
            super.destroy();
        }
    }
View Full Code Here

    protected void destroy() throws ResourceNotDestroyedFault {
        try {
            unregister();
        } catch (EndpointRegistrationException e) {
            ResourceNotDestroyedFaultType fault = new ResourceNotDestroyedFaultType();
            throw new ResourceNotDestroyedFault("Error unregistering endpoint", fault, e);
        }
    }
View Full Code Here

    protected void destroy() throws ResourceNotDestroyedFault {
      try {
        unregister();
      } catch (EndpointRegistrationException e) {
        ResourceNotDestroyedFaultType fault = new ResourceNotDestroyedFaultType();
        throw new ResourceNotDestroyedFault("Error unregistering endpoint", fault, e);
      }
    }
View Full Code Here

    try {
      if (advisory != null) {
        advisory.stop();
        }
    } catch (Exception e) {
      ResourceNotDestroyedFaultType fault = new ResourceNotDestroyedFaultType();
      throw new ResourceNotDestroyedFault("Error destroying publisher", fault, e);
    } finally {
      super.destroy();
    }
    }
View Full Code Here

TOP

Related Classes of org.oasis_open.docs.wsn.br_2.PublisherRegistrationFailedFaultType

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.