Package org.jboss.internal.soa.esb.webservice.addressing

Examples of org.jboss.internal.soa.esb.webservice.addressing.MAPBuilder


      return (replyTo != null ? new CXFMAPEndpoint(replyTo) : null);
   }

   public MAPRelatesTo getRelatesTo()
   {
      MAPBuilder builder = CXFMAPBuilder.getBuilder();
      RelatesToType relatesTo = implementation.getRelatesTo();
      if (relatesTo != null)
      {
         String type = relatesTo.getRelationshipType();
         int index = type.indexOf("}");
         String ns = type.substring(1, index + 1);
         String name = type.substring(index + 1);
         return builder.newRelatesTo(relatesTo.getValue(), new QName(ns, name));
      }
      else
      {
         return null;
      }
View Full Code Here


    */
   private void setClientID(String action)
   {
      BindingProvider bindingProvider = (BindingProvider)port;
      Map<String, Object> msgContext = bindingProvider.getRequestContext();
      MAPBuilder builder = MAPBuilderFactory.getInstance().getBuilderInstance();
      MAPConstants ADDR = builder.newConstants();
      MAP outProps = builder.newMap();
      outProps.setTo("uri:jaxrpc-samples-wsaddressing/TestService");
      outProps.setMessageID("urn:uuid:" + UUIDGenerator.generateRandomUUIDString());
      outProps.setAction("http://webservice.webservicewsa.quickstart.samples.esb.soa.jboss.org/" + action);

      MAPEndpoint replyTo = builder.newEndpoint(ADDR.getAnonymousURI());
      outProps.setReplyTo(replyTo);

      // Assign a new clientid
      if (clientID == null)
      {
View Full Code Here

   @SuppressWarnings("unchecked")
   private void readClientID()
   {
      BindingProvider bindingProvider = (BindingProvider)port;
      Map<String, Object> msgContext = bindingProvider.getResponseContext();
      MAPBuilder builder = MAPBuilderFactory.getInstance().getBuilderInstance();
      MAP addrProps = builder.inboundMap(msgContext);
      if (addrProps == null)
         return; //throw new IllegalStateException("Cannot obtain AddressingProperties");
      for (Object obj : addrProps.getReferenceParameters())
      {
         if (obj instanceof Element) //Native always uses Element for ref params
View Full Code Here

   @Override
   public boolean handleInbound(MessageContext msgContext)
   {
      log.info("handleRequest");

      MAPBuilder builder = MAPBuilderFactory.getInstance().getBuilderInstance();
      MAP addrProps = builder.inboundMap(msgContext);

      if (addrProps == null)
         throw new IllegalStateException("Cannot obtain AddressingProperties");

      String clientid = null;
View Full Code Here

   @Override
   public boolean handleOutbound(MessageContext msgContext)
   {
      log.info("handleResponse");
     
      MAPBuilder builder = MAPBuilderFactory.getInstance().getBuilderInstance();
      MAP inProps = builder.inboundMap(msgContext);
      MAP outProps = builder.newMap();
      if (inProps.getReplyTo() != null)
         outProps.initializeAsDestination(inProps.getReplyTo());
      outProps.setAction("http://org.jboss.ws/addressing/stateful/actionReply");
     
      outProps.installOutboundMapOnServerSide(msgContext, outProps);
      msgContext.setScope(builder.newConstants().getServerAddressingPropertiesOutbound(), Scope.APPLICATION);

      return true;
   }
View Full Code Here

      return (replyTo != null ? new NativeMAPEndpoint(replyTo) : null);
   }

   public MAPRelatesTo getRelatesTo()
   {
      MAPBuilder builder =  NativeMAPBuilder.getBuilder();
      Relationship[] relationship = implementation.getRelatesTo();
      if (relationship != null && relationship.length > 0)
      {
         Relationship relatesTo = relationship[0];
         return builder.newRelatesTo(relatesTo.getID().toString(), relatesTo.getType());
      }
      else
      {
         return null;
      }
View Full Code Here

TOP

Related Classes of org.jboss.internal.soa.esb.webservice.addressing.MAPBuilder

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.