FileDocCategorySizeDatePackage
PropertyHandler.javaAPI DocApache Axis 1.42270Sat Apr 22 18:57:28 BST 2006test.properties

PropertyHandler

public class PropertyHandler extends org.apache.axis.handlers.BasicHandler
Combination of two functions for this test. 1) When invoked as a Handler, save the value of the PROP_NAME property into a field so the test can look at it later. (used to test client- side) 2) When used as a back-end service, return the value of the PROP_NAME property (used to test server-side)
author
Glen Daniels (gdaniels@apache.org)

Fields Summary
private String
propVal
Constructors Summary
Methods Summary
public java.lang.StringgetPropVal()

        return propVal;
    
public voidinvoke(org.apache.axis.MessageContext msgContext)

        // Get the "normal" property value, and save it away.
        propVal = msgContext.getStrProp(TestScopedProperties.PROP_NAME);

        // Set the "override" property directly in the MC.
        msgContext.setProperty(TestScopedProperties.OVERRIDE_NAME,
                               TestScopedProperties.OVERRIDE_VALUE);
    
public voidsetPropVal(java.lang.String propVal)

        this.propVal = propVal;
    
public java.lang.StringtestOverrideProperty()

        MessageContext context = MessageContext.getCurrentContext();
        String propVal = context.getStrProp(TestScopedProperties.OVERRIDE_NAME);
        return propVal;
    
public java.lang.StringtestScopedProperty()

        MessageContext context = MessageContext.getCurrentContext();
        String propVal = context.getStrProp(TestScopedProperties.PROP_NAME);
        return propVal;