org.eclipse.ohf.wado.client.impl
Class WADORequestProcessorImpl

java.lang.Object
  extended by org.eclipse.ohf.wado.client.impl.WADORequestProcessorImpl
All Implemented Interfaces:
WADORequestProcessor

public class WADORequestProcessorImpl
extends java.lang.Object
implements WADORequestProcessor


Constructor Summary
WADORequestProcessorImpl()
           
 
Method Summary
 WADOResponse processRequest(WADORequest request)
          The method will use the parameters in the WADORequest object to send a WADO request to the WADO server.
 void setWADOServerAddress(java.lang.String wadoServerHost)
          Sets the host address of the WADO server.
 void setWADOServerAddress(java.lang.String wadoServerHost, java.lang.String wadoServerPort)
          Sets the host address and port number of the WADO server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WADORequestProcessorImpl

public WADORequestProcessorImpl()
Method Detail

processRequest

public WADOResponse processRequest(WADORequest request)
                            throws RequestParametersValidationException,
                                   WADOServerNotFoundException
Description copied from interface: WADORequestProcessor
The method will use the parameters in the WADORequest object to send a WADO request to the WADO server. It will first make sure all parameters in the request are valid and then will send the request to the server. The response retrieved from the WADO server will be encapsulated in a WADOResponse object and will be returned to the called of this method.

Specified by:
processRequest in interface WADORequestProcessor
Parameters:
request - The WADORequst object with the parameters for the WADO request
Returns:
The response from the WADO server in a WADOResponse object
Throws:
RequestParametersValidationException
WADOServerNotFoundException

setWADOServerAddress

public void setWADOServerAddress(java.lang.String wadoServerHost)
Description copied from interface: WADORequestProcessor
Sets the host address of the WADO server.

Specified by:
setWADOServerAddress in interface WADORequestProcessor

setWADOServerAddress

public void setWADOServerAddress(java.lang.String wadoServerHost,
                                 java.lang.String wadoServerPort)
Description copied from interface: WADORequestProcessor
Sets the host address and port number of the WADO server.

Specified by:
setWADOServerAddress in interface WADORequestProcessor
Parameters:
wadoServerHost - The host address of the WADO server
wadoServerPort - The port number of the WADO server