JTR 4.0 API Documentation

jtr.ws.wsif
Class WebServiceRtService

java.lang.Object
  extended by jtr.ws.wsif.WebServiceRtService

public class WebServiceRtService
extends java.lang.Object

This is the WSIF-based representation of a typical service definition.
As you might infer from the WSDL formal definition, a service may expose both multiple portTypes and multiple ports. This is reflected by the WebServiceRtService class.

Since:
3.0
Version:
4.0
Author:
Francesco Russo (frusso@dev.java.net)

Constructor Summary
WebServiceRtService()
          Default constructor.
 
Method Summary
 void addPort(java.lang.String portName, WebServiceRtPort port)
          Add a simgle port to the set of configured onse.
 void addPortType(javax.xml.namespace.QName qName, WebServiceRtPortType portType)
          Add a single portType to the set of configured ones.
 WebServiceRtPort getPort(java.lang.String portName)
          Retrieve the WebServiceRtPort registered with the provided name.
 java.util.HashMap<java.lang.String,WebServiceRtPort> getPorts()
          Returns the configured port's
 WebServiceRtPortType getPortType(javax.xml.namespace.QName qName)
          Retrieve a portType by name.
 java.util.HashMap<javax.xml.namespace.QName,WebServiceRtPortType> getPortTypes()
          Get all the configured portTypes.
 javax.xml.namespace.QName getQualifiedName()
          Returns the qualified name of the service.
 org.apache.wsif.WSIFService getService()
          Returns the service as a WSIFService instance.
 void setPorts(java.util.HashMap<java.lang.String,WebServiceRtPort> ports)
          Set the configured port's of the service.
 void setPortTypes(java.util.HashMap<javax.xml.namespace.QName,WebServiceRtPortType> portTypes)
          Set the available portTypes.
 void setQualifiedName(javax.xml.namespace.QName qualifiedName)
          Set the qualified name of the service.
 void setService(org.apache.wsif.WSIFService service)
          Sets the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebServiceRtService

public WebServiceRtService()
Default constructor.

Method Detail

getQualifiedName

public javax.xml.namespace.QName getQualifiedName()
Returns the qualified name of the service.

Returns:
QName The qualifie nName

setQualifiedName

public void setQualifiedName(javax.xml.namespace.QName qualifiedName)
Set the qualified name of the service.

Parameters:
qualifiedName - The qualified name to set.

getPorts

public java.util.HashMap<java.lang.String,WebServiceRtPort> getPorts()
Returns the configured port's

Returns:
HashMap The ports.

setPorts

public void setPorts(java.util.HashMap<java.lang.String,WebServiceRtPort> ports)
Set the configured port's of the service.

Parameters:
ports - The ports to set.

addPort

public void addPort(java.lang.String portName,
                    WebServiceRtPort port)
Add a simgle port to the set of configured onse.

Parameters:
portName - The logical name of the port
port - The port

getPort

public WebServiceRtPort getPort(java.lang.String portName)
Retrieve the WebServiceRtPort registered with the provided name.

Parameters:
portName - The port's logical name
Returns:
WebServiceRtPort The associated port if it exists, null otherwise

getPortTypes

public java.util.HashMap<javax.xml.namespace.QName,WebServiceRtPortType> getPortTypes()
Get all the configured portTypes.

Returns:
HashMap The portTypes.

setPortTypes

public void setPortTypes(java.util.HashMap<javax.xml.namespace.QName,WebServiceRtPortType> portTypes)
Set the available portTypes.

Parameters:
portTypes - The portTypes to set.

addPortType

public void addPortType(javax.xml.namespace.QName qName,
                        WebServiceRtPortType portType)
Add a single portType to the set of configured ones.

Parameters:
qName - The qualified name
portType - the WebServiceRtPortType instance

getPortType

public WebServiceRtPortType getPortType(javax.xml.namespace.QName qName)
Retrieve a portType by name.

Parameters:
qName - The qualified name
Returns:
WebServiceRtPortType The WebServiceRtPortType if registered, null otherwise.

getService

public org.apache.wsif.WSIFService getService()
Returns the service as a WSIFService instance.

Returns:
WSIFService Returns the service.

setService

public void setService(org.apache.wsif.WSIFService service)
Sets the service.

Parameters:
service - The service to set.

The JTR Project is licensed under GPL version 2