soaprmi.soaprpc
Class MethodDispatcher

java.lang.Object
  extended bysoaprmi.soaprpc.MethodDispatcher

public class MethodDispatcher
extends java.lang.Object

All that is necessary to execute SOAP RPC call to specified local method.

Version:
$Revision: 1.10 $
Author:
Aleksander Slominski

Method Summary
static MethodDispatcher createMethodDispatcher(java.lang.Object target_, Port port_, XmlJavaOperationMap oprtn_, XmlJavaMapping mapping_)
           
 boolean dispatch(DeserializeContext dctx, org.gjt.xpp.XmlStartTag stag, java.io.Writer writer)
          This a key method for executing SOAP requests.
 java.lang.String getMethodRequestName()
           
 void receiveRequest(DeserializeContext dctx, org.gjt.xpp.XmlStartTag stag)
           
 boolean sendResponseOrException(java.io.Writer writer_, java.lang.Object result, java.lang.Exception ex)
          If sending response or fault fails system *MUST* propagate exception upstream so rts will shutdown socket indicating to client that something goes wrong.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createMethodDispatcher

public static MethodDispatcher createMethodDispatcher(java.lang.Object target_,
                                                      Port port_,
                                                      XmlJavaOperationMap oprtn_,
                                                      XmlJavaMapping mapping_)
                                               throws ServerException
Throws:
ServerException

dispatch

public boolean dispatch(DeserializeContext dctx,
                        org.gjt.xpp.XmlStartTag stag,
                        java.io.Writer writer)
                 throws java.io.IOException,
                        DeserializeException
This a key method for executing SOAP requests.

Throws:
java.io.IOException
DeserializeException

getMethodRequestName

public java.lang.String getMethodRequestName()

receiveRequest

public void receiveRequest(DeserializeContext dctx,
                           org.gjt.xpp.XmlStartTag stag)
                    throws java.io.IOException,
                           RemoteException,
                           DeserializeException,
                           org.gjt.xpp.XmlPullParserException
Throws:
java.io.IOException
RemoteException
DeserializeException
org.gjt.xpp.XmlPullParserException

sendResponseOrException

public boolean sendResponseOrException(java.io.Writer writer_,
                                       java.lang.Object result,
                                       java.lang.Exception ex)
                                throws java.io.IOException
If sending response or fault fails system *MUST* propagate exception upstream so rts will shutdown socket indicating to client that something goes wrong. If sendResponse was buffered it would be possible to send nice fault if sending response failed but still nothing could be done if sending fault throws exception....

Throws:
java.io.IOException


Copyright (c) 2004 IU Extreme! Lab http://www.extreme.indiana.edu/ All Rights Reserved.