Class ContextService
java.lang.Object
org.apache.tomcat.util.descriptor.web.ResourceBase
org.apache.tomcat.util.descriptor.web.ContextService
- All Implemented Interfaces:
Serializable, Injectable
Representation of a web service reference for a web application, as represented in a
<service-ref>
element in the deployment descriptor.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHandler(ContextHandler handler) Adds a handler for this service reference.voidaddPortcomponent(String serviceendpoint, String portlink) Adds a port component mapping for the given service endpoint.booleanReturns the WebService reference display name.getHandler(String handlername) Returns the handler with the given name.Returns an iterator over the handler names.Returns the JAX-WS Service interface class name.Returns the JAX-RPC mapping file.Returns the large icon for this WebService.getPortlink(String serviceendpoint) Returns the port link for the given service endpoint.Declares a client dependency on the container to resolving a Service Endpoint Interface to a WSDL port.String[]Returns the WSDL service QName array.getServiceqname(int i) Returns the WSDL service QName at the given index.Returns the local part of the WSDL service QName.Returns the namespace URI of the WSDL service QName.Returns the small icon for this WebService.Returns the location of the web service WSDL description.inthashCode()voidsetDisplayname(String displayname) Sets the WebService reference display name.voidsetInterface(String serviceInterface) Sets the JAX-WS Service interface class name.voidsetJaxrpcmappingfile(String jaxrpcmappingfile) Sets the JAX-RPC mapping file.voidsetLargeIcon(String largeIcon) Sets the large icon for this WebService.voidsetServiceqname(String[] serviceqname) Sets the WSDL service QName array.voidsetServiceqname(String serviceqname, int i) Sets the WSDL service QName at the given index.voidsetServiceqnameLocalpart(String localpart) Sets the local part of the WSDL service QName.voidsetServiceqnameNamespaceURI(String namespaceuri) Sets the namespace URI of the WSDL service QName.voidsetSmallIcon(String smallIcon) Sets the small icon for this WebService.voidsetWsdlfile(String wsdlfile) Sets the location of the web service WSDL description.toString()Return a String representation of this object.Methods inherited from class ResourceBase
addInjectionTarget, getDescription, getInjectionTargets, getLookupName, getName, getNamingResources, getProperty, getType, listProperties, removeProperty, setDescription, setLookupName, setName, setNamingResources, setProperty, setType
-
Constructor Details
-
ContextService
public ContextService()Default constructor for ContextService.
-
-
Method Details
-
getDisplayname
Returns the WebService reference display name.- Returns:
- the display name
-
setDisplayname
Sets the WebService reference display name.- Parameters:
displayname- the display name
-
getLargeIcon
Returns the large icon for this WebService.- Returns:
- the large icon path
-
setLargeIcon
Sets the large icon for this WebService.- Parameters:
largeIcon- the large icon path
-
getSmallIcon
Returns the small icon for this WebService.- Returns:
- the small icon path
-
setSmallIcon
Sets the small icon for this WebService.- Parameters:
smallIcon- the small icon path
-
getInterface
Returns the JAX-WS Service interface class name.- Returns:
- the service interface class name
-
setInterface
Sets the JAX-WS Service interface class name.- Parameters:
serviceInterface- the service interface class name
-
getWsdlfile
Returns the location of the web service WSDL description.- Returns:
- the WSDL file location
-
setWsdlfile
Sets the location of the web service WSDL description.- Parameters:
wsdlfile- the WSDL file location
-
getJaxrpcmappingfile
Returns the JAX-RPC mapping file.- Returns:
- the JAX-RPC mapping file path
-
setJaxrpcmappingfile
Sets the JAX-RPC mapping file.- Parameters:
jaxrpcmappingfile- the JAX-RPC mapping file path
-
getServiceqname
Returns the WSDL service QName array.- Returns:
- the service QName array
-
getServiceqname
Returns the WSDL service QName at the given index.- Parameters:
i- the index- Returns:
- the service QName component
-
getServiceqnameNamespaceURI
Returns the namespace URI of the WSDL service QName.- Returns:
- the namespace URI
-
getServiceqnameLocalpart
Returns the local part of the WSDL service QName.- Returns:
- the local part
-
setServiceqname
Sets the WSDL service QName array.- Parameters:
serviceqname- the service QName array
-
setServiceqname
Sets the WSDL service QName at the given index.- Parameters:
serviceqname- the service QName componenti- the index
-
setServiceqnameNamespaceURI
Sets the namespace URI of the WSDL service QName.- Parameters:
namespaceuri- the namespace URI
-
setServiceqnameLocalpart
Sets the local part of the WSDL service QName.- Parameters:
localpart- the local part
-
getServiceendpoints
-
getPortlink
-
addPortcomponent
-
getHandlers
-
getHandler
Returns the handler with the given name.- Parameters:
handlername- the handler name- Returns:
- the handler
-
addHandler
Adds a handler for this service reference.- Parameters:
handler- the handler to add
-
toString
-
hashCode
public int hashCode()- Overrides:
hashCodein classResourceBase
-
equals
- Overrides:
equalsin classResourceBase
-