@Test public void setMethodsRequestInterceptorShouldSetRequestInterceptorOnAllMethodConfigs(){ assertSame(toTest, toTest.setMethodsRequestInterceptor(RequestInterceptor.class)); verify(mockM1MethodConfigBuilder).setRequestInterceptor(RequestInterceptor.class); verify(mockM2MethodConfigBuilder).setRequestInterceptor(RequestInterceptor.class); }
public InterfaceConfigBuilder setMethodsRequestInterceptor(Class<? extends RequestInterceptor> requestInterceptorClass) { for (MethodConfigBuilder b : methodBuilders.values()) { b.setRequestInterceptor(requestInterceptorClass); } return this; }
DefaultInterfaceConfigBuilder extends ConfigBuilder implements InterfaceConfigBuilder { public InterfaceConfigBuilder setMethodsRequestInterceptor(Class<? extends RequestInterceptor> requestInterceptorClass) { for (MethodConfigBuilder b : methodBuilders.values()) { b.setRequestInterceptor(requestInterceptorClass); } return this; } }
DefaultInterfaceConfigBuilder extends ConfigBuilder implements InterfaceConfigBuilder { public InterfaceConfigBuilder setMethodsRequestInterceptor(Class<? extends RequestInterceptor> requestInterceptorClass) { for (MethodConfigBuilder b : methodBuilders.values()) { b.setRequestInterceptor(requestInterceptorClass); } return this; } DefaultInterfaceConfigBuilder(Class interfaze, CRestConfig crestConfig, ComponentRegistry<String,Deserializer> mimeDeserializerRegistry, ComponentRegistry<Class<?>, Serializer> classSerializerRegistry); }
DefaultInterfaceConfigBuilder extends ConfigBuilder implements InterfaceConfigBuilder { public InterfaceConfigBuilder setMethodsRequestInterceptor(Class<? extends RequestInterceptor> requestInterceptorClass) { for (MethodConfigBuilder b : methodBuilders.values()) { b.setRequestInterceptor(requestInterceptorClass); } return this; } DefaultInterfaceConfigBuilder(Class interfaze, CRestConfig crestConfig, ComponentRegistry<String,Deserializer> mimeDeserializerRegistry, ComponentRegistry<Class<?>, Serializer> classSerializerRegistry); InterfaceConfig build(); MethodConfigBuilder startMethodConfig(Method meth); InterfaceConfigBuilder setMethodsCharset(Charset charset); InterfaceConfigBuilder setMethodsSocketTimeout(int socketTimeout); InterfaceConfigBuilder setMethodsConnectionTimeout(int connectionTimeout); InterfaceConfigBuilder setMethodsRequestInterceptor(Class<? extends RequestInterceptor> requestInterceptorClass); InterfaceConfigBuilder setMethodsResponseHandler(Class<? extends ResponseHandler> responseHandlerClass); InterfaceConfigBuilder setMethodsErrorHandler(Class<? extends ErrorHandler> errorHandlerClass); InterfaceConfigBuilder setMethodsRetryHandler(Class<? extends RetryHandler> retryHandlerClass); InterfaceConfigBuilder setMethodsEntityWriter(Class<? extends EntityWriter> entityWriterClass); InterfaceConfigBuilder setMethodsConsumes(String... mimeTypes); InterfaceConfigBuilder setMethodsDeserializer(Class<? extends Deserializer> deserializerClass); InterfaceConfigBuilder setMethodsProduces(String contentType); InterfaceConfigBuilder setMethodsType(MethodType meth); InterfaceConfigBuilder appendMethodsPath(String path); InterfaceConfigBuilder setMethodsEndPoint(String endPoint); ParamConfigBuilder startMethodsExtraParamConfig(); InterfaceConfigBuilder setParamsSerializer(Class<? extends Serializer> paramSerializerClass); InterfaceConfigBuilder setParamsEncoded(boolean encoded); InterfaceConfigBuilder setParamsListSeparator(String separator); @Override String toString(); }
DefaultInterfaceConfigBuilder extends ConfigBuilder implements InterfaceConfigBuilder { public InterfaceConfigBuilder setMethodsRequestInterceptor(Class<? extends RequestInterceptor> requestInterceptorClass) { for (MethodConfigBuilder b : methodBuilders.values()) { b.setRequestInterceptor(requestInterceptorClass); } return this; } DefaultInterfaceConfigBuilder(Class interfaze, CRestConfig crestConfig, ComponentRegistry<String,Deserializer> mimeDeserializerRegistry, ComponentRegistry<Class<?>, Serializer> classSerializerRegistry); InterfaceConfig build(); MethodConfigBuilder startMethodConfig(Method meth); InterfaceConfigBuilder setMethodsCharset(Charset charset); InterfaceConfigBuilder setMethodsSocketTimeout(int socketTimeout); InterfaceConfigBuilder setMethodsConnectionTimeout(int connectionTimeout); InterfaceConfigBuilder setMethodsRequestInterceptor(Class<? extends RequestInterceptor> requestInterceptorClass); InterfaceConfigBuilder setMethodsResponseHandler(Class<? extends ResponseHandler> responseHandlerClass); InterfaceConfigBuilder setMethodsErrorHandler(Class<? extends ErrorHandler> errorHandlerClass); InterfaceConfigBuilder setMethodsRetryHandler(Class<? extends RetryHandler> retryHandlerClass); InterfaceConfigBuilder setMethodsEntityWriter(Class<? extends EntityWriter> entityWriterClass); InterfaceConfigBuilder setMethodsConsumes(String... mimeTypes); InterfaceConfigBuilder setMethodsDeserializer(Class<? extends Deserializer> deserializerClass); InterfaceConfigBuilder setMethodsProduces(String contentType); InterfaceConfigBuilder setMethodsType(MethodType meth); InterfaceConfigBuilder appendMethodsPath(String path); InterfaceConfigBuilder setMethodsEndPoint(String endPoint); ParamConfigBuilder startMethodsExtraParamConfig(); InterfaceConfigBuilder setParamsSerializer(Class<? extends Serializer> paramSerializerClass); InterfaceConfigBuilder setParamsEncoded(boolean encoded); InterfaceConfigBuilder setParamsListSeparator(String separator); @Override String toString();  }