Class BaseDispatch<T>

    • Method Detail

      • createMessageFromValue

        protected abstract Message createMessageFromValue​(Object value)
        Take the input object and turn it into an OMElement so that it can be sent.
        Parameters:
        value -
        Returns:
      • getValueFromMessage

        protected abstract Object getValueFromMessage​(Message message)
        Given a message, return the business object based on the requestor's required format (PAYLOAD vs. MESSAGE) and datatype.
        Parameters:
        message -
        Returns:
      • createAsyncResponseListener

        protected abstract AsyncResponse createAsyncResponseListener()
        Creates an instance of the AsyncListener that is to be used for waiting for async responses.
        Returns:
        a configured AsyncListener instance
      • invoke

        public Object invoke​(Object obj)
                      throws WebServiceException
        Note to developer: When making a change or fix to this method, please consider all 5 Proxy/Dispatch "invoke" methods now available in JAX-WS. For Dispatch, these are: 1) Synchronous invoke() 2) invokeOneWay() 3) invokeAsynch (Future) 4) invokeAsynch (Callback) For Proxy: 5) invokeSEIMethod()
        Specified by:
        invoke in interface Dispatch<T>
        Throws:
        WebServiceException
      • initMessageContext

        protected void initMessageContext​(Object obj,
                                          MessageContext requestMsgCtx)
      • invokeOneWay

        public void invokeOneWay​(Object obj)
                          throws WebServiceException
        Note to developer: When making a change or fix to this method, please consider all 5 Proxy/Dispatch "invoke" methods now available in JAX-WS. For Dispatch, these are: 1) Synchronous invoke() 2) invokeOneWay() 3) invokeAsynch (Future) 4) invokeAsynch (Callback) For Proxy: 5) invokeSEIMethod()
        Specified by:
        invokeOneWay in interface Dispatch<T>
        Throws:
        WebServiceException
      • invokeAsync

        public Future<?> invokeAsync​(Object obj,
                                     AsyncHandler asynchandler)
                              throws WebServiceException
        Note to developer: When making a change or fix to this method, please consider all 5 Proxy/Dispatch "invoke" methods now available in JAX-WS. For Dispatch, these are: 1) Synchronous invoke() 2) invokeOneWay() 3) invokeAsynch (Future) 4) invokeAsynch (Callback) For Proxy: 5) invokeSEIMethod()
        Specified by:
        invokeAsync in interface Dispatch<T>
        Throws:
        WebServiceException
      • invokeAsync

        public Response invokeAsync​(Object obj)
                             throws WebServiceException
        Note to developer: When making a change or fix to this method, please consider all 5 Proxy/Dispatch "invoke" methods now available in JAX-WS. For Dispatch, these are: 1) Synchronous invoke() 2) invokeOneWay() 3) invokeAsynch (Future) 4) invokeAsynch (Callback) For Proxy: 5) invokeSEIMethod()
        Specified by:
        invokeAsync in interface Dispatch<T>
        Throws:
        WebServiceException
      • setServiceClient

        public void setServiceClient​(ServiceClient sc)
      • getFaultResponse

        public static WebServiceException getFaultResponse​(MessageContext msgCtx)
        Returns the fault that is contained within the MessageContext for an invocation. If no fault exists, null will be returned.
        Parameters:
        msgCtx -
        Returns:
      • hasFaultResponse

        public boolean hasFaultResponse​(MessageContext msgCtx)
        Returns a boolean indicating whether or not the MessageContext contained a fault.
        Parameters:
        msgCtx -
        Returns: