Package org.apache.axis.types

Examples of org.apache.axis.types.URI$MalformedURIException


      // Build the TopicExpressionType for the request.
      TopicExpressionType tet = new TopicExpressionType(  );

      // Currently on the Simple dialect is supported.
      tet.setDialect( new URI( TopicsConstants.DIALECT_TOPIC_EXPRESSION_SIMPLE ) );
      tet.set_any( this.buildTopicExpressionTypeAny( propQname ) );
      request.setTopicExpression( tet );

      // Setup other subscription information.
      Calendar terminationTime = Calendar.getInstance(  );
View Full Code Here


    * @throws URI.MalformedURIException
    */
   public static org.apache.axis.types.URI toAxisURI( java.net.URI uri )
   throws URI.MalformedURIException
   {
      return new URI( uri.toString(  ) );
   }
View Full Code Here

       */
      request.setConsumerReference( consumerEprForStub );

      // Set up the request to ask for a subscription to the change notification of the given Resource Property
      TopicExpressionType tet = new TopicExpressionType(  );
      tet.setDialect( new URI( TopicsConstants.DIALECT_TOPIC_EXPRESSION_SIMPLE ) );
      tet.set_any( new MessageElement[]
                   {
                      new MessageElement( SensorWsdmServiceWSResource.PropertyQNames.TEMPERATURE )
                   } );
      request.setTopicExpression( tet );
View Full Code Here

        createSeqRMMsgContext.setRMHeaders(rmHeaders);

        AddressingHeaders csAddrHeaders = getAddressingHeaedersForCreateSequenceRequest(rmMsgCtx,
                endPoint, msgID);

        csAddrHeaders.setAction(new Action(new URI(Constants.WSRM.ACTION_CREATE_SEQUENCE)));
        createSeqRMMsgContext.setAddressingHeaders(csAddrHeaders);

        createSeqRMMsgContext.setMessageID(msgID);
        createSeqRMMsgContext.addToMsgIdList(msgID);
        createSeqRMMsgContext.setSync(rmMsgCtx.getSync());
