|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task com.legstar.cixs.gen.ant.AbstractCixsGenerator com.legstar.cixs.jaxws.gen.AbstractCixsJaxwsGenerator com.legstar.cixs.jaxws.gen.Cixs2JaxwsGenerator
public class Cixs2JaxwsGenerator
This Ant task creates the various Jaxws artifacts needed to implement a servlet proxy that acts as an adapter for a Web Service so that a mainframe program can call the target Web Service without any knowledge of SOAP. The task also generates a sample COBOL CICS program that demonstrates how to call the proxy servlet.
Field Summary | |
---|---|
static String |
CIXS_TO_JAXWS_GENERATOR_NAME
This generator name. |
static String |
DEFAULT_SERVER_PATH_TEMPLATE
Default pattern for server PATH. |
static String |
OPERATION_COBOL_CICS_DFHWBCLI_CLIENT_VLC_TEMPLATE
Velocity template for COBOL client using DFHWBCLI generation. |
static String |
OPERATION_COBOL_CICS_LSHTTAPI_CLIENT_VLC_TEMPLATE
Velocity template for COBOL client using LSHTTAPI generation. |
static String |
OPERATION_COBOL_CICS_WEBAPI_CLIENT_VLC_TEMPLATE
Velocity template for COBOL client using WEBAPI generation. |
static String |
OPERATION_COBOL_CICS_WMQ_CLIENT_VLC_TEMPLATE
Velocity template for COBOL client using WMQ generation. |
static String |
SERVICE_ANT_BUILD_WAR_VLC_TEMPLATE
Velocity template for war ant build generation. |
static String |
SERVICE_ANT_DEPLOY_VLC_TEMPLATE
Velocity template for service ant-deploy. |
static String |
SERVICE_MODEL_NAME
The service model name is it appears in templates. |
static String |
SERVICE_WEB_XML_VLC_TEMPLATE
Velocity template for web descriptor generation. |
Fields inherited from class com.legstar.cixs.jaxws.gen.AbstractCixsJaxwsGenerator |
---|
JAXWS_GENERATOR_NAME |
Fields inherited from class org.apache.tools.ant.Task |
---|
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
project |
Constructor Summary | |
---|---|
Cixs2JaxwsGenerator()
Constructor. |
Method Summary | |
---|---|
void |
addExtendedParameters(Map<String,Object> parameters)
Add common parameters expected by templates to come from a parameters map. |
void |
addHttpTransportParameters(HttpTransportParameters httpTransportParameters)
|
void |
addPojoTargetParameters(PojoParameters pojoTargetParameters)
|
void |
addWebServiceTargetParameters(WebServiceParameters webServiceTargetParameters)
|
void |
checkExtendedExtendedInput()
Give the inheriting generators a chance to add more controls. |
static String |
generateAntBuildWar(CixsJaxwsService service,
Map<String,Object> parameters,
File serviceAntFilesDir)
Create the Ant Build for a War file generation. |
static String |
generateAntDeploy(CixsJaxwsService service,
Map<String,Object> parameters,
File serviceAntFilesDir)
Create the deploy Ant Build file. |
static void |
generateCobolCicsClient(AbstractCixsService service,
CixsOperation operation,
Map<String,Object> parameters,
File cobolFilesDir,
TransportType transportType,
CobolHttpClientType cobolHttpClientType)
Create a COBOl CICS Client program to use for testing. |
void |
generateExtended(Map<String,Object> parameters)
Create more artifacts for a Jboss ESB service. |
static String |
generateWebXml(CixsJaxwsService service,
Map<String,Object> parameters,
File serviceWebFilesDir)
Create the Jaxws Web Xml file. |
AntBuildCixs2JaxwsModel |
getAntModel()
|
List<CixsOperation> |
getCixsOperations()
Convenience method to get the inner mapped operations. |
String |
getDefaultServicePath()
|
String |
getGeneratorName()
|
HttpTransportParameters |
getHttpTransportParameters()
|
PojoParameters |
getPojoTargetParameters()
|
String |
getProxyTargetType()
|
protected ProxyTargetType |
getProxyTargetTypeInternal()
|
String |
getSampleCobolHttpClientType()
|
protected CobolHttpClientType |
getSampleCobolHttpClientTypeInternal()
When ant 1.7.0 will become widespread, we will be able to expose this method directly (support for enum JDK 1.5). |
File |
getTargetCobolDir()
|
WebServiceParameters |
getWebServiceTargetParameters()
|
void |
setHttpTransportParameters(HttpTransportParameters httpTransportParameters)
|
void |
setPojoTargetParameters(PojoParameters pojoTargetParameters)
|
void |
setProxyTargetType(String proxyTargetType)
|
protected void |
setProxyTargetTypeInternal(ProxyTargetType proxyTargetType)
|
void |
setSampleCobolHttpClientType(String sampleCobolHttpClientType)
|
void |
setTargetCobolDir(File targetCobolDir)
|
void |
setWebServiceTargetParameters(WebServiceParameters webServiceTargetParameters)
|
Methods inherited from class com.legstar.cixs.jaxws.gen.AbstractCixsJaxwsGenerator |
---|
add, addCixsJaxwsService, checkExtendedInput, generate, getCixsJaxwsService, getTargetWarDir, getTargetWDDDir, getVersion, setCixsJaxwsService, setTargetWarDir, setTargetWDDDir |
Methods inherited from class com.legstar.cixs.gen.ant.AbstractCixsGenerator |
---|
add, addCixsService, completeModel, execute, generateFile, generateFile, getCixsService, getCoxbBinDir, getCustBinDir, getHostCharset, getJaxbBinDir, getTargetAntDir, getTargetBinDir, getTargetDistDir, getTargetSrcDir, init, setCixsService, setCoxbBinDir, setCustBinDir, setHostCharset, setJaxbBinDir, setTargetAntDir, setTargetBinDir, setTargetDistDir, setTargetSrcDir |
Methods inherited from class org.apache.tools.ant.Task |
---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
getProject, setProject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CIXS_TO_JAXWS_GENERATOR_NAME
public static final String SERVICE_ANT_BUILD_WAR_VLC_TEMPLATE
public static final String SERVICE_ANT_DEPLOY_VLC_TEMPLATE
public static final String SERVICE_WEB_XML_VLC_TEMPLATE
public static final String OPERATION_COBOL_CICS_LSHTTAPI_CLIENT_VLC_TEMPLATE
public static final String OPERATION_COBOL_CICS_WEBAPI_CLIENT_VLC_TEMPLATE
public static final String OPERATION_COBOL_CICS_DFHWBCLI_CLIENT_VLC_TEMPLATE
public static final String OPERATION_COBOL_CICS_WMQ_CLIENT_VLC_TEMPLATE
public static final String SERVICE_MODEL_NAME
public static final String DEFAULT_SERVER_PATH_TEMPLATE
Constructor Detail |
---|
public Cixs2JaxwsGenerator()
Method Detail |
---|
public void addExtendedParameters(Map<String,Object> parameters)
addExtendedParameters
in class AbstractCixsJaxwsGenerator
parameters
- a parameters map to which parameters must be addedpublic void checkExtendedExtendedInput() throws com.legstar.codegen.CodeGenMakeException
checkExtendedExtendedInput
in class AbstractCixsJaxwsGenerator
com.legstar.codegen.CodeGenMakeException
- if control failspublic void generateExtended(Map<String,Object> parameters) throws com.legstar.codegen.CodeGenMakeException
generateExtended
in class AbstractCixsJaxwsGenerator
parameters
- a predefined set of parameters useful for generation
com.legstar.codegen.CodeGenMakeException
- if generation failspublic static String generateAntBuildWar(CixsJaxwsService service, Map<String,Object> parameters, File serviceAntFilesDir) throws com.legstar.codegen.CodeGenMakeException
service
- the service descriptionparameters
- miscellaneous help parametersserviceAntFilesDir
- where to store the generated file
com.legstar.codegen.CodeGenMakeException
- if generation failspublic static String generateAntDeploy(CixsJaxwsService service, Map<String,Object> parameters, File serviceAntFilesDir) throws com.legstar.codegen.CodeGenMakeException
service
- the Jaxws service descriptionparameters
- miscellaneous help parametersserviceAntFilesDir
- where to store the generated file
com.legstar.codegen.CodeGenMakeException
- if generation failspublic static String generateWebXml(CixsJaxwsService service, Map<String,Object> parameters, File serviceWebFilesDir) throws com.legstar.codegen.CodeGenMakeException
service
- the Jaxws service descriptionparameters
- miscellaneous help parametersserviceWebFilesDir
- where to store the generated file
com.legstar.codegen.CodeGenMakeException
- if generation failspublic static void generateCobolCicsClient(AbstractCixsService service, CixsOperation operation, Map<String,Object> parameters, File cobolFilesDir, TransportType transportType, CobolHttpClientType cobolHttpClientType) throws com.legstar.codegen.CodeGenMakeException
service
- the Jaxws service descriptionoperation
- the operation for which a program is to be generatedparameters
- the set of parameters to pass to template enginecobolFilesDir
- location where COBOL code should be generatedtransportType
- wire protocol to use between cobol client and proxycobolHttpClientType
- the type of COBOL http client sample to generate
com.legstar.codegen.CodeGenMakeException
- if generation failspublic File getTargetCobolDir()
public void setTargetCobolDir(File targetCobolDir)
targetCobolDir
- the directory where COBOL files will be created
to setpublic AntBuildCixs2JaxwsModel getAntModel()
getAntModel
in class AbstractCixsJaxwsGenerator
AbstractCixsGenerator.getAntModel()
public List<CixsOperation> getCixsOperations()
getCixsOperations
in class AbstractCixsJaxwsGenerator
public String getGeneratorName()
getGeneratorName
in class AbstractCixsGenerator
protected CobolHttpClientType getSampleCobolHttpClientTypeInternal()
public String getSampleCobolHttpClientType()
public void setSampleCobolHttpClientType(String sampleCobolHttpClientType)
sampleCobolHttpClientType
- the Http Cobol Client Type in use.protected ProxyTargetType getProxyTargetTypeInternal()
protected void setProxyTargetTypeInternal(ProxyTargetType proxyTargetType)
proxyTargetType
- the type of target that the generated proxy service will invokepublic String getProxyTargetType()
public void setProxyTargetType(String proxyTargetType)
proxyTargetType
- the type of target that the generated proxy service will invokepublic PojoParameters getPojoTargetParameters()
public void setPojoTargetParameters(PojoParameters pojoTargetParameters)
pojoTargetParameters
- the set of parameters needed to invoke a POJO to setpublic void addPojoTargetParameters(PojoParameters pojoTargetParameters)
pojoTargetParameters
- the set of parameters needed to invoke a POJO to setpublic WebServiceParameters getWebServiceTargetParameters()
public void setWebServiceTargetParameters(WebServiceParameters webServiceTargetParameters)
webServiceTargetParameters
- the set of parameters needed to invoke a Web Service to setpublic void addWebServiceTargetParameters(WebServiceParameters webServiceTargetParameters)
webServiceTargetParameters
- the set of parameters needed to invoke a Web Service to setpublic HttpTransportParameters getHttpTransportParameters()
public void setHttpTransportParameters(HttpTransportParameters httpTransportParameters)
httpTransportParameters
- the set of parameters needed to access the proxy over HTTPpublic void addHttpTransportParameters(HttpTransportParameters httpTransportParameters)
httpTransportParameters
- the set of parameters needed to access the proxy over HTTP to setpublic String getDefaultServicePath()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |