public class VerifierUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
NS_URI_XMLNS
The namespaceURI represented by the prefix
xmlns. |
| Constructor and Description |
|---|
VerifierUtils(I18NBundle resourceBundle)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
cleanup(String tmpDir)
This method is used to cleanup the contents of the verifier tmp dir
|
String |
createEndpointName(String namespace,
String serviceName,
String endpointName)
This method is used to create the endpoint name from
the namespace URI, service name and endpoint name
The three items are concatenated with a comma between the,
If the namespace URI is empty it is omitted
|
List |
getApplicationVariables(File wsdlFile,
String endpointName)
This method is used to get the list of application variables
used in the given endpoint in the wsdl file
|
List |
getApplicationVariables(String wsdlString,
String endpointName)
This method is used to get the list of application variables
used in the given endpoint in the wsdl file
|
List |
getAppVars(String content)
This method is used to get a list of application variables
present in the given String
|
String |
getAttributeValue(Node node,
String attribute)
This method is used to get the value of the given attribute
|
Map<String,List<String>> |
getEndpointConfigMap(JBIArchive archive,
String suJarEntryName)
This method is used to return a list of config names used in the given
SU
|
Map<String,List<String>> |
getEndpointConfigMap(String suDir)
This method is used to return a list of config names used in the given
SU
|
String[] |
getEndpointName(File wsdlFile)
This method is used to get the list of endpoint names from a wsdl file
|
String[] |
getEndpointName(String wsdlString)
This method is used to get the list of endpoint names from a wsdl file
|
Map<String,String> |
getSUJarEntryMap(JBIArchive archive) |
Map<String,String[]> |
getWSDLs(JBIArchive archive)
This method is used to get a list of WSDL files in a SA
|
Map<String,File[]> |
getWSDLs(String saDirPath)
This method is used to get a list of WSDL files in a SA
|
boolean |
isPortConfiguredForEndpoint(String wsdlString,
String endpointName)
This method is used to find out if the given endpoint's port definition has
an associated child element configure connectivity information
|
public static final String NS_URI_XMLNS
xmlns.public VerifierUtils(I18NBundle resourceBundle)
public boolean cleanup(String tmpDir)
tmpDir - the temp dirpublic Map<String,File[]> getWSDLs(String saDirPath) throws VerifierException
saDir - the dir where the SA is extractedVerifierException - if the wsdl list could not be obtainedpublic Map<String,String[]> getWSDLs(JBIArchive archive) throws VerifierException
archive - the JBIArchive objectVerifierException - if the wsdl list could not be obtainedpublic Map<String,String> getSUJarEntryMap(JBIArchive archive) throws VerifierException
VerifierExceptionpublic Map<String,List<String>> getEndpointConfigMap(String suDir) throws VerifierException
suDir - the dir where the SU is extractedVerifierExceptionpublic Map<String,List<String>> getEndpointConfigMap(JBIArchive archive, String suJarEntryName) throws VerifierException
not - know yetVerifierExceptionpublic String[] getEndpointName(File wsdlFile) throws VerifierException
File - the wsdl fileVerifierException - if the endpointName could not be obtainedpublic String[] getEndpointName(String wsdlString) throws VerifierException
wsdlString - the wsdl stringVerifierException - if the endpointName could not be obtainedpublic String createEndpointName(String namespace, String serviceName, String endpointName)
namespace - the namespace URIservicename - the service nameendpointName - the endpoint namepublic String getAttributeValue(Node node, String attribute)
node - the nodeattribute - the attribute nameString - the attribute valuepublic List getApplicationVariables(File wsdlFile, String endpointName) throws VerifierException
File - the wsdl fileendpointname - the endpoint nameVerifierException - if the list could not be obtainedpublic List getApplicationVariables(String wsdlString, String endpointName) throws VerifierException
File - the wsdl fileendpointname - the endpoint nameVerifierException - if the list could not be obtainedpublic List getAppVars(String content)
content - the stringpublic boolean isPortConfiguredForEndpoint(String wsdlString, String endpointName) throws VerifierException
String - wsdlStringendpointName - endpointNameVerifierExceptionCopyright © 2011-2016 OpenESB Community. All Rights Reserved.