adams.flow.webservice
Class WebserviceUtils

java.lang.Object
  extended by adams.flow.webservice.WebserviceUtils

public class WebserviceUtils
extends Object

Utility class around webservices.

Version:
$Revision: 6440 $
Author:
fracpete (fracpete at waikato dot ac dot nz)

Constructor Summary
WebserviceUtils()
           
 
Method Summary
static void configureClient(Object servicePort, int connection, int receive)
          Sets the timeouts for connection and receiving.
static void disableSchemaValidation(BindingProvider provider)
          Disables the schema validation.
static void enableSchemaValidation(BindingProvider provider)
          Enables the schema validation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebserviceUtils

public WebserviceUtils()
Method Detail

enableSchemaValidation

public static void enableSchemaValidation(BindingProvider provider)
Enables the schema validation.

Parameters:
provider - the webservice to enable schema validation for

disableSchemaValidation

public static void disableSchemaValidation(BindingProvider provider)
Disables the schema validation.

Parameters:
provider - the webservice to disable schema validation for

configureClient

public static void configureClient(Object servicePort,
                                   int connection,
                                   int receive)
Sets the timeouts for connection and receiving. Also configures the proxy settings in case there is a system-wide proxy configured.

Parameters:
servicePort - the service port to set the timeouts for
connection - the timeout for the connection in msec, 0 is infinite
receive - the timeout for receiving in msec, 0 is infinite
See Also:
ProxyHelper


Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.