org.apache.wsif
Class WSIFServiceFactory

java.lang.Object
  |
  +--org.apache.wsif.WSIFServiceFactory
Direct Known Subclasses:
WSIFServiceFactoryImpl

public abstract class WSIFServiceFactory
extends java.lang.Object

Abstract factory class to create instances of WSIFService. Call newInstance to get a instance of the factory.

Author:
Mark Whitlock, Owen Burroughs

Constructor Summary
WSIFServiceFactory()
           
 
Method Summary
 void cachingOn(boolean on)
          Set caching on services on/off.
abstract  WSIFService getService(javax.wsdl.Definition def)
          Returns a new WSIFService.
abstract  WSIFService getService(javax.wsdl.Definition def, javax.wsdl.Service service)
          Returns a new WSIFService.
abstract  WSIFService getService(javax.wsdl.Definition def, javax.wsdl.Service service, javax.wsdl.PortType portType)
          Returns a new WSIFService.
abstract  WSIFService getService(javax.wsdl.Definition def, java.lang.String serviceNS, java.lang.String serviceName, java.lang.String portTypeNS, java.lang.String portTypeName)
          Returns a new WSIFService.
abstract  WSIFService getService(java.lang.String wsdlLoc, java.lang.ClassLoader cl, java.lang.String serviceNS, java.lang.String serviceName, java.lang.String portTypeNS, java.lang.String portTypeName)
          Create a WSIF service instance from WSDL document URL using a ClassLoader to find local resources.
abstract  WSIFService getService(java.lang.String wsdlLoc, java.lang.String serviceNS, java.lang.String serviceName, java.lang.String portTypeNS, java.lang.String portTypeName)
          Create a WSIFService from WSDL document URL.
static WSIFServiceFactory newInstance()
          Creates a new instance of an implementation the abstract WSIFServiceFactory class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSIFServiceFactory

public WSIFServiceFactory()
Method Detail

newInstance

public static WSIFServiceFactory newInstance()
Creates a new instance of an implementation the abstract WSIFServiceFactory class.

getService

public abstract WSIFService getService(java.lang.String wsdlLoc,
                                       java.lang.String serviceNS,
                                       java.lang.String serviceName,
                                       java.lang.String portTypeNS,
                                       java.lang.String portTypeName)
                                throws WSIFException
Create a WSIFService from WSDL document URL.
If serviceName or serviceNS is null, then WSDL document must have exactly one service in it.
If portTypeName or portTypeNS is null, then WSDL document must have exactly one portType in it and all ports of the selected service must implement the same portType.

getService

public abstract WSIFService getService(java.lang.String wsdlLoc,
                                       java.lang.ClassLoader cl,
                                       java.lang.String serviceNS,
                                       java.lang.String serviceName,
                                       java.lang.String portTypeNS,
                                       java.lang.String portTypeName)
                                throws WSIFException
Create a WSIF service instance from WSDL document URL using a ClassLoader to find local resources.
If serviceName or serviceNS is null, then WSDL document must have exactly one service in it.
If portTypeName or portTypeNS is null, then WSDL document must have exactly one portType in it and all ports of the selected service must implement the same portType.

getService

public abstract WSIFService getService(javax.wsdl.Definition def)
                                throws WSIFException
Returns a new WSIFService.

getService

public abstract WSIFService getService(javax.wsdl.Definition def,
                                       javax.wsdl.Service service)
                                throws WSIFException
Returns a new WSIFService.

getService

public abstract WSIFService getService(javax.wsdl.Definition def,
                                       javax.wsdl.Service service,
                                       javax.wsdl.PortType portType)
                                throws WSIFException
Returns a new WSIFService.

getService

public abstract WSIFService getService(javax.wsdl.Definition def,
                                       java.lang.String serviceNS,
                                       java.lang.String serviceName,
                                       java.lang.String portTypeNS,
                                       java.lang.String portTypeName)
                                throws WSIFException
Returns a new WSIFService.

cachingOn

public void cachingOn(boolean on)
Set caching on services on/off. Off is the default
Parameters:
on - Flag to indicate whether or not caching of services should be used


Copyright © 2002, 2002 Apache XML Project. All Rights Reserved.