XML Connector API 6.0.2.61

com.baan.ow.xmlconnector.dispatcher
Interface IDispatcher


public interface IDispatcher

Represents a Dispatcher.

This object will allow invocation for various backends. Any application can use this object to send Request (predefined) to a particular backend

Version:
Build Nr 61, file version \\main\\Middleware-3_11\\1, 15:35:59 24-07-2006 UTC
Author:
Baan Company

Method Summary
 void close()
          Releases all resources associated with this object.
 com.baan.ow.xmlconnector.dispatcher.IRequest newRequest()
          Produces a new request to send to this BAC backend.
 com.baan.ow.xmlconnector.dispatcher.IRequest newRequest(org.w3c.dom.Element p_request)
          Produces a new request to send to this BAC backend.
 void setTimeout(int p_timeout)
          Sets how long to wait for a response from the backend.
 

Method Detail

newRequest

public com.baan.ow.xmlconnector.dispatcher.IRequest newRequest()
Produces a new request to send to this BAC backend.

The new empty request object returned provides methods for filling the request and sending it.

Threading policy: Unsafe

Returns:
a new request object (never null)

newRequest

public com.baan.ow.xmlconnector.dispatcher.IRequest newRequest(org.w3c.dom.Element p_request)
Produces a new request to send to this BAC backend.

The request object returned provides methods for filling the request and sending it.

Threading policy: Unsafe

Parameters:
p_request - the Element that creates a new Request object
Returns:
a new request object (never null)

setTimeout

public void setTimeout(int p_timeout)
Sets how long to wait for a response from the backend.

By default the timeout configured for the Adapter Client is used.

Postconditions: The timeout is set for all BAC request.

Threading policy: Unsafe

Parameters:
p_timeout - the time (in milliseconds) to wait for responses from the backend. Must be greater than 0.

close

public void close()
Releases all resources associated with this object.

All API objects produced (directly or indirectly) by this object become unusable. For example, an IReply received from an IRequest produced by this object would become unusable.

Postconditions: All resources are released. This object cannot be used again.

Threading policy: Unsafe


XML Connector API 6.0.2.61

Visit the SSA Global website for more information.