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
()
| 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 |
no test coverage detected