public abstract class JavaDispatcher extends Object implements EndpointDispatcher
Modifier and Type | Class and Description |
---|---|
protected class |
JavaDispatcher.AsyncInvocationWorker |
Modifier and Type | Field and Description |
---|---|
protected Class |
serviceImplClass |
protected Object |
serviceInstance |
Modifier | Constructor and Description |
---|---|
protected |
JavaDispatcher(Class impl,
Object serviceInstance) |
Modifier and Type | Method and Description |
---|---|
protected abstract MessageContext |
createFaultResponse(MessageContext request,
Throwable fault) |
protected abstract MessageContext |
createResponse(MessageContext request,
Object[] input,
Object output) |
Class |
getServiceImplementationClass() |
abstract MessageContext |
invoke(MessageContext request)
Invoke the target endpoint synchronously
|
abstract void |
invokeAsync(MessageContext request,
EndpointCallback callback) |
abstract void |
invokeOneWay(MessageContext request) |
protected Object |
invokeTargetOperation(Method method,
Object[] args) |
protected void |
responseReady(EndpointInvocationContext eic)
This will call the InvocationListener instances that were called during
the request processing for this message.
|
protected static void |
setCheckedExceptionProperty(MessageContext response,
Method m,
Throwable t)
Determine if the thrown exception is a checked exception.
|
protected static void |
setExceptionProperties(MessageContext response,
Method m,
Throwable t)
Information about the exception is stored on the outbound response context
|
protected static void |
setFaultResponseAction(Throwable exception,
MessageContext request,
MessageContext response) |
protected static void |
setWebMethodExceptionProperty(MessageContext response,
Throwable t)
Store the actual exception on the response context
|
protected Class serviceImplClass
protected Object serviceInstance
public abstract MessageContext invoke(MessageContext request) throws Exception
EndpointDispatcher
invoke
in interface EndpointDispatcher
Exception
public abstract void invokeOneWay(MessageContext request)
invokeOneWay
in interface EndpointDispatcher
public abstract void invokeAsync(MessageContext request, EndpointCallback callback)
invokeAsync
in interface EndpointDispatcher
protected abstract MessageContext createResponse(MessageContext request, Object[] input, Object output)
protected abstract MessageContext createFaultResponse(MessageContext request, Throwable fault)
public Class getServiceImplementationClass()
protected Object invokeTargetOperation(Method method, Object[] args) throws Throwable
Throwable
protected void responseReady(EndpointInvocationContext eic)
protected static void setFaultResponseAction(Throwable exception, MessageContext request, MessageContext response)
protected static void setCheckedExceptionProperty(MessageContext response, Method m, Throwable t)
response
- MessageContextm
- Methodt
- Throwableprotected static void setWebMethodExceptionProperty(MessageContext response, Throwable t)
response
- MessageContextt
- Throwableprotected static void setExceptionProperties(MessageContext response, Method m, Throwable t)
response
- MessageContextm
- Methodt
- ThrowableCopyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.