Extension SDK 9.0.5

oracle.jdeveloper.webservices
Class WebServiceManager

java.lang.Object
  extended byoracle.jdeveloper.webservices.WebServiceManager

public final class WebServiceManager
extends java.lang.Object

A utility class for performing various web serivce management tasks, such as locating existing services.


Method Summary
static JAXRPCSvcModel findByClass(JProject project, java.lang.String className)
          Find the data model for a Java or PL/SQL web service model that uses the given qualified class name.
static JAXRPCSvcModel findByGUID(JProject project, java.lang.String guid)
          Find the web service with the given unique id.
static JAXRPCSvcModel findByGUID(JProject project, java.lang.String guid, java.lang.Object dummy)
          Deprecated. Use version of this call without third argument.
static JAXRPCSvcModel findByURI(JProject project, java.net.URI serviceURI)
          Find the data model for the given web service name.
static oracle.jdevimpl.webservices.ide.WebServicesContainer findContainer(JProject project, java.net.URI serviceURI)
          Given a web service with a particular URI in a project context, find the corresponding WebServicesContainer.
static oracle.jdevimpl.webservices.ide.WebServicesContainer findContainer(JProject project, java.net.URL wsdlURL)
          Given a WSDL file in a project context, find the WebServicesContainer that holds it.
static oracle.jdevimpl.webservices.ide.WebServicesContainer[] findContainers(JProject project)
          Find all of the WebServicesContainer nodes in the supplied project.
static java.lang.String generateGUID(JProject project, java.lang.String className)
          Generate a unique ID for a web service based on a class in the given project.
static java.lang.String getDefaultServiceName(JProject targetProject)
          Provide a default name for a web service that will be generated into the project supplied.
static java.lang.String[] getWebServiceJavaClasses(JProject project)
          Get the web service implementation classes in this project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findByClass

public static JAXRPCSvcModel findByClass(JProject project,
                                         java.lang.String className)
                                  throws WebServiceNotFoundException
Find the data model for a Java or PL/SQL web service model that uses the given qualified class name.

Parameters:
project - Project to look in for the service.
className - Name of the class we're looking for in a service. This can be either the implementation class name or the service interface name.
Returns:
JAXRPCSvcModel for the found service.
Throws:
WebServiceNotFoundException - if no web service could be found that used that class.

findByGUID

public static JAXRPCSvcModel findByGUID(JProject project,
                                        java.lang.String guid)
                                 throws WebServiceNotFoundException
Find the web service with the given unique id.

Parameters:
project - Project to look for the service in.
guid - GUID of the service we're looking for.
Returns:
Data model of the service found.
Throws:
WebServiceNotFoundException - if no service in the project has a matching GUID.

findByGUID

public static JAXRPCSvcModel findByGUID(JProject project,
                                        java.lang.String guid,
                                        java.lang.Object dummy)
                                 throws WebServiceNotFoundException
Deprecated. Use version of this call without third argument.

Find the web service with the given unique id.

Parameters:
project - Project to look for the service in.
guid - GUID of the service we're looking for.
Returns:
Data model of the service found.
Throws:
WebServiceNotFoundException - if no service in the project has a matching GUID.

findByURI

public static JAXRPCSvcModel findByURI(JProject project,
                                       java.net.URI serviceURI)
                                throws WebServiceNotFoundException
Find the data model for the given web service name. The name is not necessarily unique, and the first web service with the given name will be returned.

Parameters:
project - Project to look for the web service in.
serviceURI - URI of the service we are looking for.
Returns:
Data model of the service found.
Throws:
WebServiceNotFoundException - if no service with that URI could be found in the project.

findContainer

public static oracle.jdevimpl.webservices.ide.WebServicesContainer findContainer(JProject project,
                                                                                 java.net.URI serviceURI)
Given a web service with a particular URI in a project context, find the corresponding WebServicesContainer.

Parameters:
project - Project to look in for the container.
serviceURI - URI of the service whose container we are looking for.
Returns:
Container for the service, null if none found.

findContainer

public static oracle.jdevimpl.webservices.ide.WebServicesContainer findContainer(JProject project,
                                                                                 java.net.URL wsdlURL)
Given a WSDL file in a project context, find the WebServicesContainer that holds it.

Parameters:
project - Project to look for the WSDL file's owner in.
wsdlURL - URL of the WSDL file.
Returns:
Container that owns the WSDL file, none if no match could be made.

findContainers

public static oracle.jdevimpl.webservices.ide.WebServicesContainer[] findContainers(JProject project)
Find all of the WebServicesContainer nodes in the supplied project. This method will also build up a cache of all web services in the project if one doesn't already exist.

Parameters:
project - Project to find the WebServicesContainer nodes of.
Returns:
Array of the nodes found.

getWebServiceJavaClasses

public static java.lang.String[] getWebServiceJavaClasses(JProject project)
Get the web service implementation classes in this project.

Parameters:
project - Project to look in for implementation classes.
Returns:
String array containing the names of all implementation classes.

generateGUID

public static java.lang.String generateGUID(JProject project,
                                            java.lang.String className)
Generate a unique ID for a web service based on a class in the given project.

Parameters:
project - Project that the class is in.
className - Name of the class that is being published as a service.
Returns:
GUID for the service being created.

getDefaultServiceName

public static java.lang.String getDefaultServiceName(JProject targetProject)
Provide a default name for a web service that will be generated into the project supplied. The default name is a constant string followed by a unique number.

Parameters:
targetProject - Project the new web service would be added to.
Returns:
Name for the web service.

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.