View Full Code Here

        return createSeqRMMsgContext;
    }

    private static synchronized AddressingHeaders getAddressingHeaedersForCreateSequenceRequest(RMMessageContext rmMsgCtx, byte endPoint, String msgID) throws Exception {
        AddressingHeaders csAddrHeaders = new AddressingHeaders();
        csAddrHeaders.setMessageID(new MessageID(new URI(msgID)));
        if (endPoint == Constants.SERVER) {
            AddressingHeaders ah = rmMsgCtx.getAddressingHeaders();
            csAddrHeaders.setFrom(new EndpointReference(ah.getTo().toString()));
            csAddrHeaders.setReplyTo(new EndpointReference(ah.getTo().toString()));
            csAddrHeaders.setFaultTo(new EndpointReference(ah.getTo().toString()));
View Full Code Here

    private static synchronized AcksTo getAcksTo(RMMessageContext rmMsgCtx, byte endPoint) throws Exception {
        AcksTo acksTo = null;
        if (endPoint == Constants.CLIENT) {
            if (rmMsgCtx.getSync()) {
                acksTo = new AcksTo(new Address(new URI(Constants.WSA.NS_ADDRESSING_ANONYMOUS)));
            } else {
                if (rmMsgCtx.getAcksTo() != null)
                    acksTo = new AcksTo(new Address(new URI(rmMsgCtx.getAcksTo())));
                //                else if (rmMsgCtx.getReplyTo() != null)
                //                    acksTo = new AcksTo(new Address(new URI(rmMsgCtx.getReplyTo())));
                else if (rmMsgCtx.getSourceURL() != null)
                    acksTo = new AcksTo(new Address(new URI(rmMsgCtx.getSourceURL())));
            }
        } else if (endPoint == Constants.SERVER) {
            AddressingHeaders addrHeaders = rmMsgCtx.getAddressingHeaders();

            To incommingTo = addrHeaders.getTo();
View Full Code Here

        AddressingHeaders addHeaders = getAddressingHeadersForTerminateSequence(rmMsgCtx, endPoint);
        SOAPEnvelope soe = new SOAPEnvelope();
        addHeaders.toEnvelope(soe);
        AddressingHeaders terSqAddrHeaders = new AddressingHeaders(soe);
        terSqAddrHeaders.setAction(new Action(new URI(Constants.WSRM.ACTION_TERMINATE_SEQUENCE)));

        terSeqRMMsgContext.setAddressingHeaders(terSqAddrHeaders);
        terSeqRMMsgContext.setOutGoingAddress(rmMsgCtx.getOutGoingAddress());
        terSeqRMMsgContext.setMsgContext(terSeqMsgContext);
        terSeqRMMsgContext.setMessageType(Constants.MSG_TYPE_TERMINATE_SEQUENCE);
View Full Code Here

    public static synchronized RMMessageContext createServiceRequestMessage(RMMessageContext rmMsgCtx)
            throws Exception {
        AddressingHeaders addrHeaders = getAddressingHeaedersForServiceRequest(rmMsgCtx);
        if (rmMsgCtx.getAction() != null)
            addrHeaders.setAction(new Action(new URI(rmMsgCtx.getAction())));
        rmMsgCtx.setAddressingHeaders(addrHeaders);
        rmMsgCtx.setMessageType(Constants.MSG_TYPE_SERVICE_REQUEST);
        rmMsgCtx.setMessageID(Constants.UUID + uuidGen.nextUUID());
        return rmMsgCtx;
View Full Code Here

        AddressingHeaders addressingHeaders = rmMessageContext.getAddressingHeaders();
        SOAPEnvelope envelope = createBasicEnvelop();

        AddressingHeaders outGoingAddressingHaders = new AddressingHeaders(envelope);
        Action action = new Action(new URI(Constants.WSRM.ACTION_CREATE_SEQUENCE_RESPONSE));

        outGoingAddressingHaders.setAction(action);

        String str = getNextUUID();

        MessageID messageId = new MessageID(new URI(str));
        outGoingAddressingHaders.setMessageID(messageId);

        To incommingTo = addressingHeaders.getTo();
        URI fromAddressURI = new URI(incommingTo.toString());

        Address fromAddress = new Address(fromAddressURI);
        From from = new From(fromAddress);
        outGoingAddressingHaders.setFrom(from);

        //RelatesTo
        MessageID incommingMessageId = addressingHeaders.getMessageID();
        outGoingAddressingHaders.addRelatesTo(incommingMessageId.toString(),
                new QName(org.apache.axis.message.addressing.Constants.NS_PREFIX_ADDRESSING,
                        org.apache.axis.message.addressing.Constants.NS_URI_ADDRESSING_DEFAULT));

        //SettingTo
        AttributedURI incommingAddress = null;
        if (!rmMessageContext.getSync()) {
            if (addressingHeaders.getReplyTo() != null) {
                ReplyTo incommingReplyTo = (ReplyTo) addressingHeaders.getReplyTo();
                incommingAddress = incommingReplyTo.getAddress();
            }

            To to = new To(new URI(incommingAddress.toString()));
            outGoingAddressingHaders.setTo(to);
        }
        outGoingAddressingHaders.toEnvelope(envelope, null);

        CreateSequenceResponse response = new CreateSequenceResponse();
View Full Code Here

        AddressingHeaders addressingHeaders = rmMessageContext.getAddressingHeaders();
        SOAPEnvelope envelope = createBasicEnvelop();

        AddressingHeaders outGoingAddressingHaders = new AddressingHeaders(envelope);
        Action action = new Action(new URI(Constants.WSRM.SEQUENCE_ACKNOWLEDGEMENT_ACTION));

        outGoingAddressingHaders.setAction(action);

        MessageID messageId = new MessageID(new URI(getNextUUID()));
        outGoingAddressingHaders.setMessageID(messageId);

        To incommingTo = addressingHeaders.getTo();
        URI fromAddressURI = new URI(incommingTo.toString());

        Address fromAddress = new Address(fromAddressURI);
        From from = new From(fromAddress);
        outGoingAddressingHaders.setFrom(from);

        To to = new To(new URI(toAddress));
        outGoingAddressingHaders.setTo(to);
        outGoingAddressingHaders.toEnvelope(envelope, null);

        SequenceAcknowledgement seqAck = new SequenceAcknowledgement();
        seqAck.setAckRanges(ackRangeList);
View Full Code Here

TOP

Related Classes of org.apache.axis.types.URI$MalformedURIException

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.