|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.deployment.util.Utils
public class Utils
Field Summary | |
---|---|
static java.lang.String |
defaultEncoding
|
Constructor Summary | |
---|---|
Utils()
|
Method Summary | |
---|---|
static void |
addEndpointsToService(AxisService axisService)
|
static void |
addEndpointsToService(AxisService axisService,
AxisConfiguration axisConfiguration)
|
static void |
addExcludeMethods(java.util.ArrayList excludeList)
To add the exclude method when generating schemas , here the exclude methods will be session releated axis2 methods |
static void |
addFlowHandlers(Flow flow,
java.lang.ClassLoader clsLoader)
|
static void |
addHttpEndpoint(AxisService axisService,
java.net.URL url)
|
static void |
addModuleBindingOperation(AxisService service,
AxisOperation operation)
|
static void |
addSoap11Endpoint(AxisService axisService,
java.net.URL url)
|
static void |
addSoap12Endpoint(AxisService axisService,
java.net.URL url)
|
static java.lang.ClassLoader |
createClassLoader(java.util.ArrayList urls,
java.lang.ClassLoader serviceClassLoader,
boolean extractJars,
java.io.File tmpDir)
|
static DeploymentClassLoader |
createClassLoader(java.io.File serviceFile)
|
static java.lang.ClassLoader |
createClassLoader(java.net.URL[] urls,
java.lang.ClassLoader serviceClassLoader,
boolean extractJars,
java.io.File tmpDir)
|
static java.io.File |
createTempFile(java.lang.String suffix,
java.io.InputStream in,
java.io.File tmpDir)
|
static void |
deployModuleServices(AxisModule module,
ConfigurationContext configCtx)
This method is to get the list of services there in a module if module want to add services then the way of doing that is 1. |
static void |
fillAxisService(AxisService axisService,
AxisConfiguration axisConfig,
java.util.ArrayList excludeOperations,
java.util.ArrayList nonRpcMethods)
This guy will create a AxisService using java reflection |
static java.util.List |
findLibJars(java.net.URL url)
Searches for jar files inside /lib dirctory. |
static java.lang.String |
getAnnotatedServiceName(java.lang.Class serviceClass,
org.codehaus.jam.JAnnotation serviceAnnotation)
The util method to prepare the JSR 181 annotated service name from given annotation or for defaults JSR 181 specifies that the in javax.jws.WebService the parameter serviceName contains the wsdl:service name to mapp. |
static AxisOperation |
getAxisOperationForJmethod(org.codehaus.jam.JMethod jmethod)
|
static java.lang.ClassLoader |
getClassLoader(java.lang.ClassLoader parent,
java.io.File file)
Get a ClassLoader which contains a classpath of a) the passed directory and b) any jar files inside the "lib/" or "Lib/" subdirectory of the passed directory. |
static java.lang.ClassLoader |
getClassLoader(java.lang.ClassLoader parent,
java.lang.String path)
|
static org.apache.axiom.om.OMElement |
getParameter(java.lang.String name,
java.lang.String value,
boolean locked)
|
static java.lang.String |
getPath(java.lang.String parent,
java.lang.String childPath)
|
static java.lang.String |
getShortFileName(java.lang.String filename)
|
static java.lang.String |
getSimpleName(org.codehaus.jam.JMethod method)
|
static java.net.URL[] |
getURLsForAllJars(java.net.URL url,
java.io.File tmpDir)
|
static boolean |
isHttpBinding(AxisBinding binding)
|
static boolean |
isSoap11Binding(AxisBinding binding)
|
static boolean |
isSoap12Binding(AxisBinding binding)
|
static boolean |
loadHandler(java.lang.ClassLoader loader1,
HandlerDescription desc)
|
static java.lang.String |
normalize(java.lang.String uri)
Normalize a uri containing ../ and ./ paths. |
static void |
populateEPMap(AxisService service)
|
static void |
processBeanPropertyExclude(AxisService service)
This method is to process bean exclude parameter and the XML format of that would be |
static void |
processPolicyAttachments(java.util.Iterator attachmentElements,
AxisService service)
|
static java.io.File |
toFile(java.net.URL url)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String defaultEncoding
Constructor Detail |
---|
public Utils()
Method Detail |
---|
public static void addFlowHandlers(Flow flow, java.lang.ClassLoader clsLoader) throws AxisFault
AxisFault
public static boolean loadHandler(java.lang.ClassLoader loader1, HandlerDescription desc) throws DeploymentException
DeploymentException
public static java.net.URL[] getURLsForAllJars(java.net.URL url, java.io.File tmpDir)
public static java.io.File createTempFile(java.lang.String suffix, java.io.InputStream in, java.io.File tmpDir) throws java.io.IOException
java.io.IOException
public static java.lang.ClassLoader getClassLoader(java.lang.ClassLoader parent, java.lang.String path) throws DeploymentException
DeploymentException
public static java.lang.ClassLoader getClassLoader(java.lang.ClassLoader parent, java.io.File file) throws DeploymentException
parent
- parent ClassLoader which will be the parent of the result of
this methodfile
- a File which must be a directory for this to be useful
DeploymentException
- if problems occurpublic static void fillAxisService(AxisService axisService, AxisConfiguration axisConfig, java.util.ArrayList excludeOperations, java.util.ArrayList nonRpcMethods) throws java.lang.Exception
axisService
- the target AxisServiceaxisConfig
- the in-scope AxisConfigurationexcludeOperations
- a List of Strings (or null), each containing a method to
excludenonRpcMethods
- a List of Strings (or null), each containing a non-rpc method
name
java.lang.Exception
- if a problem occurspublic static AxisOperation getAxisOperationForJmethod(org.codehaus.jam.JMethod jmethod) throws AxisFault
AxisFault
public static java.lang.String getSimpleName(org.codehaus.jam.JMethod method)
public static org.apache.axiom.om.OMElement getParameter(java.lang.String name, java.lang.String value, boolean locked)
public static void deployModuleServices(AxisModule module, ConfigurationContext configCtx) throws AxisFault
AxisFault
public static java.lang.String normalize(java.lang.String uri)
uri
- The uri path to normalize
public static java.lang.String getPath(java.lang.String parent, java.lang.String childPath)
public static java.util.List findLibJars(java.net.URL url)
public static void addExcludeMethods(java.util.ArrayList excludeList)
public static DeploymentClassLoader createClassLoader(java.io.File serviceFile) throws java.net.MalformedURLException
java.net.MalformedURLException
public static java.lang.ClassLoader createClassLoader(java.util.ArrayList urls, java.lang.ClassLoader serviceClassLoader, boolean extractJars, java.io.File tmpDir)
public static java.io.File toFile(java.net.URL url) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public static java.lang.ClassLoader createClassLoader(java.net.URL[] urls, java.lang.ClassLoader serviceClassLoader, boolean extractJars, java.io.File tmpDir)
public static void processBeanPropertyExclude(AxisService service)
service
- ,
AxisService objectpublic static java.lang.String getShortFileName(java.lang.String filename)
public static java.lang.String getAnnotatedServiceName(java.lang.Class serviceClass, org.codehaus.jam.JAnnotation serviceAnnotation)
public static void addEndpointsToService(AxisService axisService) throws AxisFault
AxisFault
public static void addEndpointsToService(AxisService axisService, AxisConfiguration axisConfiguration) throws AxisFault
AxisFault
public static void addSoap11Endpoint(AxisService axisService, java.net.URL url) throws java.lang.Exception
java.lang.Exception
public static void addSoap12Endpoint(AxisService axisService, java.net.URL url) throws java.lang.Exception
java.lang.Exception
public static void addHttpEndpoint(AxisService axisService, java.net.URL url)
public static void processPolicyAttachments(java.util.Iterator attachmentElements, AxisService service) throws javax.xml.stream.XMLStreamException, javax.xml.stream.FactoryConfigurationError
javax.xml.stream.XMLStreamException
javax.xml.stream.FactoryConfigurationError
public static void populateEPMap(AxisService service)
public static void addModuleBindingOperation(AxisService service, AxisOperation operation)
public static boolean isSoap11Binding(AxisBinding binding)
public static boolean isSoap12Binding(AxisBinding binding)
public static boolean isHttpBinding(AxisBinding binding)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |