org.aselect.system.communication.client
Interface IClientCommunicator
- All Known Implementing Classes:
- RawCommunicator, SOAP11Communicator, SOAP12Communicator
public interface IClientCommunicator
Interface for simple A-Select API communication.
Description:
Specifies a method for sending API calls to the A-Select server.
- Author:
- Alfa & Ariss
Method Summary |
java.util.Hashtable |
sendMessage(java.util.Hashtable htParameters,
java.lang.String sTarget)
Send an API call to the A-Select server. |
sendMessage
java.util.Hashtable sendMessage(java.util.Hashtable htParameters,
java.lang.String sTarget)
throws ASelectCommunicationException
- Send an API call to the A-Select server.
Description:
Creates a message from the given parameters and sends it to the given
url. The response parameters are returned in a hashtable
.
Concurrency issues:
The returned Hashtable
is synchronized.
Preconditions:
parameters
should contain valid A-Select parameters.
target
must be a valid URL.
Postconditions:
The
Hashtable which is returned contains A-Select response parameters.
- Parameters:
htParameters
- The API call request parameters
(Hashtable
with name/value pairs)sTarget
- A String
containing the target URL
- Returns:
- The response parameters of the API call in
a
Hashtable
- Throws:
ASelectCommunicationException
- If communication fails.
Copyright © 2008 SURFnet BV. All Rights Reserved.