Web services gateway - The Routing interface
This topic gives more information on using each of the methods of the Routing
interface. It supplements the information given for this interface in the gateway
Javadoc.
The Routing interface encapsulates a service that manages routing for requests.
Filters can use this service to select the target service and port.
The set methods all return a WSIFRequest object
that contains the updated context information.
To get information on the currently selected target service, use the following
Routing interface methods:
- getSelectedTargetServiceLocation
- This method returns the currently selected target service location for
the request.
- getTargetPortName
- This method returns the currently selected target port name for the request.
Note: In this version of the gateway, this method always returns blank.
- getTargetServiceDefinition
- This method returns the currently selected target service definition for
the request.
To set the target port, use the following Routing interface method:
- setTargetPortName
- This method sets the selected target port name for the request.
To get information on all potential target services, use the following
Routing interface method:
- getTargetServices
- This method returns the set of target service names that are mapped by
the gateway service on which the request was received.
To set the target service, use either of the following Routing interface
methods:
- setSelectedTargetServiceLocation
- This method sets the selected target service location for the request.
The selected port name is reset by this call.
- setSelectedTargetServiceIdentity
- This method sets the selected target service identity for the request.
The target service identity does not need to be unique, therefore the first
target service found with matching identity information is set. If no service
is found that matches, the method throws a WSGWException exception.

Using a filter to select a target service and port
Searchable topic ID:
rwsg_pme_intro
Last updated: Jun 21, 2007 8:07:48 PM CDT
WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/wsg/ref/rwsg_pme_intro.html