electric.soap.routing
Class Intermediary

java.lang.Object
  extended byelectric.soap.routing.Intermediary
All Implemented Interfaces:
IContextHolder, IRoutingConstants, IService, ISOAPHandler

public class Intermediary
extends java.lang.Object
implements IService, ISOAPHandler, IRoutingConstants

Intermediary Minimalist message <m:path xmlns:m="http://schemas.xmlsoap.org/rp/"> <m:action>http://www.notification.org/update</m:action> <m:to>soap://notification.com/some/endpoint</m:to> <m:id>uuid:09233523-345b-4351-b623-5dsf35sgs5d6</m:id> </m:path> More robust message <m:path xmlns:m="http://schemas.xmlsoap.org/rp/"> <m:action>http://www.im.org/chat</m:action> <m:to>soap://D.com/some/endpoint</m:to> <m:fwd> <m:via>soap://B.com</m:via> <m:via>soap://C.com</m:via> </m:fwd> <m:rev> <m:via/> </m:rev> <m:from>mailto:henrikn@microsoft.com</m:from> <m:id>uuid:84b9f5d0-33fb-4a81-b02b-5b760641c1d6</m:id> </m:path> electric.handler.Foo


Field Summary
 
Fields inherited from interface electric.soap.routing.IRoutingConstants
ACTION, ALREADY_ROUTED, ALT_RP_NAMESPACE, CODE, CORRELATION_ID, ENDPOINT, ENDPOINT_INVALID, ENDPOINT_NOT_FOUND, ENDPOINT_NOT_SUPPORTED, ENDPOINT_UNREACHABLE, FORWARD, FROM, ID, INFINITE_LOOP_DETECTED, INVALID_HEADER, LOWERCASE_FAULT, MESSAGE_TIMEOUT, NO_ROUTING_HEADER, PATH, REASON, RELATES_TO, REVERSE, REVERSE_PATH_UNAVAILABLE, RP, RP_NAMESPACE, SERVICE_UNAVAILABLE, TO, UNKOWN_FAULT, UNSUPPORTED_ELEMENT, UUID_PREFIX, VIA
 
Constructor Summary
Intermediary()
           
 
Method Summary
 SOAPMessage forward(SOAPMessage request)
           
 java.lang.String[] getActors()
           
 java.lang.ClassLoader getClassLoader()
          Literally, we don't care at this moment.
 Context getContext()
           
 IReference getReference()
          Return a reference to this service.
 WSDL getWSDL()
          Return WSDL for this service.
 SOAPMessage handle(SOAPMessage request, Context messageContext)
          Handle the specified SOAP request and return the SOAP response.
 SOAPMessage reverse(SOAPMessage response)
           
 void setContext(Context context)
           
 void updateRoute(Element pathHeader, SOAPMessage request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Intermediary

public Intermediary()
Method Detail

getActors

public java.lang.String[] getActors()
Returns:

getClassLoader

public java.lang.ClassLoader getClassLoader()
Literally, we don't care at this moment.

Returns:

getReference

public IReference getReference()
Description copied from interface: IService
Return a reference to this service.

Specified by:
getReference in interface IService
Returns:

getWSDL

public WSDL getWSDL()
Description copied from interface: IService
Return WSDL for this service.

Specified by:
getWSDL in interface IService
Returns:

getContext

public Context getContext()
Specified by:
getContext in interface IContextHolder
Returns:

setContext

public void setContext(Context context)
Specified by:
setContext in interface IContextHolder
Parameters:
context -

handle

public SOAPMessage handle(SOAPMessage request,
                          Context messageContext)
                   throws java.rmi.RemoteException,
                          java.lang.SecurityException
Description copied from interface: ISOAPHandler
Handle the specified SOAP request and return the SOAP response.

Specified by:
handle in interface ISOAPHandler
Parameters:
request -
messageContext -
Throws:
java.rmi.RemoteException
java.lang.SecurityException

forward

public SOAPMessage forward(SOAPMessage request)
Parameters:
request -

reverse

public SOAPMessage reverse(SOAPMessage response)
Parameters:
response -

updateRoute

public void updateRoute(Element pathHeader,
                        SOAPMessage request)
Parameters:
pathHeader -
request -


copyright© 2001-2004 by webMethods All Rights Reserved.