public class Util extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Util.FileInfo
Class that holds uuid and file info.
|
Modifier and Type | Field and Description |
---|---|
static String |
JSSTUB_XSL_LOCATION |
static String |
LAST_TOUCH_TIME |
static String |
MOCKIT_XSL_LOCATION |
static long |
PERIOD |
static String |
TRYIT_SG_NAME |
static String |
TRYIT_XSL_LOCATION |
static String |
VIEWIT_XSL_LOCATION |
static String |
WSDL2SIG_XSL_LOCATION |
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static void |
generateMockit(Source xmlIn,
Result result,
Map paramMap) |
static void |
generateStub(Source xmlIn,
Result result,
Map paramMap) |
static void |
generateTryit(Source xmlIn,
Result result,
Map paramMap) |
static void |
generateViewit(Source xmlIn,
Result result,
Map paramMap) |
static Util.FileInfo |
getOutputFileLocation(String suffix)
Get generic location to write a file with the given suffix.
|
static DOMSource |
getSigStream(org.apache.axis2.description.AxisService service,
ByteArrayOutputStream wsdlOutStream,
Map paramMap) |
static DOMSource |
getSigStream(org.apache.axis2.description.AxisService axisService,
Map paramMap) |
static void |
transform(Source xmlIn,
Source xslIn,
Result result,
Map paramMap)
Transform based on parameters
|
static void |
transform(Source xmlIn,
Source xslIn,
Result result,
Map paramMap,
URIResolver uriResolver) |
static String |
writeWSDLToFileSystem(String url)
This will return location of the file written to the system filesystem.
|
static File |
writeWSDLToFileSystemHelpler(String url)
Helper method to write the WSDL file to the filesytem.
|
static InputStream |
writeWSDLToStream(String url)
This will return an InputStream for the written file into the filesystem.
|
public static final String WSDL2SIG_XSL_LOCATION
public static final String JSSTUB_XSL_LOCATION
public static final String MOCKIT_XSL_LOCATION
public static final String TRYIT_XSL_LOCATION
public static final String VIEWIT_XSL_LOCATION
public static String TRYIT_SG_NAME
public static String LAST_TOUCH_TIME
public static final long PERIOD
public static DOMSource getSigStream(org.apache.axis2.description.AxisService service, ByteArrayOutputStream wsdlOutStream, Map paramMap) throws TransformerFactoryConfigurationError, TransformerException, ParserConfigurationException
public static DOMSource getSigStream(org.apache.axis2.description.AxisService axisService, Map paramMap) throws TransformerFactoryConfigurationError, TransformerException, org.apache.axis2.AxisFault, ParserConfigurationException
TransformerFactoryConfigurationError
TransformerException
org.apache.axis2.AxisFault
ParserConfigurationException
public static void transform(Source xmlIn, Source xslIn, Result result, Map paramMap) throws TransformerException
xmlIn
- XMLxslIn
- XSLresult
- ResultparamMap
- Parameter mapTransformerException
- will be thrownpublic static void transform(Source xmlIn, Source xslIn, Result result, Map paramMap, URIResolver uriResolver) throws TransformerException
TransformerException
public static void generateTryit(Source xmlIn, Result result, Map paramMap) throws TransformerException
TransformerException
public static void generateViewit(Source xmlIn, Result result, Map paramMap) throws TransformerException
TransformerException
public static void generateMockit(Source xmlIn, Result result, Map paramMap) throws TransformerException
TransformerException
public static void generateStub(Source xmlIn, Result result, Map paramMap) throws TransformerException
TransformerException
public static String writeWSDLToFileSystem(String url) throws org.apache.axis2.AxisFault
url
- WSDL locationorg.apache.axis2.AxisFault
- will be thrownpublic static InputStream writeWSDLToStream(String url) throws IOException
url
- WSDL locationIOException
- will be thrownpublic static Util.FileInfo getOutputFileLocation(String suffix) throws org.wso2.carbon.CarbonException
suffix
- should be given with dot; ex: .xml, .wsdlorg.wso2.carbon.CarbonException
Copyright © 2017 WSO2. All rights reserved.