Class ContextHandler
java.lang.Object
org.apache.tomcat.util.descriptor.web.ResourceBase
org.apache.tomcat.util.descriptor.web.ContextHandler
- All Implemented Interfaces:
Serializable,Injectable
Representation of a handler reference for a web service, as represented in a
<handler> element in
the deployment descriptor.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPortName(String portName) Adds a port name.voidaddSoapHeaders(String localpart, String namespaceuri) Adds a SOAP header with the given local part and namespace URI.voidaddSoapRole(String soapRole) Adds a SOAP role.booleanReturns the Handler reference class.Returns the iterator of local parts for SOAP headers.getNamespaceuri(String localpart) Returns the namespace URI for the given local part.getPortName(int i) Returns the port name at the given index.intReturns the number of port names.getSoapRole(int i) Returns the SOAP role at the given index.intReturns the number of SOAP roles.inthashCode()voidsetHandlerclass(String handlerclass) Sets the Handler reference class.voidsetProperty(String name, String value) Set a configured property.toString()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
-
Constructor Details
-
ContextHandler
public ContextHandler()Default constructor for ContextHandler.
-
-
Method Details
-
getHandlerclass
Returns the Handler reference class.- Returns:
- the handler class name
-
setHandlerclass
Sets the Handler reference class.- Parameters:
handlerclass- the handler class name
-
getLocalparts
Returns the iterator of local parts for SOAP headers.- Returns:
- iterator of local part names
-
getNamespaceuri
Returns the namespace URI for the given local part.- Parameters:
localpart- the local part name- Returns:
- the namespace URI
-
addSoapHeaders
Adds a SOAP header with the given local part and namespace URI.- Parameters:
localpart- the local part namenamespaceuri- the namespace URI
-
setProperty
Set a configured property.- Parameters:
name- The property namevalue- The property value
-
getSoapRole
Returns the SOAP role at the given index.- Parameters:
i- the index- Returns:
- the SOAP role
-
getSoapRolesSize
public int getSoapRolesSize()Returns the number of SOAP roles.- Returns:
- the SOAP roles count
-
addSoapRole
Adds a SOAP role.- Parameters:
soapRole- the SOAP role to add
-
getPortName
Returns the port name at the given index.- Parameters:
i- the index- Returns:
- the port name
-
getPortNamesSize
public int getPortNamesSize()Returns the number of port names.- Returns:
- the port names count
-
addPortName
Adds a port name.- Parameters:
portName- the port name to add
-
toString
Return a String representation of this object. -
hashCode
public int hashCode()- Overrides:
hashCodein classResourceBase
-
equals
- Overrides:
equalsin classResourceBase
-