Class OneWayFeature


  • @ManagedData
    public class OneWayFeature
    extends javax.xml.ws.WebServiceFeature
    Unsupported RI extension to work around an issue in WSIT.

    This feature is not meant to be used by a common Web service developer as there is no need to send the above mentioned header for a one-way operation. But these properties may need to be sent in certain middleware Web services.

    This feature allows ReplyTo, From and RelatesTo Message Addressing Properties to be added for all messages that are sent from the port configured with this annotation. All operations are assumed to be one-way, and this feature should be used for one-way operations only. If a non-null ReplyTo is specified, then MessageID property is also added.

    Author:
    Arun Gupta
    • Method Detail

      • getMessageId

        public String getMessageId()
      • getID

        @ManagedAttribute
        public String getID()
        Specified by:
        getID in class javax.xml.ws.WebServiceFeature
      • hasSslEprs

        public boolean hasSslEprs()
      • getRelatesToID

        @ManagedAttribute
        public String getRelatesToID()
        Getter for MessageID for wsa:RelatesTo header.
        Returns:
        address of the wsa:FaultTo header
      • setRelatesToID

        public void setRelatesToID​(String id)
        Setter for MessageID for wsa:RelatesTo header.
        Parameters:
        id -
      • isUseAsyncWithSyncInvoke

        public boolean isUseAsyncWithSyncInvoke()
        Getter for whether async is to be used with sync invoke
        Returns:
        whether async is to be used with sync invoke
      • setUseAsyncWithSyncInvoke

        public void setUseAsyncWithSyncInvoke​(boolean useAsyncWithSyncInvoke)
        Setter for whether async is to be used with sync invoke
        Parameters:
        useAsyncWithSyncInvoke - whether async is to be used with sync invoke
      • enableSslForEpr

        public static WSEndpointReference enableSslForEpr​(@NotNull
                                                          WSEndpointReference epr,
                                                          @Nullable
                                                          String sslHost,
                                                          int sslPort)
        Calculate a new EPR using an existing one and substituting SSL specific host and port values.
        Parameters:
        epr - Existing EPR that will be the starting point for the SSL version
        sslHost - New SSL host or null if the existing host should be used
        sslPort - New SSL port or -1 if the existing port should be used
        Returns: