FileDocCategorySizeDatePackage
ContextService.javaAPI DocApache Tomcat 6.0.146984Fri Jul 20 04:20:32 BST 2007org.apache.catalina.deploy

ContextService

public class ContextService extends ResourceBase implements Serializable
Representation of a web service reference for a web application, as represented in a <service-ref> element in the deployment descriptor.
author
Fabien Carrion
version
$Revision: 513349 $ $Date: 2007-03-01 15:33:06 +0100 (jeu., 01 mars 2007) $

Fields Summary
private String
displayname
The WebService reference name.
private String
icon
An icon for this WebService.
private String
wsdlfile
Contains the location (relative to the root of the module) of the web service WSDL description.
private String
jaxrpcmappingfile
A file specifying the correlation of the WSDL definition to the interfaces (Service Endpoint Interface, Service Interface).
private String[]
serviceqname
Declares the specific WSDL service element that is being referred to. It is not specified if no wsdl-file is declared or if WSDL contains only 1 service element. A service-qname is composed by a namespaceURI and a localpart. It must be defined if more than 1 service is declared in the WSDL. serviceqname[0] : namespaceURI serviceqname[1] : localpart
private HashMap
handlers
A list of Handlers to use for this service-ref. The instanciation of the handler have to be done.
Constructors Summary
Methods Summary
public voidaddHandler(ContextHandler handler)

        handlers.put(handler.getName(), handler);
    
public voidaddPortcomponent(java.lang.String serviceendpoint, java.lang.String portlink)

        if (portlink == null)
            portlink = "";
        this.setProperty(serviceendpoint, portlink);
    
public java.lang.StringgetDisplayname()


       
        return (this.displayname);
    
public ContextHandlergetHandler(java.lang.String handlername)

        return (ContextHandler) handlers.get(handlername);
    
public java.util.IteratorgetHandlers()


       
        return handlers.keySet().iterator();
    
public java.lang.StringgetIcon()


       
        return (this.icon);
    
public java.lang.StringgetJaxrpcmappingfile()


       
        return (this.jaxrpcmappingfile);
    
public java.lang.StringgetPortlink(java.lang.String serviceendpoint)

        return (String) this.getProperty(serviceendpoint);
    
public java.util.IteratorgetServiceendpoints()
Declares a client dependency on the container to resolving a Service Endpoint Interface to a WSDL port. It optionally associates the Service Endpoint Interface with a particular port-component.

        return this.listProperties();
    
public java.lang.StringgetServiceqname(int i)

        return this.serviceqname[i];
    
public java.lang.String[]getServiceqname()


       
        return (this.serviceqname);
    
public java.lang.StringgetServiceqnameLocalpart()

        return this.serviceqname[1];
    
public java.lang.StringgetServiceqnameNamespaceURI()

        return this.serviceqname[0];
    
public java.lang.StringgetWsdlfile()


       
        return (this.wsdlfile);
    
public voidsetDisplayname(java.lang.String displayname)

        this.displayname = displayname;
    
public voidsetIcon(java.lang.String icon)

        this.icon = icon;
    
public voidsetJaxrpcmappingfile(java.lang.String jaxrpcmappingfile)

        this.jaxrpcmappingfile = jaxrpcmappingfile;
    
public voidsetServiceqname(java.lang.String[] serviceqname)

        this.serviceqname = serviceqname;
    
public voidsetServiceqname(java.lang.String serviceqname, int i)

        this.serviceqname[i] = serviceqname;
    
public voidsetServiceqnameLocalpart(java.lang.String localpart)

        this.serviceqname[1] = localpart;
    
public voidsetServiceqnameNamespaceURI(java.lang.String namespaceuri)

        this.serviceqname[0] = namespaceuri;
    
public voidsetWsdlfile(java.lang.String wsdlfile)

        this.wsdlfile = wsdlfile;
    
public java.lang.StringtoString()
Return a String representation of this object.


        StringBuffer sb = new StringBuffer("ContextService[");
        sb.append("name=");
        sb.append(getName());
        if (getDescription() != null) {
            sb.append(", description=");
            sb.append(getDescription());
        }
        if (getType() != null) {
            sb.append(", type=");
            sb.append(getType());
        }
        if (displayname != null) {
            sb.append(", displayname=");
            sb.append(displayname);
        }
        if (icon != null) {
            sb.append(", icon=");
            sb.append(icon);
        }
        if (wsdlfile != null) {
            sb.append(", wsdl-file=");
            sb.append(wsdlfile);
        }
        if (jaxrpcmappingfile != null) {
            sb.append(", jaxrpc-mapping-file=");
            sb.append(jaxrpcmappingfile);
        }
        if (serviceqname[0] != null) {
            sb.append(", service-qname/namespaceURI=");
            sb.append(serviceqname[0]);
        }
        if (serviceqname[1] != null) {
            sb.append(", service-qname/localpart=");
            sb.append(serviceqname[1]);
        }
        if (this.getServiceendpoints() != null) {
            sb.append(", port-component/service-endpoint-interface=");
            sb.append(this.getServiceendpoints());
        }
        if (handlers != null) {
            sb.append(", handler=");
            sb.append(handlers);
        }
        sb.append("]");
        return (sb.toString());