Package javax.xml.ws.addressing

Examples of javax.xml.ws.addressing.AddressingBuilder


    private static AttributedURI faultAction = null;

    private static synchronized AttributedURI getFaultAction()
    {
        if (faultAction == null) {
            AddressingBuilder builder = AddressingBuilder.getAddressingBuilder();

            try {
                faultAction = builder.newURI(CoordinationConstants.WSCOOR_ACTION_FAULT);
            } catch (URISyntaxException e) {
                // TODO log error here
            }
        }
View Full Code Here


        //CoordinationContextPolicy.register(handlerRegistry) ;
        // Add client policies
        //ClientPolicy.register(handlerRegistry) ;

        //soapService = new SoapService(handlerRegistry) ;
        AddressingBuilder builder = AddressingBuilder.getAddressingBuilder();
        final String initiatorURIString = ServiceRegistry.getRegistry().getServiceURI(InteropConstants.SERVICE_INITIATOR) ;
        URI uri = null;
        try {
            uri = new URI(initiatorURIString);
            initiator = builder.newEndpointReference(uri);
        } catch (URISyntaxException e) {
            // TODO log error here
        }
    }
View Full Code Here

    private static AttributedURI faultAction = null;

    private static synchronized AttributedURI getFaultAction()
    {
        if (faultAction == null) {
            AddressingBuilder builder = AddressingBuilder.getAddressingBuilder();

            try {
                faultAction = builder.newURI(CoordinationConstants.WSCOOR_ACTION_FAULT);
            } catch (URISyntaxException e) {
                // TODO log error here
            }
        }
View Full Code Here

    /**
     * Construct the participant completion coordinator client.
     */
    private CoordinatorCompletionCoordinatorClient()
    {
        final AddressingBuilder builder = AddressingBuilder.getAddressingBuilder();
        try {
            completedAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_COMPLETED);
            failAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_FAIL);
            compensatedAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_COMPENSATED);
            closedAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_CLOSED);
            cancelledAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_CANCELLED);
            exitAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_EXIT);
            cannotCompleteAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_CANNOT_COMPLETE);
            getStatusAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_GET_STATUS);
            statusAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_STATUS);
        } catch (URISyntaxException use) {
            // TODO - log fault and throw exception
        }
        //final HandlerRegistry handlerRegistry = new HandlerRegistry() ;

        // Add WS-Addressing
        //AddressingPolicy.register(handlerRegistry) ;
        // Add client policies
        //ClientPolicy.register(handlerRegistry) ;

        final String coordinatorCompletionParticipantURIString =
            ServiceRegistry.getRegistry().getServiceURI(BusinessActivityConstants.COORDINATOR_COMPLETION_PARTICIPANT_SERVICE_NAME, false) ;
        final String secureCoordinatorCompletionParticipantURIString =
            ServiceRegistry.getRegistry().getServiceURI(BusinessActivityConstants.COORDINATOR_COMPLETION_PARTICIPANT_SERVICE_NAME, true) ;
        try {
            URI coordinatorCompletionParticipantURI = new URI(coordinatorCompletionParticipantURIString) ;
            coordinatorCompletionParticipant = builder.newEndpointReference(coordinatorCompletionParticipantURI);
        } catch (URISyntaxException use) {
            // TODO - log fault and throw exception
        }
        try {
            URI secureCoordinatorCompletionParticipantURI = new URI(secureCoordinatorCompletionParticipantURIString) ;
            secureCoordinatorCompletionParticipant = builder.newEndpointReference(secureCoordinatorCompletionParticipantURI);
        } catch (URISyntaxException use) {
            // TODO - log fault and throw exception
        }
    }
View Full Code Here

    /**
     * Construct the participant completion participant client.
     */
    private ParticipantCompletionParticipantClient()
    {
        final AddressingBuilder builder = AddressingBuilder.getAddressingBuilder();
        try {
            closeAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_CLOSE);
            cancelAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_CANCEL);
            compensateAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_COMPENSATE);
            failedAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_FAILED);
            exitedAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_EXITED);
            notCompletedAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_NOT_COMPLETED);
            getStatusAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_GET_STATUS);
            statusAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_STATUS);
        } catch (URISyntaxException use) {
            // TODO - log fault and throw exception
        }
        // final HandlerRegistry handlerRegistry = new HandlerRegistry() ;

        // Add WS-Addressing
        // AddressingPolicy.register(handlerRegistry) ;
        // Add client policies
        // ClientPolicy.register(handlerRegistry) ;

        final String participantCompletionCoordinatorURIString =
            ServiceRegistry.getRegistry().getServiceURI(BusinessActivityConstants.PARTICIPANT_COMPLETION_COORDINATOR_SERVICE_NAME, false) ;
        final String secureParticipantCompletionCoordinatorURIString =
            ServiceRegistry.getRegistry().getServiceURI(BusinessActivityConstants.PARTICIPANT_COMPLETION_COORDINATOR_SERVICE_NAME, true) ;
        try {
            URI secureParticipantCompletionCoordinatorURI = new URI(secureParticipantCompletionCoordinatorURIString) ;
            secureParticipantCompletionCoordinator = builder.newEndpointReference(secureParticipantCompletionCoordinatorURI);
        } catch (URISyntaxException use) {
            // TODO - log fault and throw exception
        }
        try {
            URI participantCompletionCoordinatorURI = new URI(participantCompletionCoordinatorURIString) ;
            participantCompletionCoordinator = builder.newEndpointReference(participantCompletionCoordinatorURI);
        } catch (URISyntaxException use) {
            // TODO - log fault and throw exception
        }
    }
