|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sandev.generator.GeneratorCommon
org.sandev.generator.WebShellGeneratorBase
org.sandev.generator.WebServiceShellGenerator
Create the web services shell servlet that bridges to the main servlet processing. This front-end servlet captures the config parameters needed for the deployment and initializes the main RequestAdaptor.
The source code is written to a directory named after the type of the sandui declaration. So for example if the sandui name is "myname" and the type is "fastXMLWS" then the source will be in
sand/deploy/myappmain/fastXMLWS/src/org/sandev/ui/servlet/myname.java
The src directory and everything below it is cleaned
up, but the top level directory is not, since it may contain other
supporting files for the deployed service. The WEB-INV directory and
the web.xml file are removed since they need to match the servlet
source which is driven from the sandui build declaration.
| Field Summary | |
static java.lang.String |
clientName
The name of the client source file. |
static java.lang.String |
clientPackage
The name of the client source package. |
| Fields inherited from class org.sandev.generator.GeneratorCommon |
CONTEXT_CONFIGURATION, CONTEXT_CONTROL, CONTEXT_FRAMEWORK, CONTEXT_MESSAGING, CONTEXT_PERSISTENCE, CONTEXT_UI, DEFAULT_LINE_LENGTH, MESSAGE_INTERFACES |
| Constructor Summary | |
WebServiceShellGenerator()
|
|
| Method Summary | |
void |
cleanup(org.sandev.sandbuild.SandDecl[] decls,
java.io.File baseDir,
boolean changed,
java.lang.String extra)
See the SandGenerator interface description and class comments for details. |
void |
generate(org.sandev.sandbuild.SandDecl[] decls,
java.io.File baseDir,
boolean changed,
java.util.Collection dirtyFiles,
java.lang.String extra)
See the SandGenerator interface description and class comments for details. |
protected org.sandev.sandbuild.SandUIDeployment |
getWebSvcDeployment(org.sandev.sandbuild.SandProject proj)
Return the web service SandUIDeployment or null if not found. |
protected void |
removeServiceClient(java.io.File projDir,
java.lang.String clientDir)
Remove the generated client source files. |
protected void |
writeServiceClient(java.io.File projDir,
java.lang.String clientDirName,
boolean changed,
java.lang.String serviceDir)
Make sure we have the specified directory, and write the source for the webservice test client. |
| Methods inherited from class org.sandev.generator.WebShellGeneratorBase |
buildFileChanged, removeWebInf, removeWebShellSrc, verifySubProjectDir, verifyWebInf, verifyWebShellSrc |
| Methods inherited from class org.sandev.generator.GeneratorCommon |
capitalize, copyfile, deletefile, filterHTMLLine, getDeclaredFields, getFields, getInheritanceHierarchy, getLastAppProject, getLastUtilDir, getLongInstanceName, getPrintStream, getSandProject, getShortInstanceName, getUtilPackage, getVisibleFields, isBasic, isLongReferenceArray, isMessageInterface, isParentAbstract, isPrimitive, isRootStruct, isVowel, log, nextToken, pluralize, rangeEscape, removePlatformDecls, trackFileDelete, trackFileWrite, uncapitalize, writeDefaultCtor, writeDescription, writeHTMLContents, writeMessageImports, writeSectionName, writeStandardCommentID, writeXHTMLFooter, writeXHTMLFooter, writeXHTMLHeader, writeXHTMLHeader |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String clientPackage
public static final java.lang.String clientName
| Constructor Detail |
public WebServiceShellGenerator()
| Method Detail |
public void generate(org.sandev.sandbuild.SandDecl[] decls,
java.io.File baseDir,
boolean changed,
java.util.Collection dirtyFiles,
java.lang.String extra)
throws org.sandev.sandbuild.SandGeneratorException
generate in interface org.sandev.sandbuild.SandGeneratororg.sandev.sandbuild.SandGeneratorException
public void cleanup(org.sandev.sandbuild.SandDecl[] decls,
java.io.File baseDir,
boolean changed,
java.lang.String extra)
throws org.sandev.sandbuild.SandGeneratorException
cleanup in interface org.sandev.sandbuild.SandGeneratororg.sandev.sandbuild.SandGeneratorException
protected void writeServiceClient(java.io.File projDir,
java.lang.String clientDirName,
boolean changed,
java.lang.String serviceDir)
throws org.sandev.sandbuild.SandGeneratorException
org.sandev.sandbuild.SandGeneratorException
protected void removeServiceClient(java.io.File projDir,
java.lang.String clientDir)
throws org.sandev.sandbuild.SandGeneratorException
org.sandev.sandbuild.SandGeneratorException
protected org.sandev.sandbuild.SandUIDeployment getWebSvcDeployment(org.sandev.sandbuild.SandProject proj)
throws org.sandev.sandbuild.SandGeneratorException
org.sandev.sandbuild.SandGeneratorException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||