uk.ac.soton.itinnovation.grid.comms.client
Class WSDLCacheImpl

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.comms.client.WSDLCacheImpl
All Implemented Interfaces:
WSDLCache

public class WSDLCacheImpl
extends Object
implements WSDLCache

Load and cache WSDL files.


Field Summary
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
WSDLCacheImpl(Transport transport)
           
 
Method Summary
 void clear()
           
 Document get(String resourcePath)
          Get a WSDL file from the cache.
 Document get(URL url)
          Get a WSDL file from the cache.
 Document get(URL url, X509Certificate expectedCertificate)
          Get a WSDL file from the cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log
Constructor Detail

WSDLCacheImpl

public WSDLCacheImpl(Transport transport)
Method Detail

get

public Document get(String resourcePath)
Get a WSDL file from the cache. If the resource is not in the cache then it is loaded, parsed and added first.

Specified by:
get in interface WSDLCache
Parameters:
resourcePath - the location of the WSDL resource (in CLASSPATH)
Returns:
a WSDL document

get

public Document get(URL url)
             throws RemoteException
Get a WSDL file from the cache. If the resource is not in the cache then it is loaded, parsed and added first.

Specified by:
get in interface WSDLCache
Parameters:
url - the location of the WSDL resource
Returns:
a WSDL document
Throws:
RemoteException

get

public Document get(URL url,
                    X509Certificate expectedCertificate)
             throws RemoteException
Get a WSDL file from the cache. If the resource is not in the cache then it is loaded, parsed and added first.

Specified by:
get in interface WSDLCache
Parameters:
url - the location of the WSDL resource
expectedCertificate - an extra SSL certificate to trust (optional)
Returns:
a WSDL document
Throws:
RemoteException

clear

public void clear()
Specified by:
clear in interface WSDLCache


Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.