FileDocCategorySizeDatePackage
WSDDGlobalConfiguration.javaAPI DocApache Axis 1.44726Sat Apr 22 18:57:28 BST 2006org.apache.axis.deployment.wsdd

WSDDGlobalConfiguration

public class WSDDGlobalConfiguration extends WSDDDeployableItem
Represents the global configuration of the Axis engine.
author
James Snell

Fields Summary
private WSDDRequestFlow
requestFlow
private WSDDResponseFlow
responseFlow
private ArrayList
roles
Constructors Summary
public WSDDGlobalConfiguration()
Default constructor


            
     
    
    
public WSDDGlobalConfiguration(Element e)

param
e (Element) XXX
throws
WSDDException XXX

        super(e);
        Element reqEl = getChildElement(e, ELEM_WSDD_REQFLOW);
        if (reqEl != null && reqEl.getElementsByTagName("*").getLength()>0) {
            requestFlow = new WSDDRequestFlow(reqEl);
        }
        Element respEl = getChildElement(e, ELEM_WSDD_RESPFLOW);
        if (respEl != null && respEl.getElementsByTagName("*").getLength()>0) {
            responseFlow = new WSDDResponseFlow(respEl);
        }

        Element [] roleElements = getChildElements(e, ELEM_WSDD_ROLE);
        for (int i = 0; i < roleElements.length; i++) {
            String role = XMLUtils.getChildCharacterData(roleElements[i]);
            roles.add(role);
        }
    
Methods Summary
public voiddeployToRegistry(WSDDDeployment registry)

        if (requestFlow != null)
            requestFlow.deployToRegistry(registry);
        if (responseFlow != null)
            responseFlow.deployToRegistry(registry);
    
protected javax.xml.namespace.QNamegetElementName()

        return WSDDConstants.QNAME_GLOBAL;
    
public WSDDFaultFlowgetFaultFlow(javax.xml.namespace.QName name)

param
name XXX
return
XXX


        WSDDFaultFlow[] t = getFaultFlows();

        for (int n = 0; n < t.length; n++) {
            if (t[n].getQName().equals(name)) {
                return t[n];
            }
        }

        return null;
    
public WSDDFaultFlow[]getFaultFlows()

return
XXX

        return null;
    
public WSDDRequestFlowgetRequestFlow()
Get our request flow

        return requestFlow;
    
public WSDDResponseFlowgetResponseFlow()
Get our response flow

        return responseFlow;
    
public java.util.ListgetRoles()

        return (List)roles.clone();
    
public javax.xml.namespace.QNamegetType()

return
XXX

        return null;
    
public org.apache.axis.HandlermakeNewInstance(org.apache.axis.EngineConfiguration registry)

param
registry XXX
return
XXX

        return null;
    
public voidsetRequestFlow(WSDDRequestFlow reqFlow)
Set our request flow

        requestFlow = reqFlow;
    
public voidsetResponseFlow(WSDDResponseFlow responseFlow)
Set the response flow

        this.responseFlow = responseFlow;
    
public voidsetType(java.lang.String type)

param
type XXX

        throw new WSDDException(Messages.getMessage("noTypeOnGlobalConfig00"));
    
public voidwriteToContext(org.apache.axis.encoding.SerializationContext context)
Write this element out to a SerializationContext

        context.startElement(QNAME_GLOBAL, null);
        writeParamsToContext(context);
        if (requestFlow != null)
            requestFlow.writeToContext(context);
        if (responseFlow != null)
            responseFlow.writeToContext(context);
        context.endElement();