|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.wsdl11.ServiceWSDLBuilder
public class ServiceWSDLBuilder
Consume a set of service definitions and produce a WSDL model. The ServiceInfo objects contain the bindings, operations, and ports, plus XMLSchema schemas. Each wsdl:definition has to have a single target namespace. The first service in the list defines the TNS of the overall WSDL. If a subsequent service has a divergent TNS, then the code creates a new definition element (i.e., Definition object), and imports it into the top-level object.
| Constructor Summary | |
|---|---|
ServiceWSDLBuilder(org.apache.cxf.Bus b,
List<org.apache.cxf.service.model.ServiceInfo> services)
Sets up the builder on a bus with a list of services. |
|
ServiceWSDLBuilder(org.apache.cxf.Bus b,
org.apache.cxf.service.model.ServiceInfo... services)
For callers who prefer varargs, an inline list of ServiceInfo objects instead of a List. |
|
| Method Summary | |
|---|---|
protected void |
addDocumentation(javax.wsdl.WSDLElement wsdlel,
String text)
|
protected void |
addExtensibilityElements(javax.wsdl.Definition def,
javax.wsdl.extensions.ElementExtensible elementExtensible,
List<javax.wsdl.extensions.ExtensibilityElement> extensibilityElements)
|
protected void |
addNamespace(String namespaceURI,
javax.wsdl.Definition def)
|
protected void |
addNamespace(String prefix,
String namespaceURI,
javax.wsdl.Definition def)
|
javax.wsdl.Definition |
build()
Create the WSDL Definition object and return it. |
javax.wsdl.Definition |
build(Map<String,org.apache.cxf.service.model.SchemaInfo> imports)
Create the WSDL Definition object and return it. |
protected void |
buildBinding(javax.wsdl.Definition definition,
Collection<org.apache.cxf.service.model.BindingInfo> bindingInfos,
Collection<javax.wsdl.PortType> portTypes)
|
protected void |
buildBindingFault(javax.wsdl.Definition def,
javax.wsdl.BindingOperation bindingOperation,
Collection<org.apache.cxf.service.model.BindingFaultInfo> bindingFaultInfos)
|
protected void |
buildBindingInput(javax.wsdl.Definition def,
javax.wsdl.BindingOperation bindingOperation,
org.apache.cxf.service.model.BindingMessageInfo bindingMessageInfo)
|
protected void |
buildBindingOperation(javax.wsdl.Definition def,
javax.wsdl.Binding binding,
Collection<org.apache.cxf.service.model.BindingOperationInfo> bindingOperationInfos)
|
protected void |
buildBindingOutput(javax.wsdl.Definition def,
javax.wsdl.BindingOperation bindingOperation,
org.apache.cxf.service.model.BindingMessageInfo bindingMessageInfo)
|
protected void |
buildMessage(javax.wsdl.Message message,
org.apache.cxf.service.model.AbstractMessageContainer messageContainer,
javax.wsdl.Definition def)
|
protected javax.wsdl.PortType |
buildPortType(org.apache.cxf.service.model.InterfaceInfo intf,
javax.wsdl.Definition def)
|
protected void |
buildPortTypeOperation(javax.wsdl.PortType portType,
Collection<org.apache.cxf.service.model.OperationInfo> operationInfos,
javax.wsdl.Definition def)
|
protected void |
buildService(org.apache.cxf.service.model.ServiceInfo serviceInfo,
javax.wsdl.Definition definition)
|
protected void |
buildTypes(Collection<org.apache.cxf.service.model.SchemaInfo> schemas,
Map<String,org.apache.cxf.service.model.SchemaInfo> imports,
javax.wsdl.Definition def)
|
protected void |
buildTypesWithSchemaImports(Collection<org.apache.cxf.service.model.SchemaInfo> schemas,
Map<String,org.apache.cxf.service.model.SchemaInfo> imports,
javax.wsdl.Definition def)
|
List<javax.wsdl.extensions.ExtensibilityElement> |
getWSDL11Extensors(org.apache.cxf.service.model.AbstractPropertiesHolder holder)
Return a list of ExtensibilityElements for a particular component, such as a BindingFaultInfo. |
void |
setBaseFileName(String s)
Base filename for imported files. |
void |
setUseSchemaImports(boolean b)
Set whether to emit references to imported schema files. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceWSDLBuilder(org.apache.cxf.Bus b,
List<org.apache.cxf.service.model.ServiceInfo> services)
b - the bus.services - the services.
public ServiceWSDLBuilder(org.apache.cxf.Bus b,
org.apache.cxf.service.model.ServiceInfo... services)
b - the bus.services - the services.| Method Detail |
|---|
public void setUseSchemaImports(boolean b)
build(Map), which is passed additional schemas for
import. build() resets this flag to false.
b - true to use imports.public void setBaseFileName(String s)
s - pathname.
public javax.wsdl.Definition build()
throws javax.wsdl.WSDLException
javax.wsdl.WSDLException
public javax.wsdl.Definition build(Map<String,org.apache.cxf.service.model.SchemaInfo> imports)
throws javax.wsdl.WSDLException
setUseSchemaImports(boolean).
imports - A set of schema imports to either reference as imports or read and
then inline.
javax.wsdl.WSDLExceptionpublic List<javax.wsdl.extensions.ExtensibilityElement> getWSDL11Extensors(org.apache.cxf.service.model.AbstractPropertiesHolder holder)
holder - The item containing the extensibility elements.
protected void addDocumentation(javax.wsdl.WSDLElement wsdlel,
String text)
protected void addExtensibilityElements(javax.wsdl.Definition def,
javax.wsdl.extensions.ElementExtensible elementExtensible,
List<javax.wsdl.extensions.ExtensibilityElement> extensibilityElements)
protected void buildTypes(Collection<org.apache.cxf.service.model.SchemaInfo> schemas,
Map<String,org.apache.cxf.service.model.SchemaInfo> imports,
javax.wsdl.Definition def)
protected void buildTypesWithSchemaImports(Collection<org.apache.cxf.service.model.SchemaInfo> schemas,
Map<String,org.apache.cxf.service.model.SchemaInfo> imports,
javax.wsdl.Definition def)
schemas - imports - def -
protected void buildBinding(javax.wsdl.Definition definition,
Collection<org.apache.cxf.service.model.BindingInfo> bindingInfos,
Collection<javax.wsdl.PortType> portTypes)
protected void buildBindingOperation(javax.wsdl.Definition def,
javax.wsdl.Binding binding,
Collection<org.apache.cxf.service.model.BindingOperationInfo> bindingOperationInfos)
protected void buildBindingFault(javax.wsdl.Definition def,
javax.wsdl.BindingOperation bindingOperation,
Collection<org.apache.cxf.service.model.BindingFaultInfo> bindingFaultInfos)
protected void buildBindingInput(javax.wsdl.Definition def,
javax.wsdl.BindingOperation bindingOperation,
org.apache.cxf.service.model.BindingMessageInfo bindingMessageInfo)
protected void buildBindingOutput(javax.wsdl.Definition def,
javax.wsdl.BindingOperation bindingOperation,
org.apache.cxf.service.model.BindingMessageInfo bindingMessageInfo)
protected void buildService(org.apache.cxf.service.model.ServiceInfo serviceInfo,
javax.wsdl.Definition definition)
protected javax.wsdl.PortType buildPortType(org.apache.cxf.service.model.InterfaceInfo intf,
javax.wsdl.Definition def)
protected void addNamespace(String namespaceURI,
javax.wsdl.Definition def)
protected void addNamespace(String prefix,
String namespaceURI,
javax.wsdl.Definition def)
protected void buildPortTypeOperation(javax.wsdl.PortType portType,
Collection<org.apache.cxf.service.model.OperationInfo> operationInfos,
javax.wsdl.Definition def)
protected void buildMessage(javax.wsdl.Message message,
org.apache.cxf.service.model.AbstractMessageContainer messageContainer,
javax.wsdl.Definition def)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||