Class ContextService
- java.lang.Object
-
- org.apache.tomcat.util.descriptor.web.ResourceBase
-
- org.apache.tomcat.util.descriptor.web.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 Summary
Constructors Constructor Description ContextService()Default constructor for ContextService.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHandler(ContextHandler handler)Adds a handler for this service reference.voidaddPortcomponent(java.lang.String serviceendpoint, java.lang.String portlink)Adds a port component mapping for the given service endpoint.booleanequals(java.lang.Object obj)java.lang.StringgetDisplayname()Returns the WebService reference display name.ContextHandlergetHandler(java.lang.String handlername)Returns the handler with the given name.java.util.Iterator<java.lang.String>getHandlers()Returns an iterator over the handler names.java.lang.StringgetInterface()Returns the JAX-WS Service interface class name.java.lang.StringgetJaxrpcmappingfile()Returns the JAX-RPC mapping file.java.lang.StringgetLargeIcon()Returns the large icon for this WebService.java.lang.StringgetPortlink(java.lang.String serviceendpoint)Returns the port link for the given service endpoint.java.util.Iterator<java.lang.String>getServiceendpoints()Declares a client dependency on the container to resolving a Service Endpoint Interface to a WSDL port.java.lang.String[]getServiceqname()Returns the WSDL service QName array.java.lang.StringgetServiceqname(int i)Returns the WSDL service QName at the given index.java.lang.StringgetServiceqnameLocalpart()Returns the local part of the WSDL service QName.java.lang.StringgetServiceqnameNamespaceURI()Returns the namespace URI of the WSDL service QName.java.lang.StringgetSmallIcon()Returns the small icon for this WebService.java.lang.StringgetWsdlfile()Returns the location of the web service WSDL description.inthashCode()voidsetDisplayname(java.lang.String displayname)Sets the WebService reference display name.voidsetInterface(java.lang.String serviceInterface)Sets the JAX-WS Service interface class name.voidsetJaxrpcmappingfile(java.lang.String jaxrpcmappingfile)Sets the JAX-RPC mapping file.voidsetLargeIcon(java.lang.String largeIcon)Sets the large icon for this WebService.voidsetServiceqname(java.lang.String[] serviceqname)Sets the WSDL service QName array.voidsetServiceqname(java.lang.String serviceqname, int i)Sets the WSDL service QName at the given index.voidsetServiceqnameLocalpart(java.lang.String localpart)Sets the local part of the WSDL service QName.voidsetServiceqnameNamespaceURI(java.lang.String namespaceuri)Sets the namespace URI of the WSDL service QName.voidsetSmallIcon(java.lang.String smallIcon)Sets the small icon for this WebService.voidsetWsdlfile(java.lang.String wsdlfile)Sets the location of the web service WSDL description.java.lang.StringtoString()Return a String representation of this object.-
Methods inherited from class org.apache.tomcat.util.descriptor.web.ResourceBase
addInjectionTarget, getDescription, getInjectionTargets, getLookupName, getName, getNamingResources, getProperty, getType, listProperties, removeProperty, setDescription, setLookupName, setName, setNamingResources, setProperty, setType
-
-
-
-
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 componenti- 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 nameportlink- 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:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classResourceBase
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classResourceBase
-
-