FileDocCategorySizeDatePackage
ContextHandler.javaAPI DocApache Tomcat 6.0.144325Fri Jul 20 04:20:36 BST 2007org.apache.catalina.deploy

ContextHandler

public class ContextHandler extends ResourceBase implements Serializable
Representation of a handler reference for a web service, as represented in a <handler> element in the deployment descriptor.
author
Fabien Carrion

Fields Summary
private String
handlerclass
The Handler reference class.
private HashMap
soapHeaders
A list of QName specifying the SOAP Headers the handler will work on. -namespace and locapart values must be found inside the WSDL. A service-qname is composed by a namespaceURI and a localpart. soapHeader[0] : namespaceURI soapHeader[1] : localpart
private ArrayList
soapRoles
The soapRole.
private ArrayList
portNames
The portName.
Constructors Summary
Methods Summary
public voidaddPortName(java.lang.String portName)

        this.portNames.add(portName);
    
public voidaddSoapHeaders(java.lang.String localpart, java.lang.String namespaceuri)

        soapHeaders.put(localpart, namespaceuri);
    
public voidaddSoapRole(java.lang.String soapRole)

        this.soapRoles.add(soapRole);
    
public java.lang.StringgetHandlerclass()


       
        return (this.handlerclass);
    
public java.util.IteratorgetLocalparts()


       
        return soapHeaders.keySet().iterator();
    
public java.lang.StringgetNamespaceuri(java.lang.String localpart)

        return (String) soapHeaders.get(localpart);
    
public java.lang.StringgetPortName(int i)


        
        return this.portNames.get(i);
    
public intgetPortNamesSize()

        return this.portNames.size();
    
public java.lang.StringgetSoapRole(int i)


        
        return this.soapRoles.get(i);
    
public intgetSoapRolesSize()

        return this.soapRoles.size();
    
public voidsetHandlerclass(java.lang.String handlerclass)

        this.handlerclass = handlerclass;
    
public voidsetProperty(java.lang.String name, java.lang.String value)
Set a configured property.

        this.setProperty(name, (Object) value);
    
public java.lang.StringtoString()
Return a String representation of this object.


        StringBuffer sb = new StringBuffer("ContextHandler[");
        sb.append("name=");
        sb.append(getName());
        if (handlerclass != null) {
            sb.append(", class=");
            sb.append(handlerclass);
        }
        if (this.soapHeaders != null) {
            sb.append(", soap-headers=");
            sb.append(this.soapHeaders);
        }
        if (this.getSoapRolesSize() > 0) {
            sb.append(", soap-roles=");
            sb.append(soapRoles);
        }
        if (this.getPortNamesSize() > 0) {
            sb.append(", port-name=");
            sb.append(portNames);
        }
        if (this.listProperties() != null) {
            sb.append(", init-param=");
            sb.append(this.listProperties());
        }
        sb.append("]");
        return (sb.toString());