public class IntegrationService extends java.lang.Object implements IIntegrationServiceConstants
ATTR_CONTENT_TYPE, ATTR_CONTENTS, ATTR_IMPLEMENTATION, ATTR_LOCATION, ATTR_NAME, ATTR_PORT_TYPE, ATTR_TYPE, ATTR_WSDL_NAME, DEFAULT_BROKER_SCHEMA, DEFAULT_HTTP_JSON_URL_SUFFIX, DEFAULT_JAVA_PROJECT_SUFFIX, DEFAULT_JSON_FOLDER, DEFAULT_JSON_XML_PACKAGE, DEFAULT_JSON_XML_PACKAGE_FOLDER, DEFAULT_SOAP_XSD_FOLDER, DEFAULT_SOAPENV11_XSD_FOLDER, DEFAULT_SRC_FOLDER, DEFAULT_XML_XSD_FOLDER, DOT_JAVA_EXT, DOT_JS_EXT, DOT_MSGFLOW_EXT, DOT_SUBFLOW_EXT, ELEMENT_ERRORS, ELEMENT_FLOW, ELEMENT_FLOWS, ELEMENT_OPERATION, ELEMENT_OPERATIONS, ELEMENT_RESOURCE_FILE, ELEMENT_RESOURCE_FILES, ELEMENT_SERVICE, ELEMENT_SERVICES, EMPTY_STRING, GEN_PACKAGE, GEN_PATH, HTML_CONTENT_TYPE, JAVA_PACKAGE_SEPARATOR, JAVASCRIPT_CONTENT_TYPE, JSON_PARSER_NAME, JSON2XML, MSGFLOW_EXT, ROUTE_NODE_FILTERTABLE_FILTERPATTERN1, ROUTE_NODE_FILTERTABLE_FILTERPATTERN2, ROUTE_NODE_FILTERTABLE_FILTERPATTERN3, ROUTE_NODE_FILTERTABLE_FILTERPATTERN4, ROUTE_NODE_FILTERTABLE_FILTERPATTERN5, ROUTE_NODE_FILTERTABLE_FILTERPATTERN6, ROUTE_NODE_FILTERTABLE_FILTERPATTERN7, ROUTE_NODE_FILTERTABLE_FILTERPATTERN8, ROUTE_NODE_TERMINAL_MatchHTTP, SERVICE_DESCRIPTOR, SERVICE_NAMESPACE, SERVICE_PREFIX, SLASH, SOAP_XSD, SOAPENV11_XSD, SUBFLOW_EXT, SUBFLOW_SUFFIX_REQUEST, SUBFLOW_SUFFIX_REQUEST_RESPONSE, URL_WILDCARD, UTF8, UTILITY, XML_XSD, XML2JSON
Constructor and Description |
---|
IntegrationService(java.io.File serviceDescriptorFile)
Constructs a Broker service from a service descriptor file.
|
IntegrationService(java.lang.String serviceName)
Constructs a Broker service from scratch.
|
IntegrationService(java.lang.String serviceName,
java.lang.String wsdlFileName,
java.lang.String serviceProjectPath)
Constructs a Broker service from an existing WSDL.
|
Modifier and Type | Method and Description |
---|---|
void |
generateJavaScriptAPIs() |
void |
generateJavaScriptAPIs(java.lang.String urlSuffix)
Generates a JSON/HTTP binding with the given HTTP URL suffix.
|
java.util.List<IntegrationServiceFlow> |
getErrorFlows() |
java.lang.String |
getHTTPURLPathSuffix()
Returns the HTTP URL path suffix.
|
java.lang.String |
getMainFlowName() |
java.lang.String |
getServiceName() |
java.util.List<IntegrationServiceOperation> |
getServiceOperations() |
java.util.List<java.lang.String> |
getServiceOperationsAsString() |
java.lang.String |
getSOAPURLPathSuffix()
Returns the SOAP URL path suffix.
|
java.lang.String |
getWSDL() |
com.ibm.broker.config.appdev.wsdl.TService |
getWSDLService() |
com.ibm.broker.config.appdev.wsdl.TPort |
getWSDLServicePort() |
javax.xml.namespace.QName |
getWSDLServiceQName() |
MessageFlow |
implementErrorHandling(IntegrationServiceFlow.FlowType flowType,
java.lang.String relativeSubflowLocation) |
MessageFlow |
implementOperation(java.lang.String operationName) |
MessageFlow |
implementOperation(java.lang.String operationName,
java.lang.String relativeSubflowLocation) |
void |
setIntegrationServiceJavaProject(java.lang.String javaProjectPath,
java.lang.String sourceFolder)
Sets the Java project path and source folder for the current integration service project.
|
void |
setMainFlowName(java.lang.String mainFlowName)
Sets the project-relative path (as string) of the main message flow.
|
void |
setNeedErrorHandlers(boolean needErrorHandlers) |
void |
setPortTypeName(java.lang.String portTypeName)
Sets the port type name of the Broker service.
|
void |
setWSDL(java.lang.String wsdlName)
Sets the project-relative path (as string) of the service WSDL.
|
org.w3c.dom.Element |
toXML() |
void |
write() |
void |
writeMainFlow() |
void |
writeServiceDescriptor() |
void |
writeServiceDescriptor(java.lang.String brokerServiceFileName) |
void |
writeSubflow(MessageFlow subflow) |
public IntegrationService(java.io.File serviceDescriptorFile) throws java.io.IOException, IntegrationServiceException
serviceDescriptorFile
- Full path of the service.descriptor filejava.io.IOException
IntegrationServiceException
public IntegrationService(java.lang.String serviceName) throws IntegrationServiceException
serviceName
- Name of the integration serviceIntegrationServiceException
public IntegrationService(java.lang.String serviceName, java.lang.String wsdlFileName, java.lang.String serviceProjectPath) throws java.io.IOException, IntegrationServiceException
serviceName
- Name of the integration servicewsdlFileName
- Full path of the WSDL file. The WSDL must have been imported.serviceProjectPath
- Full path of the integration service project.IntegrationServiceException
java.io.IOException
public void writeServiceDescriptor() throws java.io.IOException
java.io.IOException
public void writeServiceDescriptor(java.lang.String brokerServiceFileName) throws java.io.IOException
java.io.IOException
public void writeMainFlow() throws com.ibm.broker.MessageBrokerAPIException, java.io.IOException
com.ibm.broker.MessageBrokerAPIException
java.io.IOException
public void writeSubflow(MessageFlow subflow) throws com.ibm.broker.MessageBrokerAPIException, java.io.IOException
com.ibm.broker.MessageBrokerAPIException
java.io.IOException
public void write() throws com.ibm.broker.MessageBrokerAPIException, java.io.IOException
com.ibm.broker.MessageBrokerAPIException
java.io.IOException
public org.w3c.dom.Element toXML()
public void generateJavaScriptAPIs() throws IntegrationServiceException
IntegrationServiceException
public void generateJavaScriptAPIs(java.lang.String urlSuffix) throws IntegrationServiceException
urlSuffix
- IntegrationServiceException
public MessageFlow implementOperation(java.lang.String operationName, java.lang.String relativeSubflowLocation) throws IntegrationServiceException
IntegrationServiceException
public MessageFlow implementOperation(java.lang.String operationName) throws IntegrationServiceException
IntegrationServiceException
public MessageFlow implementErrorHandling(IntegrationServiceFlow.FlowType flowType, java.lang.String relativeSubflowLocation) throws IntegrationServiceException
IntegrationServiceException
public void setIntegrationServiceJavaProject(java.lang.String javaProjectPath, java.lang.String sourceFolder)
public void setNeedErrorHandlers(boolean needErrorHandlers)
public void setWSDL(java.lang.String wsdlName)
public void setMainFlowName(java.lang.String mainFlowName)
public void setPortTypeName(java.lang.String portTypeName)
public java.lang.String getServiceName()
public java.lang.String getWSDL()
public java.lang.String getMainFlowName()
public com.ibm.broker.config.appdev.wsdl.TService getWSDLService()
public javax.xml.namespace.QName getWSDLServiceQName()
public com.ibm.broker.config.appdev.wsdl.TPort getWSDLServicePort()
public java.util.List<IntegrationServiceOperation> getServiceOperations()
public java.util.List<java.lang.String> getServiceOperationsAsString()
public java.lang.String getSOAPURLPathSuffix()
public java.lang.String getHTTPURLPathSuffix()
public java.util.List<IntegrationServiceFlow> getErrorFlows()