View Full Code Here

    /**
     * Construct the terminator participant client.
     */
    private TerminationCoordinatorClient()
    {
        final AddressingBuilder builder = AddressingBuilder.getAddressingBuilder();
        try {
            completeAction = builder.newURI(ArjunaTXConstants.WSARJTX_ACTION_COMPLETE);
            closeAction = builder.newURI(ArjunaTXConstants.WSARJTX_ACTION_CLOSE);
            cancelAction = builder.newURI(ArjunaTXConstants.WSARJTX_ACTION_CANCEL);
            faultAction = builder.newURI(ArjunaTXConstants.WSARJTX_ACTION_SOAP_FAULT) ;
        } catch (URISyntaxException use) {
            // TODO - log fault and throw exception
        }
        //final HandlerRegistry handlerRegistry = new HandlerRegistry() ;

        // Add WS-Addressing
        //AddressingPolicy.register(handlerRegistry) ;
        // Add client policies
        //ClientPolicy.register(handlerRegistry) ;
        final String terminationParticipantURIString =
            ServiceRegistry.getRegistry().getServiceURI(ArjunaTX11Constants.TERMINATION_PARTICIPANT_SERVICE_NAME, false);
        final String secureTerminationParticipantURIString =
            ServiceRegistry.getRegistry().getServiceURI(ArjunaTX11Constants.TERMINATION_PARTICIPANT_SERVICE_NAME, true);
        try {
            URI terminationParticipantURI = new URI(terminationParticipantURIString);
            terminationParticipant = builder.newEndpointReference(terminationParticipantURI);
        } catch (URISyntaxException use) {
            // TODO - log fault and throw exception
        }
        try {
            URI secureTerminationParticipantURI = new URI(secureTerminationParticipantURIString);
            secureTerminationParticipant = builder.newEndpointReference(secureTerminationParticipantURI);
        } catch (URISyntaxException use) {
            // TODO - log fault and throw exception
        }
    }
View Full Code Here

    /**
     * Construct the participant completion coordinator client.
     */
    private CoordinatorCompletionParticipantClient()
    {
        final AddressingBuilder builder = AddressingBuilder.getAddressingBuilder();
        try {
            completeAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_COMPLETE);
            closeAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_CLOSE);
            cancelAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_CANCEL);
            compensateAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_COMPENSATE);
            failedAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_FAILED);
            exitedAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_EXITED);
            notCompletedAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_NOT_COMPLETED);
            getStatusAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_GET_STATUS);
            statusAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_STATUS);
        } catch (URISyntaxException use) {
            // TODO - log fault and throw exception
        }
        // final HandlerRegistry handlerRegistry = new HandlerRegistry() ;

        // Add WS-Addressing
        // AddressingPolicy.register(handlerRegistry) ;
        // Add client policies
        // ClientPolicy.register(handlerRegistry) ;

        final String coordinatorCompletionCoordinatorURIString =
            ServiceRegistry.getRegistry().getServiceURI(BusinessActivityConstants.COORDINATOR_COMPLETION_COORDINATOR_SERVICE_NAME, false) ;
        final String secureCoordinatorCompletionCoordinatorURIString =
            ServiceRegistry.getRegistry().getServiceURI(BusinessActivityConstants.COORDINATOR_COMPLETION_COORDINATOR_SERVICE_NAME, true) ;
        try {
            URI coordinatorCompletionCoordinatorURI = new URI(coordinatorCompletionCoordinatorURIString) ;
            coordinatorCompletionCoordinator = builder.newEndpointReference(coordinatorCompletionCoordinatorURI);
        } catch (URISyntaxException use) {
            // TODO - log fault and throw exception
        }
        try {
            URI secureCoordinatorCompletionCoordinatorURI = new URI(secureCoordinatorCompletionCoordinatorURIString) ;
            secureCoordinatorCompletionCoordinator = builder.newEndpointReference(secureCoordinatorCompletionCoordinatorURI);
        } catch (URISyntaxException use) {
            // TODO - log fault and throw exception
        }
    }
