org.jibx.soap.server
Class ServiceDefinition

java.lang.Object
  extended byorg.jibx.soap.server.ServiceDefinition

public class ServiceDefinition
extends java.lang.Object

Service definition structure. This is populated from the XML service definition document by JiBX unmarshalling.

Version:
1.0
Author:
Dennis M. Sosnoski

Method Summary
 org.jibx.runtime.IBindingFactory getBindingFactory()
          Get binding factory for service message objects.
 org.jibx.soap.wsdl.Definitions getDefinitions(javax.servlet.ServletContext sctx)
          Get WSDL definitions for this service.
 java.util.ArrayList getFilters()
          Get filters.
 java.lang.Class getHandlerClass()
          Get handler class information.
 int getIndentCount()
          Get number of spaces to indent output XML.
 OperationDefinition getOperation(java.lang.Object body)
          Get operation for unmarshalled request body.
 java.util.ArrayList getOperations()
          Get operations.
 java.lang.String getPortName()
          Get port name.
 java.lang.String getPortTypeName()
          Get port type name.
 java.lang.String getSchemaName()
          Get schema name.
 java.lang.String getServiceName()
          Get service name.
 java.lang.String getSOAPBindingName()
          Get SOAP binding name.
 java.lang.String getWSDLNamespace()
          Get namespace for generated WSDL.
 java.lang.String getXMLBindingName()
          Get XML binding name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSchemaName

public java.lang.String getSchemaName()
Get schema name.

Returns:
schema name

getWSDLNamespace

public java.lang.String getWSDLNamespace()
Get namespace for generated WSDL.

Returns:
schema name

getIndentCount

public int getIndentCount()
Get number of spaces to indent output XML.

Returns:
output indent count

getServiceName

public java.lang.String getServiceName()
Get service name.

Returns:
service name

getSOAPBindingName

public java.lang.String getSOAPBindingName()
Get SOAP binding name.

Returns:
SOAP binding name

getPortTypeName

public java.lang.String getPortTypeName()
Get port type name.

Returns:
port type name

getPortName

public java.lang.String getPortName()
Get port name.

Returns:
port name

getHandlerClass

public java.lang.Class getHandlerClass()
Get handler class information.

Returns:
handler class information

getXMLBindingName

public java.lang.String getXMLBindingName()
Get XML binding name.

Returns:
XML binding name

getBindingFactory

public org.jibx.runtime.IBindingFactory getBindingFactory()
Get binding factory for service message objects.

Returns:
binding factory for service

getFilters

public java.util.ArrayList getFilters()
Get filters.

Returns:
list of filters

getOperations

public java.util.ArrayList getOperations()
Get operations.

Returns:
list of operations

getOperation

public OperationDefinition getOperation(java.lang.Object body)
Get operation for unmarshalled request body.

Parameters:
body - unmarshalled request data
Returns:
corresponding operation information

getDefinitions

public org.jibx.soap.wsdl.Definitions getDefinitions(javax.servlet.ServletContext sctx)
                                              throws java.io.IOException
Get WSDL definitions for this service. The returned object can only be used in a single-threaded manner because of the use of a DOM schema representation, which is not threadsafe (even for read operations, in the case of the Xerces DOM shipped with recent JDKs).

Parameters:
sctx - servlet context for application (used to get the schema as a resource)
Returns:
deinnitions object, or null if unable to create WSDL
Throws:
java.io.IOException - on error reading or parsing schema document


Project Web Site