FileDocCategorySizeDatePackage
WebServiceHandler.javaAPI DocGlassfish v2 API5835Fri May 04 22:31:24 BST 2007com.sun.enterprise.deployment

WebServiceHandler

public class WebServiceHandler extends com.sun.enterprise.deployment.Descriptor
This class describes a web service message handler.
author
Jerome Dochez
author
Kenneth Saks

Fields Summary
private String
handlerName
private String
handlerClass
private Collection
initParams
private Collection
soapHeaders
private Collection
soapRoles
private Collection
portNames
Constructors Summary
public WebServiceHandler(WebServiceHandler other)
copy constructor.

    
          
       
	super(other);
	handlerName = other.handlerName; // String
	handlerClass = other.handlerClass; // String
	portNames.addAll(other.portNames); // Set of String
	soapRoles.addAll(other.soapRoles); // Set of String
	soapHeaders.addAll(other.soapHeaders); // Set of QName (immutable)
	for (Iterator i = other.initParams.iterator(); i.hasNext();) {
	    initParams.add(new NameValuePairDescriptor((NameValuePairDescriptor)i.next()));
	}
    
public WebServiceHandler()

    
Methods Summary
public voidaddInitParam(com.sun.enterprise.deployment.NameValuePairDescriptor newInitParam)
add an init param to this handler

param
the init param

        initParams.add(newInitParam);
        super.changed();
    
public voidaddPortName(java.lang.String portName)

        portNames.add(portName);
        super.changed();
    
public voidaddSoapHeader(javax.xml.namespace.QName soapHeader)

        soapHeaders.add(soapHeader);
        super.changed();
    
public voidaddSoapRole(java.lang.String soapRole)

        soapRoles.add(soapRole);
        super.changed();
    
public java.lang.StringgetHandlerClass()

return
the class name for this handler

        return handlerClass;
    
public java.lang.StringgetHandlerName()

        return handlerName;
    
public java.util.CollectiongetInitParams()

return
the list of init params for this handler

        return initParams;
    
public java.util.CollectiongetPortNames()

        return portNames;
    
public java.util.CollectiongetSoapHeaders()

        return soapHeaders;
    
public java.util.CollectiongetSoapRoles()

        return soapRoles;
    
public voidprint(java.lang.StringBuffer toStringBuffer)

return
a string describing the values I hold

        toStringBuffer.append("\nHandler name = ").append(handlerName).append( 
            "Handler class name = ").append(handlerClass);
        for (Iterator i=getInitParams().iterator(); i.hasNext(); ) {
            toStringBuffer.append("\n").append(i.next().toString());
        }
    
public voidremoveInitParam(com.sun.enterprise.deployment.NameValuePairDescriptor initParamToRemove)
remove an init param from this handler

param
the init param

        initParams.remove(initParamToRemove);
        super.changed();
    
public voidremovePortName(java.lang.String portName)

        portNames.remove(portName);
        super.changed();
    
public voidremoveSoapHeader(javax.xml.namespace.QName soapHeader)

        soapHeaders.remove(soapHeader);
        super.changed();
    
public voidremoveSoapRole(java.lang.String soapRole)

        soapRoles.remove(soapRole);
        super.changed();
    
public voidsetHandlerClass(java.lang.String className)
Sets the class name for this handler

param
class name

        handlerClass = className;
        super.changed();
    
public voidsetHandlerName(java.lang.String name)

        handlerName = name;
        super.changed();