List of usage examples for javax.naming OperationNotSupportedException OperationNotSupportedException
public OperationNotSupportedException(String explanation)
From source file:ReadOnlyContext.java
public void rename(String oldName, String newName) throws NamingException { throw new OperationNotSupportedException("This is a read-only Context"); }
From source file:ReadOnlyContext.java
public void rename(Name oldName, Name newName) throws NamingException { throw new OperationNotSupportedException("This is a read-only Context"); }
From source file:ReadOnlyContext.java
public void unbind(String name) throws NamingException { throw new OperationNotSupportedException("This is a read-only Context"); }
From source file:ReadOnlyContext.java
public void unbind(Name name) throws NamingException { throw new OperationNotSupportedException("This is a read-only Context"); }
From source file:io.pivotal.poc.gemfire.gtx.jndi.SimpleNamingContext.java
@Override public NamingEnumeration<NameClassPair> list(Name name) throws NamingException { throw new OperationNotSupportedException("SimpleNamingContext does not support [javax.naming.Name]"); }
From source file:com.alliander.osgp.acceptancetests.basicfunctions.VerifyAuthorizePlatformFunctionSteps.java
@DomainStep("platform function (.*) is called") public void whenPlatformFunctionIsCalled(final String function) { try {/*from w ww. java2 s .c om*/ switch (function) { case "CREATE_ORGANISATION": this.createOrganisation(); break; case "GET_ORGANISATIONS": this.getOrganisations(); break; case "GET_MESSAGES": this.getMessages(); break; case "GET_DEVICE_NO_OWNER": this.getDeviceWithoNoOwner(); break; case "SET_OWNER": this.setOwner(); break; case "UPDATE_KEY": this.updateKey(); break; case "REVOKE_KEY": this.revokeKey(); break; default: throw new OperationNotSupportedException("Function " + function + " does not exist."); } } catch (final Throwable t) { this.throwable = t; } }
From source file:io.pivotal.poc.gemfire.gtx.jndi.SimpleNamingContext.java
@Override public NamingEnumeration<Binding> listBindings(Name name) throws NamingException { throw new OperationNotSupportedException("SimpleNamingContext does not support [javax.naming.Name]"); }
From source file:io.pivotal.poc.gemfire.gtx.jndi.SimpleNamingContext.java
@Override public Object lookup(Name name) throws NamingException { throw new OperationNotSupportedException("SimpleNamingContext does not support [javax.naming.Name]"); }
From source file:io.pivotal.poc.gemfire.gtx.jndi.SimpleNamingContext.java
@Override public Object lookupLink(Name name) throws NamingException { throw new OperationNotSupportedException("SimpleNamingContext does not support [javax.naming.Name]"); }
From source file:io.pivotal.poc.gemfire.gtx.jndi.SimpleNamingContext.java
@Override public void bind(Name name, Object obj) throws NamingException { throw new OperationNotSupportedException("SimpleNamingContext does not support [javax.naming.Name]"); }