View Full Code Here

        //CoordinationContextPolicy.register(handlerRegistry) ;
        // Add client policies
        //ClientPolicy.register(handlerRegistry) ;

        //soapService = new SoapService(handlerRegistry) ;
        AddressingBuilder builder = AddressingBuilder.getAddressingBuilder();
        final String initiatorURIString = ServiceRegistry.getRegistry().getServiceURI(ATInteropConstants.SERVICE_INITIATOR) ;
        URI uri = null;
        try {
            uri = new URI(initiatorURIString);
            initiator = builder.newEndpointReference(uri);
        } catch (URISyntaxException e) {
            // TODO log error here
        }
    }
View Full Code Here

    /**
     * Construct the participant completion coordinator client.
     */
    private ParticipantCompletionCoordinatorClient()
    {
        final AddressingBuilder builder = AddressingBuilder.getAddressingBuilder();
        try {
            completedAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_COMPLETED);
            failAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_FAIL);
            compensatedAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_COMPENSATED);
            closedAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_CLOSED);
            cancelledAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_CANCELLED);
            exitAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_EXIT);
            cannotCompleteAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_CANNOT_COMPLETE);
            getStatusAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_GET_STATUS);
            statusAction = builder.newURI(BusinessActivityConstants.WSBA_ACTION_STATUS);
        } catch (URISyntaxException use) {
            // TODO - log fault and throw exception
        }
        // final HandlerRegistry handlerRegistry = new HandlerRegistry() ;

        // Add WS-Addressing
        // AddressingPolicy.register(handlerRegistry) ;
        // Add client policies
        // ClientPolicy.register(handlerRegistry) ;

        final String participantCompletionParticipantURIString =
            ServiceRegistry.getRegistry().getServiceURI(BusinessActivityConstants.PARTICIPANT_COMPLETION_PARTICIPANT_SERVICE_NAME, false) ;
        final String secureParticipantCompletionParticipantURIString =
            ServiceRegistry.getRegistry().getServiceURI(BusinessActivityConstants.PARTICIPANT_COMPLETION_PARTICIPANT_SERVICE_NAME, true) ;
        try {
            URI participantCompletionParticipantURI = new URI(participantCompletionParticipantURIString) ;
            participantCompletionParticipant = builder.newEndpointReference(participantCompletionParticipantURI);
        } catch (URISyntaxException use) {
            // TODO - log fault and throw exception
        }
        try {
            URI secureParticipantCompletionParticipantURI = new URI(secureParticipantCompletionParticipantURIString) ;
            secureParticipantCompletionParticipant = builder.newEndpointReference(secureParticipantCompletionParticipantURI);
        } catch (URISyntaxException use) {
            // TODO - log fault and throw exception
        }
    }
View Full Code Here

    /**
     * Construct the terminator coordinator client.
     */
    private TerminationParticipantClient()
    {
        final AddressingBuilder builder = AddressingBuilder.getAddressingBuilder();
        try {
            completedAction = builder.newURI(ArjunaTXConstants.WSARJTX_ACTION_COMPLETED);
            closedAction = builder.newURI(ArjunaTXConstants.WSARJTX_ACTION_CLOSED);
            cancelledAction = builder.newURI(ArjunaTXConstants.WSARJTX_ACTION_CANCELLED);
            faultedAction = builder.newURI(ArjunaTXConstants.WSARJTX_ACTION_FAULTED);
            soapFaultAction = builder.newURI(ArjunaTXConstants.WSARJTX_ACTION_SOAP_FAULT);
        } catch (URISyntaxException use) {
            // TODO - log fault and throw exception
        }
        // final HandlerRegistry handlerRegistry = new HandlerRegistry() ;

        // Add WS-Addressing
        // AddressingPolicy.register(handlerRegistry) ;
        // Add client policies
        // ClientPolicy.register(handlerRegistry) ;
        final String terminationCoordinatorURIString =
            ServiceRegistry.getRegistry().getServiceURI(ArjunaTX11Constants.TERMINATION_COORDINATOR_SERVICE_NAME, false);
        final String secureTerminationCoordinatorURIString =
            ServiceRegistry.getRegistry().getServiceURI(ArjunaTX11Constants.TERMINATION_COORDINATOR_SERVICE_NAME, true);
        try {
            URI terminationCoordinatorURI = new URI(terminationCoordinatorURIString);
            terminationCoordinator = builder.newEndpointReference(terminationCoordinatorURI);
        } catch (URISyntaxException use) {
            // TODO - log fault and throw exception
        }
        try {
            URI secureTerminationCoordinatorURI = new URI(secureTerminationCoordinatorURIString);
            secureTerminationCoordinator = builder.newEndpointReference(secureTerminationCoordinatorURI);
        } catch (URISyntaxException use) {
            // TODO - log fault and throw exception
        }
    }
View Full Code Here

TOP

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

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.