Package javax.xml.ws.addressing

Examples of javax.xml.ws.addressing.AttributedURI


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

   public String getMessageID()
   {
      AttributedURI messageId = implementation.getMessageID();
      return (messageId != null ? messageId.getURI().toString() : null);
   }
View Full Code Here


      return (messageId != null ? messageId.getURI().toString() : null);
   }

   public String getAction()
   {
      AttributedURI action = implementation.getAction();
      return (action != null ? action.getURI().toString() : null);
   }
View Full Code Here

      if (address != null)
      {
         try
         {
            AddressingBuilder builder = AddressingBuilder.getAddressingBuilder();
            AttributedURI uri = builder.newURI(address);
            implementation.setTo(uri);
         }
         catch (URISyntaxException e)
         {
            // should not happen
View Full Code Here

      if (messageID != null)
      {
         try
         {
            AddressingBuilder builder = AddressingBuilder.getAddressingBuilder();
            AttributedURI uri = builder.newURI(messageID);
            implementation.setMessageID(uri);
         }
         catch (URISyntaxException e)
         {
            // should not happen
View Full Code Here

      if (action != null)
      {
         try
         {
            AddressingBuilder builder = AddressingBuilder.getAddressingBuilder();
            AttributedURI uri = builder.newURI(action);
            implementation.setAction(uri);
         }
         catch (URISyntaxException e)
         {
            // should not happen
View Full Code Here

     */
    public void sendSoapFault(final AddressingProperties addressingProperties, final SoapFault11 soapFault)
        throws SoapFault, IOException
    {
        String soapFaultAction = soapFault.getAction() ;
        AttributedURI actionURI = null;
        if (soapFaultAction == null)
        {
            soapFaultAction = faultAction;
        }
        try {
View Full Code Here

        // TODO - we need the 2.1 verison of Service so we can specify that we want to use the WS Addressing feature
        ActivationService service = getActivationService();
        // ActivationPortType port = service.getPort(ActivationPortType.class, new AddressingFeature(true, true));
        ActivationPortType port = service.getPort(ActivationPortType.class);
        BindingProvider bindingProvider = (BindingProvider)port;
        AttributedURI toUri = addressingProperties.getTo();
        /*
         * we have to add the JaxWS WSAddressingClientHandler because we cannot specify the WSAddressing feature
         */
        List<Handler> customHandlerChain = new ArrayList<Handler>();
    customHandlerChain.add(new WSAddressingClientHandler());
    bindingProvider.getBinding().setHandlerChain(customHandlerChain);

        Map<String, Object> requestContext = bindingProvider.getRequestContext();
        requestContext.put(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES, addressingProperties);
      // jbossws should do this for us . . .
      requestContext.put(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND, addressingProperties);
        requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, toUri.getURI().toString());
        try {
            addressingProperties.setAction(builder.newURI(action));
        } catch (URISyntaxException use) {
            // TODO log this error
        }
View Full Code Here

     */
    public void sendSoapFault(final AddressingProperties addressingProperties, final SoapFault11 soapFault)
        throws SoapFault, IOException
    {
        String soapFaultAction = soapFault.getAction() ;
        AttributedURI actionURI = null;
        if (soapFaultAction == null)
        {
            soapFaultAction = faultAction;
        }
        try {
View Full Code Here

   public SubscribeResponse subscribeOp(@WebParam(name = "Subscribe", targetNamespace = "http://schemas.xmlsoap.org/ws/2004/08/eventing", partName = "body") Subscribe request) {
      try
      {
         // retrieve addressing headers
         AddressingProperties inProps = getAddrProperties();
         AttributedURI eventSourceURI = inProps.getTo();
         getLogger().debug("Subscribe request for event source: " + eventSourceURI.getURI());

         assertSubscriberEndpoints(request);
         EndpointReferenceType notifyTo = request.getDelivery().getNotifyTo();
         EndpointReferenceType endTo = request.getEndTo();

         // adapt filter elements
         Filter filter = null;
         if (request.getFilter() != null)
         {
            try {
               filter = new Filter(
                  new URI(request.getFilter().getDialect()),
                  (String)request.getFilter().getContent().get(0));
            } catch (URISyntaxException e) {
               throw new WSException(e);
            }
         }

         // invoke subscription manager
         SubscriptionManagerMBean subscriptionManager = getSubscriptionManager();
         SubscriptionTicket ticket = subscriptionManager.subscribe(
            eventSourceURI.getURI(),
            notifyTo, endTo,
            request.getExpires(),
            filter
         );
View Full Code Here

   public SubscribeResponse subscribeOp(@WebParam(name = "Subscribe", targetNamespace = "http://schemas.xmlsoap.org/ws/2004/08/eventing", partName = "body") Subscribe request) {
      try
      {
         // retrieve addressing headers
         AddressingProperties inProps = getAddrProperties();
         AttributedURI eventSourceURI = inProps.getTo();
         getLogger().debug("Subscribe request for event source: " + eventSourceURI.getURI());

         assertSubscriberEndpoints(request);
         EndpointReferenceType notifyTo = request.getDelivery().getNotifyTo();
         EndpointReferenceType endTo = request.getEndTo();

         // adapt filter elements
         Filter filter = null;
         if (request.getFilter() != null)
         {
            try {
               filter = new Filter(
                  new URI(request.getFilter().getDialect()),
                  (String)request.getFilter().getContent().get(0));
            } catch (URISyntaxException e) {
               throw new WSException(e);
            }
         }

         // invoke subscription manager
         SubscriptionManagerMBean subscriptionManager = getSubscriptionManager();
         SubscriptionTicket ticket = subscriptionManager.subscribe(
            eventSourceURI.getURI(),
            notifyTo, endTo,
            request.getExpires(),
            filter
         );
View Full Code Here

TOP

Related Classes of javax.xml.ws.addressing.AttributedURI

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.