155156157158159160161162163164165
} else { if (named_client_interceptors.containsKey(interceptor.name())) { throw new DuplicateName(interceptor.name()); } named_client_interceptors.put(interceptor.name(), interceptor); } }
174175176177178179180181
private void checkInterceptorName(Interceptor interceptor) throws DuplicateName { if (interceptor.name() == null) { throw new DuplicateName("the name is null"); } }
191192193194195196197198199200201
} else { if (named_ior_interceptors.containsKey(interceptor.name())) { throw new DuplicateName(interceptor.name()); } named_ior_interceptors.put(interceptor.name(), interceptor); } }
213214215216217218219220221222223
} else { if (named_server_interceptors.containsKey(interceptor.name())) { throw new DuplicateName(interceptor.name()); } named_server_interceptors.put(interceptor.name(), interceptor); } }
135136137138139140141142
if( !foundDuplicate ) { growInterceptorArray( type ); interceptors[type][interceptors[type].length-1] = interceptor; } else { throw new DuplicateName( interceptorName ); } }