Package org.gatein.wsrp.consumer

Examples of org.gatein.wsrp.consumer.EndpointConfigurationInfo


      assertNotNull(consumer);
      assertEquals(id, consumer.getProducerId());
      ProducerInfo info = consumer.getProducerInfo();
      assertNotNull(info);
      assertEquals(consumer.getProducerId(), info.getId());
      EndpointConfigurationInfo endpoint = info.getEndpointConfigurationInfo();
      assertNotNull(endpoint);
      RegistrationInfo regInfo = info.getRegistrationInfo();
      assertTrue(regInfo.isUndetermined());

      WSRPConsumer fromRegistry = registry.getConsumer(id);
View Full Code Here


      info.setId(getId());
      info.setActive(getActive());
      info.setExpirationCacheSeconds(getExpirationCacheSeconds());

      // endpoint
      EndpointConfigurationInfo endInfo = getEndpointInfo().toEndpointConfigurationInfo(info.getEndpointConfigurationInfo());
      info.setEndpointConfigurationInfo(endInfo);

      // registration
      RegistrationInfo regInfo = getRegistrationInfo().toRegistrationInfo(info.getRegistrationInfo());
      info.setRegistrationInfo(regInfo);
View Full Code Here

      info.setActive(getActive());
      info.setExpirationCacheSeconds(getExpirationCacheSeconds());
      info.setLastModified(getLastModified());

      // endpoint
      EndpointConfigurationInfo endInfo = getEndpointInfo().toModel(info.getEndpointConfigurationInfo(), info);
      info.setEndpointConfigurationInfo(endInfo);

      // registration
      RegistrationInfo regInfo = getRegistrationInfo().toModel(info.getRegistrationInfo(), info);
      info.setRegistrationInfo(regInfo);
View Full Code Here

      else
      {
         consumer = getRegistry().getConsumer(id);
         if (consumer != null)
         {
            EndpointConfigurationInfo endpoint = getProducerInfo().getEndpointConfigurationInfo();
            wsdl = endpoint.getWsdlDefinitionURL();
            this.id = id;
         }
         else
         {
            beanContext.createErrorMessage(CANNOT_FIND_CONSUMER, id);
View Full Code Here

            enableWSS = Boolean.parseBoolean(useWSS);
         }

         // consumer didn't exist in the database, so create one and configure it
         consumer = consumerRegistry.createConsumer(id, expirationCacheSeconds, null);
         final EndpointConfigurationInfo endpoint = consumer.getProducerInfo().getEndpointConfigurationInfo();
         endpoint.setWSOperationTimeOut(wsTimeoutMS);
         endpoint.setWSSEnabled(enableWSS);

         return consumer;
      }
      else
      {
View Full Code Here

      else
      {
         consumer = getRegistry().getConsumer(id);
         if (consumer != null)
         {
            EndpointConfigurationInfo endpoint = getProducerInfo().getEndpointConfigurationInfo();
            wsdl = endpoint.getWsdlDefinitionURL();
            this.id = id;
         }
         else
         {
            beanContext.createErrorMessage(CANNOT_FIND_CONSUMER, id);
View Full Code Here

         {
            try
            {
               // update values
               ProducerInfo prodInfo = getProducerInfo();
               EndpointConfigurationInfo endpointInfo = prodInfo.getEndpointConfigurationInfo();
               internalSetWsdl(wsdl);

               saveToRegistry(prodInfo);
            }
            catch (Exception e)
View Full Code Here

TOP

Related Classes of org.gatein.wsrp.consumer.EndpointConfigurationInfo

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.