IdempotentUrlPatternNodepublic class IdempotentUrlPatternNode extends WebRuntimeNode node to handle idempotent-url-pattern node |
Fields Summary |
---|
com.sun.enterprise.deployment.runtime.web.IdempotentUrlPattern | descriptor |
Methods Summary |
---|
public java.lang.Object | getDescriptor()
if (descriptor == null) {
descriptor = new IdempotentUrlPattern();
}
return descriptor;
| protected boolean | setAttributeValue(com.sun.enterprise.deployment.node.XMLElement elementName, com.sun.enterprise.deployment.node.XMLElement attributeName, java.lang.String value)parsed an attribute of an element
if (attributeName.getQName().equals(RuntimeTagNames.URL_PATTERN)) {
descriptor.setAttributeValue(IdempotentUrlPattern.URL_PATTERN,
value);
return true;
} else if (attributeName.getQName().equals(
RuntimeTagNames.NUM_OF_RETRIES)) {
descriptor.setAttributeValue(IdempotentUrlPattern.NUM_OF_RETRIES,
value);
return true;
}
return false;
| public org.w3c.dom.Node | writeDescriptor(org.w3c.dom.Node parent, java.lang.String nodeName, com.sun.enterprise.deployment.runtime.web.IdempotentUrlPattern pattern)write the descriptor class to a DOM tree and return it
Element patternNode =
(Element)super.writeDescriptor(parent, nodeName, pattern);
// url-pattern
if (pattern.getAttributeValue(pattern.URL_PATTERN) != null) {
setAttribute(patternNode, RuntimeTagNames.URL_PATTERN, pattern.getAttributeValue(pattern.URL_PATTERN));
}
// num-of-retries
if (pattern.getAttributeValue(pattern.NUM_OF_RETRIES) != null) {
setAttribute(patternNode, RuntimeTagNames.NUM_OF_RETRIES, pattern.getAttributeValue(pattern.NUM_OF_RETRIES));
}
return patternNode;
|
|