org.codehaus.xfire.service.binding
Class ServiceInvocationHandler
java.lang.Object
org.codehaus.xfire.handler.AbstractHandler
org.codehaus.xfire.service.binding.ServiceInvocationHandler
- All Implemented Interfaces:
- Handler
public class ServiceInvocationHandler
- extends AbstractHandler
This class is responsible for taking the parameters on the InMessage,
invoking the service, then creating an OutMessage.
- Author:
- Dan Diephouse
Fields inherited from interface org.codehaus.xfire.handler.Handler |
ROLE |
Method Summary |
protected void |
execute(java.lang.Runnable runnable,
Service service,
OperationInfo operation)
Run the Runnable which executes our service. |
protected java.lang.Object[] |
fillInHolders(MessageContext context,
OperationInfo opInfo,
MessageInfo inMsg,
MessageInfo outMsg,
MessagePartContainer headerMsg,
MessagePartContainer outHeaderMsg,
java.util.List params)
Looks for holders, instantiates them, then inserts them into the parameters. |
void |
invoke(MessageContext context)
Invoke a handler. |
static java.lang.Object |
readHeaders(MessageContext context,
MessagePartContainer headerMsg,
java.lang.Object[] paramArray)
|
protected void |
sendMessage(MessageContext context,
java.lang.Object[] params,
OperationInfo operation,
Invoker invoker)
|
static void |
writeHeaders(MessageContext context,
java.lang.Object responseValue)
|
Methods inherited from class org.codehaus.xfire.handler.AbstractHandler |
after, before, getAfter, getBefore, getPhase, getRoles, getUnderstoodHeaders, handleFault, setAfter, setBefore, setPhase |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceInvocationHandler
public ServiceInvocationHandler()
invoke
public void invoke(MessageContext context)
throws java.lang.Exception
- Description copied from interface:
Handler
- Invoke a handler. If a fault occurs it will be handled via the
handleFault
method.
- Throws:
java.lang.Exception
execute
protected void execute(java.lang.Runnable runnable,
Service service,
OperationInfo operation)
- Run the Runnable which executes our service.
- Parameters:
runnable
- service
- operation
-
readHeaders
public static java.lang.Object readHeaders(MessageContext context,
MessagePartContainer headerMsg,
java.lang.Object[] paramArray)
throws XFireFault
- Throws:
XFireFault
fillInHolders
protected java.lang.Object[] fillInHolders(MessageContext context,
OperationInfo opInfo,
MessageInfo inMsg,
MessageInfo outMsg,
MessagePartContainer headerMsg,
MessagePartContainer outHeaderMsg,
java.util.List params)
throws XFireFault
- Looks for holders, instantiates them, then inserts them into the parameters.
- Returns:
-
- Throws:
XFireFault
sendMessage
protected void sendMessage(MessageContext context,
java.lang.Object[] params,
OperationInfo operation,
Invoker invoker)
throws java.lang.Exception
- Parameters:
context
- params
- operation
- invoker
-
- Throws:
java.lang.Exception
writeHeaders
public static void writeHeaders(MessageContext context,
java.lang.Object responseValue)
throws XFireFault,
javax.xml.stream.XMLStreamException
- Throws:
XFireFault
javax.xml.stream.XMLStreamException
Copyright © 2004-2008. All Rights Reserved.