public class ServiceSupport.Library
extends java.lang.Object
Constructor and Description |
---|
Library() |
Modifier and Type | Method and Description |
---|---|
void |
addSoapDataSetParameter(java.lang.String program,
java.lang.String internalEntry,
Aast parameter,
SchemaDictionary dictionary)
Add a SOAP dataset parameter for the specified program and internal entry.
|
void |
addSoapOperation(java.lang.String file,
java.lang.String program,
java.lang.String internalEntry)
Add a SOAP operation for the specified program and internal entry.
|
void |
addSoapParameter(java.lang.String program,
java.lang.String internalEntry,
Aast parameter)
Add a SOAP parameter for the specified program and internal entry.
|
void |
addSoapTableParameter(java.lang.String program,
java.lang.String internalEntry,
Aast parameter,
SchemaDictionary dictionary)
Add a SOAP table parameter for the specified program and internal entry.
|
void |
generateSoapWsdl()
Generate all WSDL files and save the in the root Java package.
|
java.util.List<LegacyServiceParameter> |
getParameters(LegacyService srv)
Get the parameters associated with a service call.
|
java.util.List<LegacyWebPath> |
getPaths(java.lang.String cls)
Get the paths served by this web handler.
|
java.lang.String |
getProxyFolder(java.lang.String file)
Get the folder under which this external program was initially configured as being defined.
|
java.lang.String |
getProxyPackage(java.lang.String file)
Get the Java package under which the legacy open client proxy Java class will be generated.
|
java.lang.String |
getSection(java.lang.String cls)
Get the section where this legacy class is configured as a web handler.
|
java.util.List<SoapOperation> |
getSoapOperations(java.lang.String file,
java.lang.String program,
java.lang.String internalEntry)
Get all the defined SOAP operations.
|
boolean |
isLegacyProxyClient(java.lang.String file)
Check if the given external program file (as a full path) is configured as a legacy open client proxy
program.
|
boolean |
isRestService(java.lang.String serviceName)
Check if there is a service with the given name.
|
boolean |
isWebHandler(java.lang.String cls)
Check if the given qualified legacy class name is configured as a WebHandler.\
|
void |
registerProxyJavaAst(java.lang.String file,
java.lang.String proxyAstFilename)
Register the given JAST file name with its associated external program (which is configured as a
legacy open client proxy).
|
LegacyService |
resolveRestAnnotation(java.lang.String serviceName)
Computes the
LegacyService annotation for the given service. |
void |
setSoapReturnType(java.lang.String program,
java.lang.String internalEntry,
long type)
For this function or method, set its return type.
|
public java.lang.String getProxyPackage(java.lang.String file)
file
- The full name for the external program.public java.lang.String getProxyFolder(java.lang.String file)
file
- The full name for the external program.public void registerProxyJavaAst(java.lang.String file, java.lang.String proxyAstFilename)
file
- The full name for the external program.proxyAstFilename
- The full JAST file name.public boolean isLegacyProxyClient(java.lang.String file)
file
- The full path for the program.true
if the program exists in any of the .xpxg configurations in
ServiceSupport.WorkArea.proxyConfigs
.public void generateSoapWsdl()
public void setSoapReturnType(java.lang.String program, java.lang.String internalEntry, long type)
program
- The program defining the internal entry or method.internalEntry
- The internal entry or method.type
- The return token type.public void addSoapOperation(java.lang.String file, java.lang.String program, java.lang.String internalEntry)
file
- The program file.program
- The program name.internalEntry
- The internal entry name.public void addSoapParameter(java.lang.String program, java.lang.String internalEntry, Aast parameter)
program
- The program name.internalEntry
- The internal entry name.parameter
- The parameter AST.public void addSoapTableParameter(java.lang.String program, java.lang.String internalEntry, Aast parameter, SchemaDictionary dictionary)
program
- The program name.internalEntry
- The internal entry name.parameter
- The parameter AST.dictionary
- The schema dictionary to resolve the table fields.public void addSoapDataSetParameter(java.lang.String program, java.lang.String internalEntry, Aast parameter, SchemaDictionary dictionary)
program
- The program name.internalEntry
- The internal entry name.parameter
- The parameter AST.dictionary
- The schema dictionary to resolve the table fields.public java.util.List<SoapOperation> getSoapOperations(java.lang.String file, java.lang.String program, java.lang.String internalEntry)
file
- The file name.program
- The program name.internalEntry
- The internal entry name.public boolean isWebHandler(java.lang.String cls)
cls
- The qualified class name.public java.lang.String getSection(java.lang.String cls)
cls
- The legacy qualified class name.public java.util.List<LegacyWebPath> getPaths(java.lang.String cls)
cls
- The qualified legacy class name, which has handler configurations.public java.util.List<LegacyServiceParameter> getParameters(LegacyService srv)
srv
- The service annotaiton.public boolean isRestService(java.lang.String serviceName)
serviceName
- The service name.public LegacyService resolveRestAnnotation(java.lang.String serviceName)
LegacyService
annotation for the given service. This will be used
by the TRPL code to emit a 4GL-style LegacyService
annotation.serviceName
- The REST service.