JTR 5.0 API Documentation

jtr.config.ws
Class WebServiceConfig

java.lang.Object
  extended by jtr.config.ws.WebServiceConfig
All Implemented Interfaces:
java.io.Serializable

public class WebServiceConfig
extends java.lang.Object
implements java.io.Serializable

This class is the object oriented representation of the content of a webservice element of the jtr.xml configuration file.
Every webservice description is logically associated with a WSDL, thus you are required to point out a valid WSDL location as an URL when defining every webservice element.
Nested in a WebServiceConfig there might be one or more services according to your needs. Each service is represented by a WebServiceService instance.

Since:
3.0
Version:
5.0
Author:
Francesco Russo (frusso@dev.java.net)
See Also:
WebServiceService, Serialized Form

Constructor Summary
WebServiceConfig()
          Default constructor.
 
Method Summary
 void addService(WebServiceService service)
          Add a webservice definition to the current configuration.
 WebServiceService getService(javax.xml.namespace.QName qName)
          Get a simgle service by qualified name.
 WebServiceService getService(java.lang.String nameSpace, java.lang.String name)
          Get a simgle service by qualified name.
 java.util.Collection<WebServiceService> getServices()
          Return the collection of currently configured services.
 java.lang.String getUniqueName()
          Get this webservice configuration's unique name.
 java.lang.String getWsdlLocation()
          Get the WSDL's location.
 void setServices(java.util.Collection<WebServiceService> services)
          Set the collection of services for the current JTR webservice configuration.
 void setUniqueName(java.lang.String uniqueName)
          Set the unique name of this JTR webservice configuration.
 void setWsdlLocation(java.lang.String wsdlLocation)
          Set the location of the WSDL file associated with the current JTR webservice configuration.
This location has to be expressed as a valid URI.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebServiceConfig

public WebServiceConfig()
Default constructor.

Method Detail

addService

public void addService(WebServiceService service)
Add a webservice definition to the current configuration.

Parameters:
service - The new service description

getServices

public java.util.Collection<WebServiceService> getServices()
Return the collection of currently configured services.

Returns:
Collection

getUniqueName

public java.lang.String getUniqueName()
Get this webservice configuration's unique name.

Returns:
String The webservice configuration unique name

setWsdlLocation

public void setWsdlLocation(java.lang.String wsdlLocation)
Set the location of the WSDL file associated with the current JTR webservice configuration.
This location has to be expressed as a valid URI.

Parameters:
wsdlLocation - The WSDL location

setServices

public void setServices(java.util.Collection<WebServiceService> services)
Set the collection of services for the current JTR webservice configuration.

Parameters:
services - The services

setUniqueName

public void setUniqueName(java.lang.String uniqueName)
Set the unique name of this JTR webservice configuration.

Parameters:
uniqueName - The unique name

getWsdlLocation

public java.lang.String getWsdlLocation()
Get the WSDL's location.

Returns:
String The location of the WSDL

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

getService

public WebServiceService getService(java.lang.String nameSpace,
                                    java.lang.String name)
Get a simgle service by qualified name. This method may return null.

Parameters:
nameSpace -
name -
Returns:
WebServiceService

getService

public WebServiceService getService(javax.xml.namespace.QName qName)
Get a simgle service by qualified name. This method may return null.

Parameters:
qName -
Returns:
WebServiceService

The JTR Project is licensed under GPL version 2