private void applyInterceptors(ClientInterceptorRepositoryImpl repository) { prefixInterceptors.prefixClientInterceptorsTo(repository); suffixInterceptors.copyClientInterceptorsTo(repository); }
protected WriterInterceptor[] getWriterInterceptors() { return getArray(WriterInterceptor.class); }
public LinkedList<ClientExecutionInterceptor> getExecutionInterceptorList() { return getInterceptors(InterceptorType.ClientExecution); }
public static void applyDefaultInterceptors( ClientInterceptorRepositoryImpl repository, ResteasyProviderFactory providerFactory, Class declaring, Method method) { repository.setReaderInterceptors(providerFactory .getClientReaderInterceptorRegistry().postMatch(declaring, method)); repository.setWriterInterceptors(providerFactory .getClientWriterInterceptorRegistry().postMatch(declaring, method)); repository.setExecutionInterceptors(providerFactory .getClientExecutionInterceptorRegistry().bind(declaring, method)); }
public void registerInterceptor(Object interceptor) { boolean registered = false; if (interceptor instanceof ClientExecutionInterceptor) { getExecutionInterceptorList().add( (ClientExecutionInterceptor) interceptor); registered = true; } if (interceptor instanceof MessageBodyReaderInterceptor) { getReaderInterceptorList().add( new ReaderInterceptorRegistry.ReaderInterceptorFacade((MessageBodyReaderInterceptor)interceptor)); registered = true; } if (interceptor instanceof MessageBodyWriterInterceptor) { getWriterInterceptorList().add( new WriterInterceptorRegistry.WriterInterceptorFacade((MessageBodyWriterInterceptor) interceptor)); registered = true; } if (!registered) { throw new RuntimeException(Messages.MESSAGES.entityNotOfUnderstoodType()); } }
protected void setWriterInterceptors( WriterInterceptor[] writerInterceptors) { setData(InterceptorType.MessageBodyWriter, writerInterceptors); }
public ClientRequestFactory(ClientRequestFactory other) { this.providerFactory = other.providerFactory; this.executor = other.executor; this.setBase(other.getBase()); this.applyDefaultInterceptors = other.applyDefaultInterceptors; this.followRedirects = other.followRedirects; other.prefixInterceptors .copyClientInterceptorsTo(this.prefixInterceptors); other.suffixInterceptors .copyClientInterceptorsTo(this.suffixInterceptors); }
public static void applyDefaultInterceptors( ClientInterceptorRepositoryImpl repository, ResteasyProviderFactory providerFactory, Class declaring, Method method) { repository.setReaderInterceptors(providerFactory .getClientReaderInterceptorRegistry().postMatch(declaring, method)); repository.setWriterInterceptors(providerFactory .getClientWriterInterceptorRegistry().postMatch(declaring, method)); if (providerFactory instanceof org.jboss.resteasy.spi.old.ResteasyProviderFactory) { repository.setExecutionInterceptors(((org.jboss.resteasy.spi.old.ResteasyProviderFactory) providerFactory) .getClientExecutionInterceptorRegistry().bind(declaring, method)); } }
public void registerInterceptor(Object interceptor) { boolean registered = false; if (interceptor instanceof ClientExecutionInterceptor) { getExecutionInterceptorList().add( (ClientExecutionInterceptor) interceptor); registered = true; } if (interceptor instanceof MessageBodyReaderInterceptor) { getReaderInterceptorList().add( new ReaderInterceptorRegistry.ReaderInterceptorFacade((MessageBodyReaderInterceptor)interceptor)); registered = true; } if (interceptor instanceof MessageBodyWriterInterceptor) { getWriterInterceptorList().add( new WriterInterceptorRegistry.WriterInterceptorFacade((MessageBodyWriterInterceptor) interceptor)); registered = true; } if (!registered) { throw new RuntimeException(Messages.MESSAGES.entityNotOfUnderstoodType()); } }
protected void setReaderInterceptors( ReaderInterceptor[] readerInterceptors) { setData(InterceptorType.MessageBodyReader, readerInterceptors); }
public ClientRequestFactory(ClientRequestFactory other) { this.providerFactory = other.providerFactory; this.executor = other.executor; this.setBase(other.getBase()); this.applyDefaultInterceptors = other.applyDefaultInterceptors; this.followRedirects = other.followRedirects; other.prefixInterceptors .copyClientInterceptorsTo(this.prefixInterceptors); other.suffixInterceptors .copyClientInterceptorsTo(this.suffixInterceptors); }
public LinkedList<WriterInterceptor> getWriterInterceptorList() { return getInterceptors(InterceptorType.MessageBodyWriter); }
protected void setWriterInterceptors( WriterInterceptor[] writerInterceptors) { setData(InterceptorType.MessageBodyWriter, writerInterceptors); }
private void applyInterceptors(ClientInterceptorRepositoryImpl repository) { prefixInterceptors.prefixClientInterceptorsTo(repository); suffixInterceptors.copyClientInterceptorsTo(repository); }
protected ClientExecutionInterceptor[] getExecutionInterceptors() { return getArray(ClientExecutionInterceptor.class); }
public LinkedList<ClientExecutionInterceptor> getExecutionInterceptorList() { return getInterceptors(InterceptorType.ClientExecution); }
protected void setExecutionInterceptors( Collection<ClientExecutionInterceptor> executionInterceptorList) { setData(InterceptorType.ClientExecution, executionInterceptorList); }
protected ClientExecutionInterceptor[] getExecutionInterceptors() { return getArray(ClientExecutionInterceptor.class); }
public LinkedList<ReaderInterceptor> getReaderInterceptorList() { return getInterceptors(InterceptorType.MessageBodyReader); }
protected void setExecutionInterceptors( ClientExecutionInterceptor[] executionInterceptors) { setData(InterceptorType.ClientExecution, executionInterceptors); }