public class AsyncProviderInvokerTube.AsyncProviderCallbackImpl extends Object implements AsyncProviderCallback<T>
Constructor and Description |
---|
AsyncProviderCallbackImpl(com.sun.xml.ws.api.message.Packet request,
com.sun.xml.ws.server.provider.AsyncProviderInvokerTube.Resumer resumer) |
Modifier and Type | Method and Description |
---|---|
void |
send(T param)
Indicates that a request was processed successfully.
|
void |
sendError(Throwable t)
Indicates that an error had occured while processing a request.
|
public AsyncProviderCallbackImpl(com.sun.xml.ws.api.message.Packet request, com.sun.xml.ws.server.provider.AsyncProviderInvokerTube.Resumer resumer)
public void send(@Nullable T param)
AsyncProviderCallback
send
in interface AsyncProviderCallback<T>
param
- Represents an object to be sent back to the client
as a response. To indicate one-way, response needs to be nullpublic void sendError(@NotNull Throwable t)
AsyncProviderCallback
sendError
in interface AsyncProviderCallback<T>
t
- The error is propagated to the client. For example, if this is
a SOAP-based web service, the server will send back a SOAP fault.Copyright © 2015 Oracle Corporation. All rights reserved.