MCPcopy Create free account
hub / github.com/apache/tomcat / checkWritable

Method checkWritable

java/org/apache/naming/NamingContext.java:666–675  ·  view source on GitHub ↗

Throws a naming exception is Context is not writable. @return true if the Context is writable @throws NamingException if the Context is not writable and exceptionOnFailedWrite is true

()

Source from the content-addressed store, hash-verified

664 * <code>true</code>
665 */
666 protected boolean checkWritable() throws NamingException {
667 if (isWritable()) {
668 return true;
669 } else {
670 if (exceptionOnFailedWrite) {
671 throw new OperationNotSupportedException(sm.getString("namingContext.readOnly"));
672 }
673 }
674 return false;
675 }
676}
677

Callers 5

unbindMethod · 0.95
destroySubcontextMethod · 0.95
createSubcontextMethod · 0.95
closeMethod · 0.95
bindMethod · 0.95

Calls 2

isWritableMethod · 0.95
getStringMethod · 0.65

Tested by

no test coverage detected