|
JTR 5.0 API Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjtr.config.ws.WebServiceService
public class WebServiceService
This class is the object oriented representation of a service
element of a jtr.xml
configuration file.
It can be assimilated to the concept of WSDL service. As such it
hosts information like ports and port types, and is uniquely identified by
a QName
.
Moreover a service definition might include type mapping information too.
A type mapping states which Java class should be used to represent an XML
data type. These classes are used to marshall and unmarshall messages at
runtime.
Constructor Summary | |
---|---|
WebServiceService()
Default constructor. |
Method Summary | |
---|---|
void |
addPort(WebServicePort port)
Add a single port to the set of configured ones. |
void |
addPortType(WebServicePortType pt)
Add a single port type the the set of configured ones. |
void |
addTypeMapping(javax.xml.namespace.QName qName,
java.lang.String javaClassName)
Add a single type mapping to the current service specification. |
void |
addTypeMapping(javax.xml.namespace.QName qualifiedName,
WebServiceTypeMapping tm)
Add a single type mapping to the current service specification. |
void |
addTypeMapping(java.lang.String nameSpace,
java.lang.String name,
java.lang.String javaClassName)
Add a single type mapping to the current service specification. |
void |
addTypeMapping(WebServiceTypeMapping typeMapping)
Add a single type mapping to the current service specification. |
java.lang.String |
getName()
Get the unique name. |
java.lang.String |
getNameSpace()
Get the service namespace. |
WebServicePort |
getPort(java.lang.String name)
Get the port identified by the given name or
null if nothing can be found. |
java.util.Collection<WebServicePort> |
getPorts()
Get the collection of configured ports. |
WebServicePortType |
getPortType(javax.xml.namespace.QName qName)
Get the port type identified by the given QName or
null if nothing can be found. |
java.util.Collection<WebServicePortType> |
getPortTypes()
Get the configured port types. |
WebServiceTypeMapping |
getTypeMapping(javax.xml.namespace.QName qName)
Get the type mapping identified by the given QName or
null if nothing can be found. |
java.util.Collection<WebServiceTypeMapping> |
getTypeMappings()
Get the collection of type mappings available for the current service specification. |
void |
setName(java.lang.String name)
Set the service name. |
void |
setNameSpace(java.lang.String nameSpace)
Set the service namespace. |
void |
setPorts(java.util.Collection<WebServicePort> ports)
Set the collection of available ports. |
void |
setPortTypes(java.util.Collection<WebServicePortType> portTypes)
Set the collection of port types. |
void |
setTypeMappings(java.util.Collection<WebServiceTypeMapping> typeMappings)
Set the type mappings for the current service specification. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebServiceService()
Method Detail |
---|
public java.util.Collection<WebServicePortType> getPortTypes()
public java.lang.String getName()
public void setNameSpace(java.lang.String nameSpace)
nameSpace
- public void setPortTypes(java.util.Collection<WebServicePortType> portTypes)
portTypes
- public void setName(java.lang.String name)
name
- public void setPorts(java.util.Collection<WebServicePort> ports)
ports
- public java.lang.String getNameSpace()
public java.util.Collection<WebServicePort> getPorts()
public void addPortType(WebServicePortType pt)
pt
- public void addPort(WebServicePort port)
port
- public java.util.Collection<WebServiceTypeMapping> getTypeMappings()
public void setTypeMappings(java.util.Collection<WebServiceTypeMapping> typeMappings)
typeMappings
- The typeMappings to set.public void addTypeMapping(javax.xml.namespace.QName qualifiedName, WebServiceTypeMapping tm)
qualifiedName
- tm
- public void addTypeMapping(java.lang.String nameSpace, java.lang.String name, java.lang.String javaClassName)
nameSpace
- name
- javaClassName
- public void addTypeMapping(javax.xml.namespace.QName qName, java.lang.String javaClassName)
qName
- javaClassName
- public void addTypeMapping(WebServiceTypeMapping typeMapping)
typeMapping
- public WebServicePortType getPortType(javax.xml.namespace.QName qName)
QName
or
null
if nothing can be found.
qName
-
public WebServicePort getPort(java.lang.String name)
name
or
null
if nothing can be found.
name
-
public WebServiceTypeMapping getTypeMapping(javax.xml.namespace.QName qName)
QName
or
null
if nothing can be found.
qName
-
|
The JTR Project is licensed under GPL version 2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |