com.sforce.ws.tools
Class ConnectionGenerator

java.lang.Object
  extended by com.sforce.ws.tools.ConnectionGenerator

public class ConnectionGenerator
extends Object

ConnectionGenerator

Since:
1.0 Jan 18, 2006
Version:
1.0
Author:
http://cheenath.com

Constructor Summary
ConnectionGenerator(Definitions definitions, File tempDir, TypeMapper typeMapper, String packagePrefix)
           
 
Method Summary
 Iterator<Element> argElements(Operation operation)
           
 String argName(Element element)
           
 String argSetMethod(Element element)
           
 String dumpKnownHeaders()
           
 String dumpQNames()
           
 String endpoint()
           
 String generate(String templateFile, String className)
           
 String generateConnection()
           
 String generateConnector()
           
 String getArgs(Operation operation)
           
 String getClassName()
           
 String getJavaClassName(Element el)
           
 String getOperationName(Operation operation)
           
 Iterator<Operation> getOperations()
           
 String getPackageName()
           
 String getPackagePrefix()
           
 Element getResponseElement(Operation operation)
           
 String getResultCall(Operation operation)
           
 String getTargetNamespace()
           
 boolean hasLoginCall()
           
 boolean hasSessionHeader()
           
 String headerArgs(Part header)
           
 String headerElement(Part header)
           
 Iterator<Element> headerElements(Part header)
           
 String headerName(Part header)
           
 Iterator<Part> headers()
           
 Iterator<Part> headersFor(Operation operation)
           
 String headerType(Part header)
           
 String loginResult()
           
 String requestName(Operation operation)
           
 String requestType(Operation operation)
           
 String responseName(Operation operation)
           
 String responseType(Operation operation)
           
 String returnType(Operation operation)
           
 String soapAction(Operation operation)
           
 String sobjectNamespace()
           
 String verifyEndpoint()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionGenerator

public ConnectionGenerator(Definitions definitions,
                           File tempDir,
                           TypeMapper typeMapper,
                           String packagePrefix)
Method Detail

endpoint

public String endpoint()

verifyEndpoint

public String verifyEndpoint()

getPackageName

public String getPackageName()

getClassName

public String getClassName()

getPackagePrefix

public String getPackagePrefix()

getTargetNamespace

public String getTargetNamespace()

sobjectNamespace

public String sobjectNamespace()

dumpQNames

public String dumpQNames()
                  throws ConnectionException
Throws:
ConnectionException

dumpKnownHeaders

public String dumpKnownHeaders()
                        throws ConnectionException
Throws:
ConnectionException

hasSessionHeader

public boolean hasSessionHeader()
                         throws ConnectionException
Throws:
ConnectionException

headersFor

public Iterator<Part> headersFor(Operation operation)
                          throws ConnectionException
Throws:
ConnectionException

headers

public Iterator<Part> headers()
                       throws ConnectionException
Throws:
ConnectionException

headerType

public String headerType(Part header)
                  throws ConnectionException
Throws:
ConnectionException

headerName

public String headerName(Part header)

headerElement

public String headerElement(Part header)
                     throws ConnectionException
Throws:
ConnectionException

getResultCall

public String getResultCall(Operation operation)
                     throws ConnectionException
Throws:
ConnectionException

soapAction

public String soapAction(Operation operation)
                  throws ConnectionException
Throws:
ConnectionException

returnType

public String returnType(Operation operation)
                  throws ConnectionException
Throws:
ConnectionException

getResponseElement

public Element getResponseElement(Operation operation)
                           throws ConnectionException
Throws:
ConnectionException

headerArgs

public String headerArgs(Part header)
                  throws ConnectionException
Throws:
ConnectionException

headerElements

public Iterator<Element> headerElements(Part header)
                                 throws ConnectionException
Throws:
ConnectionException

getArgs

public String getArgs(Operation operation)
               throws ConnectionException
Throws:
ConnectionException

argSetMethod

public String argSetMethod(Element element)

argName

public String argName(Element element)

argElements

public Iterator<Element> argElements(Operation operation)
                              throws ConnectionException
Throws:
ConnectionException

getJavaClassName

public String getJavaClassName(Element el)

loginResult

public String loginResult()
                   throws ConnectionException
Throws:
ConnectionException

responseName

public String responseName(Operation operation)
                    throws ConnectionException
Throws:
ConnectionException

requestName

public String requestName(Operation operation)
                   throws ConnectionException
Throws:
ConnectionException

responseType

public String responseType(Operation operation)
                    throws ConnectionException
Throws:
ConnectionException

requestType

public String requestType(Operation operation)
                   throws ConnectionException
Throws:
ConnectionException

getOperations

public Iterator<Operation> getOperations()

getOperationName

public String getOperationName(Operation operation)

generateConnector

public String generateConnector()
                         throws IOException,
                                TemplateException
Throws:
IOException
TemplateException

hasLoginCall

public boolean hasLoginCall()

generateConnection

public String generateConnection()
                          throws IOException,
                                 TemplateException
Throws:
IOException
TemplateException

generate

public String generate(String templateFile,
                       String className)
                throws IOException,
                       TemplateException
Throws:
IOException
TemplateException


Copyright © 2012. All Rights Reserved.