public class AxisUtils
extends java.lang.Object
| Constructor and Description |
|---|
AxisUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
applySecurityPolicy(org.apache.axis2.description.AxisService service,
java.lang.String policy_file) |
static void |
configureService(org.apache.axis2.description.AxisService axisService,
java.net.URL service_file) |
static void |
configureService(org.apache.axis2.context.ConfigurationContext configCtx,
org.apache.axis2.description.AxisService axisService,
java.net.URL service_file)
Configure a service instance woth the specified service.xml document.
|
static void |
engageModules(org.apache.axis2.description.AxisDescription description,
java.lang.String... modules) |
public static void configureService(org.apache.axis2.description.AxisService axisService,
java.net.URL service_file)
throws java.io.IOException,
javax.xml.stream.XMLStreamException,
org.apache.axis2.AxisFault
java.io.IOExceptionjavax.xml.stream.XMLStreamExceptionorg.apache.axis2.AxisFaultpublic static void configureService(org.apache.axis2.context.ConfigurationContext configCtx,
org.apache.axis2.description.AxisService axisService,
java.net.URL service_file)
throws java.io.IOException,
javax.xml.stream.XMLStreamException,
org.apache.axis2.AxisFault
this method will make sure they are properly engaged and engage them if necessary.
The modules have to be available in the module repository otherwise an AxisFault will be thrown.axisService - the service to configureservice_file - the service.xm document to configure the service withjava.io.IOExceptionjavax.xml.stream.XMLStreamExceptionorg.apache.axis2.AxisFault - if a module listed in the service.xml is not available in the module repositorypublic static void applySecurityPolicy(org.apache.axis2.description.AxisService service,
java.lang.String policy_file)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic static void engageModules(org.apache.axis2.description.AxisDescription description,
java.lang.String... modules)
throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault