Class ContextService

  • All Implemented Interfaces:
    java.io.Serializable, Injectable

    public class ContextService
    extends ResourceBase
    Representation of a web service reference for a web application, as represented in a <service-ref> element in the deployment descriptor.
    See Also:
    Serialized Form
    • Constructor Detail

      • ContextService

        public ContextService()
        Default constructor for ContextService.
    • Method Detail

      • getDisplayname

        public java.lang.String getDisplayname()
        Returns the WebService reference display name.
        Returns:
        the display name
      • setDisplayname

        public void setDisplayname​(java.lang.String displayname)
        Sets the WebService reference display name.
        Parameters:
        displayname - the display name
      • getLargeIcon

        public java.lang.String getLargeIcon()
        Returns the large icon for this WebService.
        Returns:
        the large icon path
      • setLargeIcon

        public void setLargeIcon​(java.lang.String largeIcon)
        Sets the large icon for this WebService.
        Parameters:
        largeIcon - the large icon path
      • getSmallIcon

        public java.lang.String getSmallIcon()
        Returns the small icon for this WebService.
        Returns:
        the small icon path
      • setSmallIcon

        public void setSmallIcon​(java.lang.String smallIcon)
        Sets the small icon for this WebService.
        Parameters:
        smallIcon - the small icon path
      • getInterface

        public java.lang.String getInterface()
        Returns the JAX-WS Service interface class name.
        Returns:
        the service interface class name
      • setInterface

        public void setInterface​(java.lang.String serviceInterface)
        Sets the JAX-WS Service interface class name.
        Parameters:
        serviceInterface - the service interface class name
      • getWsdlfile

        public java.lang.String getWsdlfile()
        Returns the location of the web service WSDL description.
        Returns:
        the WSDL file location
      • setWsdlfile

        public void setWsdlfile​(java.lang.String wsdlfile)
        Sets the location of the web service WSDL description.
        Parameters:
        wsdlfile - the WSDL file location
      • getJaxrpcmappingfile

        public java.lang.String getJaxrpcmappingfile()
        Returns the JAX-RPC mapping file.
        Returns:
        the JAX-RPC mapping file path
      • setJaxrpcmappingfile

        public void setJaxrpcmappingfile​(java.lang.String jaxrpcmappingfile)
        Sets the JAX-RPC mapping file.
        Parameters:
        jaxrpcmappingfile - the JAX-RPC mapping file path
      • getServiceqname

        public java.lang.String[] getServiceqname()
        Returns the WSDL service QName array.
        Returns:
        the service QName array
      • getServiceqname

        public java.lang.String getServiceqname​(int i)
        Returns the WSDL service QName at the given index.
        Parameters:
        i - the index
        Returns:
        the service QName component
      • getServiceqnameNamespaceURI

        public java.lang.String getServiceqnameNamespaceURI()
        Returns the namespace URI of the WSDL service QName.
        Returns:
        the namespace URI
      • getServiceqnameLocalpart

        public java.lang.String getServiceqnameLocalpart()
        Returns the local part of the WSDL service QName.
        Returns:
        the local part
      • setServiceqname

        public void setServiceqname​(java.lang.String[] serviceqname)
        Sets the WSDL service QName array.
        Parameters:
        serviceqname - the service QName array
      • setServiceqname

        public void setServiceqname​(java.lang.String serviceqname,
                                    int i)
        Sets the WSDL service QName at the given index.
        Parameters:
        serviceqname - the service QName component
        i - the index
      • setServiceqnameNamespaceURI

        public void setServiceqnameNamespaceURI​(java.lang.String namespaceuri)
        Sets the namespace URI of the WSDL service QName.
        Parameters:
        namespaceuri - the namespace URI
      • setServiceqnameLocalpart

        public void setServiceqnameLocalpart​(java.lang.String localpart)
        Sets the local part of the WSDL service QName.
        Parameters:
        localpart - the local part
      • getServiceendpoints

        public java.util.Iterator<java.lang.String> getServiceendpoints()
        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.
        Returns:
        the endpoint names iterator
      • getPortlink

        public java.lang.String getPortlink​(java.lang.String serviceendpoint)
        Returns the port link for the given service endpoint.
        Parameters:
        serviceendpoint - the service endpoint name
        Returns:
        the port link
      • addPortcomponent

        public void addPortcomponent​(java.lang.String serviceendpoint,
                                     java.lang.String portlink)
        Adds a port component mapping for the given service endpoint.
        Parameters:
        serviceendpoint - the service endpoint name
        portlink - the port link
      • getHandlers

        public java.util.Iterator<java.lang.String> getHandlers()
        Returns an iterator over the handler names.
        Returns:
        iterator of handler names
      • getHandler

        public ContextHandler getHandler​(java.lang.String handlername)
        Returns the handler with the given name.
        Parameters:
        handlername - the handler name
        Returns:
        the handler
      • addHandler

        public void addHandler​(ContextHandler handler)
        Adds a handler for this service reference.
        Parameters:
        handler - the handler to add
      • toString

        public java.lang.String toString()
        Return a String representation of this object.
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class ResourceBase