Class JavaDispatcher
java.lang.Object
org.apache.axis2.jaxws.server.dispatcher.JavaDispatcher
- All Implemented Interfaces:
EndpointDispatcher
- Direct Known Subclasses:
JavaBeanDispatcher,ProviderDispatcher
JavaDispatcher is an abstract class that can be extended to implement an EndpointDispatcher to a
Java object.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract MessageContextcreateFaultResponse(MessageContext request, Throwable fault) protected abstract MessageContextcreateResponse(MessageContext request, Object[] input, Object output) abstract MessageContextinvoke(MessageContext request) Invoke the target endpoint synchronouslyabstract voidinvokeAsync(MessageContext request, EndpointCallback callback) abstract voidinvokeOneWay(MessageContext request) protected ObjectinvokeTargetOperation(Method method, Object[] args) protected voidThis will call the InvocationListener instances that were called during the request processing for this message.protected static voidsetCheckedExceptionProperty(MessageContext response, Method m, Throwable t) Determine if the thrown exception is a checked exception.protected static voidsetExceptionProperties(MessageContext response, Method m, Throwable t) Information about the exception is stored on the outbound response contextprotected static voidsetFaultResponseAction(Throwable exception, MessageContext request, MessageContext response) protected static voidsetWebMethodExceptionProperty(MessageContext response, Throwable t) Store the actual exception on the response context
-
Field Details
-
serviceImplClass
-
serviceInstance
-
-
Constructor Details
-
JavaDispatcher
-
-
Method Details
-
invoke
Description copied from interface:EndpointDispatcherInvoke the target endpoint synchronously- Specified by:
invokein interfaceEndpointDispatcher- Returns:
- Throws:
Exception
-
invokeOneWay
- Specified by:
invokeOneWayin interfaceEndpointDispatcher
-
invokeAsync
- Specified by:
invokeAsyncin interfaceEndpointDispatcher
-
createResponse
protected abstract MessageContext createResponse(MessageContext request, Object[] input, Object output) -
createFaultResponse
-
getServiceImplementationClass
-
invokeTargetOperation
- Throws:
Throwable
-
responseReady
This will call the InvocationListener instances that were called during the request processing for this message. -
setFaultResponseAction
protected static void setFaultResponseAction(Throwable exception, MessageContext request, MessageContext response) -
setCheckedExceptionProperty
Determine if the thrown exception is a checked exception. If so, then set the name of the checked exception on the response context- Parameters:
response- MessageContextm- Methodt- Throwable
-
setWebMethodExceptionProperty
Store the actual exception on the response context- Parameters:
response- MessageContextt- Throwable
-
setExceptionProperties
Information about the exception is stored on the outbound response context- Parameters:
response- MessageContextm- Methodt- Throwable
-