org.apache.soap.server
Class MessageRouter

java.lang.Object
  |
  +--org.apache.soap.server.MessageRouter

public class MessageRouter
extends java.lang.Object

This class is a transport independent SOAP message router. However you do it, if you get a SOAP envelope to me, I will deliver that to the right method of the object you give me to work on.

Author:
Sanjiva Weerawarana

Constructor Summary
MessageRouter()
           
 
Method Summary
static void invoke(DeploymentDescriptor dd, Envelope env, java.lang.Object targetObject, java.lang.String messageName, SOAPContext reqCtx, SOAPContext resCtx)
          Deliver the message to the appropriate method on the given target object.
static boolean validMessage(DeploymentDescriptor dd, java.lang.String messageName)
          Check whether the message is valid - does the service publish it?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageRouter

public MessageRouter()
Method Detail

validMessage

public static boolean validMessage(DeploymentDescriptor dd,
                                   java.lang.String messageName)
Check whether the message is valid - does the service publish it?

invoke

public static void invoke(DeploymentDescriptor dd,
                          Envelope env,
                          java.lang.Object targetObject,
                          java.lang.String messageName,
                          SOAPContext reqCtx,
                          SOAPContext resCtx)
                   throws SOAPException
Deliver the message to the appropriate method on the given target object.


Copyright © 2001 Apache XML Project. All Rights Reserved.