|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.jaxws.server.dispatcher.JavaDispatcher
public abstract class JavaDispatcher
JavaDispatcher is an abstract class that can be extended to implement an EndpointDispatcher to a Java object.
Nested Class Summary | |
---|---|
protected class |
JavaDispatcher.AsyncInvocationWorker
|
Field Summary | |
---|---|
protected Class |
serviceImplClass
|
protected Object |
serviceInstance
|
Constructor Summary | |
---|---|
protected |
JavaDispatcher(Class impl,
Object serviceInstance)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Class serviceImplClass
protected Object serviceInstance
Constructor Detail |
---|
protected JavaDispatcher(Class impl, Object serviceInstance)
Method Detail |
---|
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
- Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |